Lactozilla
e7b4beba20
Update dates in copyright notices of all files modified in 2024
2024-09-21 21:35:01 -03:00
spherallic
f4588d50b0
Merge branch 'next' into fruits-clipper
2024-02-13 19:14:26 +01:00
Logan Aerl Arias
ae8bfbe763
Merge branch '1168-accessing-an-invalid-variable-in-ticcmd_t-crashes-the-game' into 'next'
...
check if LUA field exists before accessing it
Closes #1168
See merge request STJr/SRB2!2261
2024-02-12 19:58:56 +00:00
spherallic
243fdd1a82
Merge branch 'next' into fruits-clipper
2024-02-04 22:43:48 +01:00
Lactozilla
1d2ea9b046
Fix #1177
2024-01-17 20:02:50 -03:00
Logan Aerl Arias
4ae7a0e093
LUA mapthing_t checks
...
add check that LUA can't access fields that don't exist in mapthing_t
2024-01-07 16:21:09 -05:00
Logan Aerl Arias
057a3efe7f
Merge branch 'next' into fruits-clipper
2023-12-31 12:04:16 -05:00
Krabs
5fc7a5c2da
Merge branch 'add-auto-kick-idle-players' into 'next'
...
Add auto-kick for inactive players
See merge request STJr/SRB2!2148
2023-11-04 16:34:46 +00:00
LJ Sonic
c0146744b7
Normalise 2.3-related TODO comments
2023-10-28 14:46:10 +02:00
LJ Sonic
d1dbdee016
Refactor global userdata registration
2023-10-28 00:24:04 +02:00
LJ Sonic
bc9a378521
Refactor userdata metatable registration
2023-10-27 20:17:27 +02:00
Gustaf Alhäll
80e386b16f
Expose lastinputtime to Lua
2023-10-14 21:50:59 +02:00
spherallic
9f2a6cde8a
NiGHTS text changes:
...
- Add lastmaretime to players, used to show time at mare/end results
- Replace textvar numbers with an enum (NTV_)
2023-09-28 22:22:29 +02:00
Sal
1a209146d6
Merge branch 'spemblems' into 'next'
...
Allow obtaining ring, time & grade emblems in regular gameplay
See merge request STJr/SRB2!1752
2023-07-25 09:45:12 +00:00
GoldenTails
4212035729
Fix errors due to declaring variables in switch bodies
2023-07-24 21:44:53 -05:00
Sal
2e37995e89
Merge branch 'ping_lua' into 'next'
...
Port player.ping from SRB2Kart
See merge request STJr/SRB2!2025
2023-07-24 18:00:31 +00:00
Jisk
b36ca89e16
Port player.ping from SRB2Kart
2023-07-24 18:00:31 +00:00
spherallic
86b4f93610
Allow obtaining ring, time & grade emblems in regular SP gameplay.
2023-07-24 08:34:10 -04:00
Sal
31d26c6f55
Merge branch 'awayview-fix' into 'next'
...
Call P_ResetCamera Upon Switching To/From an Away View Camera
See merge request STJr/SRB2!2011
2023-07-24 09:15:56 +00:00
SMS Alfredo
66f8908b03
Reset Camera only if a new camera is set / Fix Lua jank with setting awayviewmobj or awayviewtics solo
2023-07-22 20:44:22 -05:00
Gustaf Alhäll
beda6109b2
Fix segfault when trying to set a read-only field on player_t
2023-07-03 23:30:49 +02:00
SMS Alfredo
ebdc36f56b
Merge branch 'next' into awayview-fix
2023-06-30 16:13:15 -05:00
Gustaf Alhäll
2f2de7d3d3
Optimize field lookups in Lua metatables
2023-06-18 18:05:16 +02:00
SMS Alfredo
aa43aa7c8c
Call P_ResetCamera Upon Switching To/From an Away View Camera
2023-06-03 15:43:58 -05:00
spherallic
1470d099e3
Update copyright year & credits
2023-03-31 14:53:31 +02:00
spherallic
14295ac7de
2022
2022-03-03 20:24:46 +01:00
Shane Ellis
09f445f227
Merge branch 'next' into 'addplayer'
...
# Conflicts:
# src/g_game.c
2021-06-19 20:20:45 -04:00
sphere
786516fa5f
Merge branch 'kart-latency' into 'next'
...
Kart cmd->latency port
See merge request STJr/SRB2!1470
2021-06-09 10:53:09 -04:00
Shane Ellis
18c47afc76
Merge branch 'next' into 'addplayer'
...
# Conflicts:
# src/lua_baselib.c
# src/r_skins.c
2021-06-02 11:47:11 -04:00
LJ Sonic
d325c7e6d3
The year is 2021
2021-05-07 17:45:56 +02:00
Sally Coolatta
57d81ddb21
Kart cmd->latency port
...
Nev3r was talking about something that would've been drastically improved with this, and it is really simple, so I ported it :)
2021-04-21 19:58:14 -04:00
CobaltBW
0a60fe0b1d
Almost forgot: player.blocked
2021-01-23 14:05:36 -08:00
Shane Ellis
c391d76c11
buttons_last -> lastbuttons
2021-01-23 10:06:47 -05:00
Shane Ellis
ce8e389a2d
Add lua player.botleader and player.buttons_last (read+write)
2021-01-23 09:49:57 -05:00
SMS Alfredo
b2d6d4f83f
Expose player.skin
and player.availabilities
to Lua as Read-only
2020-11-25 12:35:36 -06:00
Zachary McAlpin
cbba71051d
Allow cmd to be modified using the PlayerCmd hook
2020-07-25 20:08:41 -05:00
Zachary McAlpin
d26c7654ff
Ported Lat's PlayerCmd hook to vanilla SRB2
2020-07-17 00:08:38 -05:00
SwitchKaze
b37c73b008
Make colors UINT16, increase color freeslots to 1024
2020-05-23 19:35:36 -05:00
SwitchKaze
46191cade7
Update to 2.2.4
2020-05-22 16:47:51 -05:00
Louis-Antoine
e3cbdf8fab
Use HAVE_BLUA as fuel for my fireplace
2020-03-19 18:36:14 +01:00
SwitchKaze
21b28b6295
Merge branch 'next' of https://github.com/STJr/SRB2 into next-luacolors
2020-02-29 23:41:16 -05:00
LJ Sonic
8dd4e47a35
Merge branch 'realmo' into 'next'
...
Let Lua access spectator mobjs
See merge request STJr/SRB2!756
2020-02-25 15:06:29 -05:00
SwitchKaze
6415e10216
Merge branch 'next' of https://github.com/STJr/SRB2 into next-luacolors
2020-02-23 11:50:13 -05:00
James Hale
56b67a3b4f
Custom skincolors
2020-02-21 21:56:39 -05:00
Steel Titanium
76f26cda24
Merge branch 'master' into next
2020-02-21 21:01:29 -05:00
James R
7060083db5
Update copyright year to 2020
2020-02-19 14:08:45 -08:00
Louis-Antoine
2eaf02d234
Let Lua access spectators mobjs
2020-02-03 19:42:37 +01:00
fickleheart
bea7ad2185
Merge remote-tracking branch 'upstream/next' into viewroll
2020-01-26 18:01:58 -06:00
Louis-Antoine
d374bf4f9b
Let clients rejoin the server without losing their status
...
This is accomplished by simply preserving
the player's body after disconnecting.
Bodies will despawn after the number of minutes
specified by the "rejointimeout" console variable (float).
A value of 0 disables the feature completely.
Clients rejoining are identified by their IP address,
and may rejoin even if the server is full or joins are disabled,
for as long as their body remains.
From a technical standpoint, when the user disconnects,
the player they were controlling does not leave,
the underlying player_t just keeps working normally,
except it does not receive any input anymore.
When the user reconnects, they are simply "relinked"
to their player_t.
Those "soulless" players can be identified through
their "quittime" field, which is the number of tics
elapsed since the user disconnected, or zero
if still connected. "quittime" is exposed to Lua.
2020-01-22 03:05:08 +01:00
fickleheart
c25e969676
wip viewroll stuff
2020-01-14 23:29:56 -06:00