Zughy
8f4c537b67
Fix crash introduced with previous commit
2022-08-16 22:02:23 +02:00
Zughy
22e3683b59
Use globalsteps for queue countdowns
2022-08-16 14:30:08 +00:00
Zughy
39d2803d26
Small clean up
2022-07-04 13:20:41 +02:00
Zughy
3db1c62336
Bugfix: (regression) display message about leaving queue also for the very ones who've just left it
2022-07-01 23:55:49 +02:00
Zughy
a0449234a7
Better log on_kick and on_disconnect deprecations
2022-07-01 16:16:22 +02:00
Zughy
9220a5097e
Bugfix: (regression) lower queue timer if the queue is full
2022-07-01 00:10:51 +02:00
Zughy
c32530bde9
Add register_on_eliminate global callback
2022-06-28 01:17:43 +02:00
Zughy
df913d63d7
Add global callbacks
2022-06-26 17:58:52 +00:00
Zughy
5eb9527481
`name` and `icon` attributes when registering a minigame
2022-06-11 15:18:17 +02:00
Zughy
ac45819527
Redo quit callbacks (deprecate `on_disconnect` and `on_kick`)
2022-06-07 18:19:03 +00:00
Zughy
415793d06d
Add queue callbacks
...
Closes #107
2022-06-06 01:30:37 +02:00
Zughy
4d29da467e
More translations cleaning
2022-06-05 23:29:33 +02:00
Zughy
f2ac202bea
Fix players added in queue
2022-06-05 23:13:12 +02:00
Zughy
a9649fa4f3
Translations clean up
2022-06-05 19:53:26 +02:00
Zughy
ec5e46c0e2
Separate queuing system from signs (check description)
...
* adds `arena_lib.join_queue(mod, arena, p_name)`
* adds `arena_lib.get_players_amount_left_to_start_queue(arena)`
* `arena_lib.remove_player_from_queue(p_name)` now returns `true` if successful
2022-06-05 12:20:28 +00:00
Zughy
227c5f7785
comments
2022-05-31 00:25:42 +02:00
Zughy
244d272379
Spectate areas
...
implements #101
2022-05-27 21:12:15 +00:00
Zughy
bb44b3bd9f
Prevent flash damage to appear if fall damage is disabled
...
Co-authored-by: Lars Müller <appgurulars@gmx.de>
2022-05-26 17:13:16 +02:00
Zughy
1b9f3e1383
Spectate entities
2022-05-25 21:25:39 +00:00
Zughy
5c448a33aa
BUGFIX: spectators don't risk to end stuck anymore when leaving a match
...
(TEMPFIX for #131 , waiting for upstream)
2022-04-24 11:14:03 +02:00
Zughy
05db5ad21f
Improve arenas celestial_vault parameter (now nil by default)
2022-04-04 00:03:53 +02:00
Zughy
b0512d80d9
Custom lighting per arena
2022-04-01 10:26:26 +00:00
Zughy
9a30e0dd0b
Another 5.5 fix
2022-02-03 01:16:15 +01:00
Zughy
c6ab1e0b2d
change _ with nil values
2022-01-30 17:58:27 +01:00
Zughy
1f16ea2dd0
Spectators share the same HPs of the player they're spectating
2022-01-27 22:07:31 +01:00
Zughy
588c2557f4
CRASHFIX: wrong checks when punching players
2022-01-24 20:14:39 +01:00
Zughy
dcc8f945e7
Allow multiple players and multiple teams to win a match
...
This introduces a compatibility issue for minigames with teams when a team wins by being the only one left; however, considering that the only minigame with teams not developed by me or friends is Gems and that the current code is way better than before, I prefer warn Gems developer and give the possibility to everyone to use such a feature
2022-01-23 23:57:49 +01:00
Zughy
2d667236db
More tracebacks
2022-01-23 00:46:38 +01:00
Zughy
b56ca9ab47
Bugfix: avoid spectators falling down when entering (regression from the entity detach commit)
2022-01-22 13:19:01 +01:00
Zughy
6b22891f59
Initialise players_spectated when the match loads and clear it when it ends
2022-01-22 13:17:48 +01:00
Zughy
911dceaf9b
Bugfix: detach players when entering an arena
2022-01-14 20:15:24 +01:00
Zughy
29f868ae00
Redesign set_sign + CRASHFIX when moved with WorldEdit
2022-01-11 23:44:53 +01:00
Zughy
4f7c905a8a
Custom sky per arena
2022-01-07 22:14:41 +00:00
Giov4
8487362cab
CRASHFIX: removed missplaced end
2021-03-12 15:16:09 +00:00
Zughy
d32f4ebcd9
Bugfix: don't end the match when the last spectator leaves and only a player is present
2021-03-12 14:38:57 +01:00
Zughy
9885297140
Bugfix: (hybrid servers) when disconnecting while in arena, players will be teleported back, their life replenished and their inventories returned
2021-02-27 13:09:49 +01:00
Zughy
a7fb09c878
Removed a few afters thanks to MT 5.4 (fixes invisible former spectator names too)
2021-02-26 22:16:28 +01:00
Zughy
e1f5c6823a
Bugfix: spectators weren't informed when new people joined (both players and spectators)
2021-02-25 00:16:19 +01:00
Zughy
5560848d2a
Removed useless on_quit call on force_arena_ending
2021-02-23 01:47:20 +01:00
Zughy
830699dd81
CRASHFIX: disabling arenas with people in queue made the game crash (due to the API split)
2021-02-18 21:37:59 +01:00
Zughy
eb5aa65508
set_author and set_timer didn't update the storage (+ little refactoring)
2021-02-18 11:43:24 +01:00
Zughy
13d1457f61
Split api.lua in more files, inside a folder with the same name | removed (useless) global teleport_in_arena
2021-02-17 22:41:21 +01:00