James R
8a6f2e568b
Add a flags parameter to COM_AddCommand
2023-03-15 16:40:21 -07:00
spherallic
759ac6cf35
Some more chat-related cleanup
2023-03-07 22:18:17 +01:00
spherallic
daa5dc8690
Fix oversight with inverted gametype check
2023-03-06 22:30:54 +01:00
spherallic
0ce82b0859
A bit more chat-related cleanup
2023-03-06 22:09:43 +01:00
spherallic
443794e1e5
Remove overly specific HU_drawGametype function
2023-03-06 15:55:16 +01:00
spherallic
e894cd55de
Clean up some chat-related stuff
2023-03-06 15:53:34 +01:00
spherallic
df9065d159
Clean up character drawing & word wrapping
2023-03-06 15:05:46 +01:00
spherallic
8228275cf8
Merge branch 'next' into font_drawer
2023-03-05 22:27:22 +01:00
Eidolon
e5dea805fa
Revert "Merge branch 'gamepad-refactor' into next"
...
This reverts commit 696e2ab909
, reversing
changes made to d98d59494f
.
2023-01-26 19:26:28 -06:00
LJ Sonic
379cc4207a
Revert "Merge branch 'netcode-refactor' into merging"
...
This reverts merge request !1920
2023-01-15 17:57:23 +00:00
spherallic
77f7374b98
Merge branch 'next' into font_drawer
2023-01-11 22:59:06 +01:00
LJ Sonic
d1c5f7adcc
Move gamestate handling to a new file
2023-01-07 13:01:48 +01:00
LJ Sonic
7c2fe20cd5
Move tic and net command handling to new files
2023-01-05 22:51:17 +01:00
LJ Sonic
717e0d5a17
Move netcode files to a new folder
2022-12-31 14:10:19 +01:00
LJ Sonic
05d232c029
Delete netcode
...
Just kidding, I just deleted NONET
2022-12-30 15:07:57 +01:00
Sally Coolatta
1b43cdddd5
Allow saving in modified games.
2022-11-16 11:14:29 -05:00
Jaime Ita Passos
46f7fa406f
Refactor gamepad code
...
Implements the SDL Game Controller API, haptics, and axis bindings.
2022-11-14 00:37:08 -03:00
Alam Arias
1b5dd687d2
Cleanup whitespace changes from master branch
2022-11-11 20:31:41 -05:00
Alam Arias
ae112a3728
Update hu_stuff.c
...
Fix NONET build
2022-11-11 20:21:30 -05:00
James R
dc1beb8e5b
Fix buffer overflow when pasting into chat
2022-11-07 22:35:18 -06:00
spherallic
7536d2504e
Add HU_LoadFontCharacters
2022-11-07 23:09:25 +01:00
spherallic
f95b6df128
Use V_FontStringWidth for name tag width, add kerning value to name tag
2022-11-02 01:26:28 +01:00
spherallic
c74cbb6868
Remove HU_ prefix from font start/end/size defines
2022-09-05 17:18:26 +02:00
spherallic
53896603b7
Rename LoadFontProperties to SetFontProperties
2022-09-05 17:13:37 +02:00
Eidolon
82310e0ae2
Add Lua HUD drawlists
...
Buffers draw calls between tics to ensure hooks
run at the originally intended rate.
2022-04-30 01:55:10 -05:00
Eidolon
aec527cb4c
Clamp cechotimer to 0
...
Fixes issues with cechos staying on-screen and glitching out
(NiGHTS items for example).
2022-04-26 20:56:35 -05:00
Sally Coolatta
fa12c51fcf
Fix a bunch of ticking in hu_ drawing functions
2022-04-26 20:56:35 -05:00
spherallic
4f6f0284d9
Add function to set a fontdef's properties.
2022-03-11 21:14:43 +01:00
spherallic
79fb15f00e
Merge branch 'next' into font_drawer
2022-03-07 21:09:50 +01:00
spherallic
14295ac7de
2022
2022-03-03 20:24:46 +01:00
spherallic
a6153b62f2
Make name tag font(s) into fontdefs, and some more general cleanup.
2022-02-14 21:35:11 +01:00
sphere
be729c334f
Merge branch 'next' into 'font_drawer'
...
# Conflicts:
# src/hu_stuff.c
2022-02-07 10:03:08 +00:00
LJ Sonic
81b0eb1c7c
Merge branch 'crosshairs' into 'next'
...
Fix crosshairs not displaying
See merge request STJr/SRB2!1716
2022-02-06 17:30:15 +00:00
LJ Sonic
b396683429
Merge branch 'fix-chat' into 'next'
...
Fix issues with chat messages
Closes #583
See merge request STJr/SRB2!1698
2022-02-06 17:15:04 +00:00
spherallic
7929a89394
Make level title font use generalized functions, plus:
...
- Fixed V_FontStringWidth not accounting for lowercase characters.
- Added V_FontStringHeight.
- Combine name tag base & outline loading.
2022-02-05 15:45:27 +01:00
spherallic
412381da4c
Make credits font functions use the generalized functions.
2022-02-05 14:40:05 +01:00
spherallic
b8cae8e735
Add kerning option to fontdefs, rename width and height.
2022-02-04 13:36:27 +01:00
spherallic
908fb8b026
Add fontdef_t struct, move the width and height variables there.
2022-02-03 13:41:24 +01:00
spherallic
bf2809b213
Fix crosshairs not displaying and refactor their code.
2022-01-15 17:12:33 +01:00
LJ Sonic
a6808de96c
Fix message sending code using hardcoded buffer size
2022-01-10 20:12:27 +01:00
LJ Sonic
de9d6ecbe6
Fix long chat messages causing net command failures
2022-01-10 20:05:58 +01:00
LJ Sonic
05f1a9edc1
Revert "Fix long chat messages causing net command failures"
...
This reverts commit 1377824799
.
2022-01-10 19:57:15 +01:00
LJ Sonic
7ea81eacc5
Fix say command and its variants using hardcoded buffer size
2022-01-10 19:31:41 +01:00
sphere
f9d2fd9ce5
blentran part 1: Flag changes & semibright support.
2022-01-04 14:26:03 +01:00
LJ Sonic
1377824799
Fix long chat messages causing net command failures
2022-01-03 22:37:19 +01:00
LJ Sonic
159be00109
Support delete key in chatbox
2022-01-03 00:37:11 +01:00
LJ Sonic
af629fefe9
Fix long chat messages crashing the game
2022-01-03 00:08:23 +01:00
LJ Sonic
055d57c56c
Fix single-letter messages not being sent
2022-01-03 00:06:20 +01:00
LJ Sonic
b933316f23
Cleanup chat event handling
2022-01-02 23:19:34 +01:00
LJ Sonic
e761e36c55
Cleanup and fix chat deleting and pasting
2022-01-02 23:06:34 +01:00
LJ Sonic
2bbbd57c6e
Turn HU_queueChatChar into HU_sendChatMessage
2022-01-02 18:35:11 +01:00
LJ Sonic
b8975b6a71
Group related chat stuff together
2022-01-02 17:50:01 +01:00
LJ Sonic
3638d5d556
Cleanup chat code a little
2022-01-02 17:08:10 +01:00
LJ Sonic
f8afdeb35f
Cleanup chatbox sanitizing code
2022-01-02 15:48:31 +01:00
LJ Sonic
34ad64ba59
Cleanup chatbox reset code
2022-01-02 15:41:54 +01:00
LJ Sonic
d9bc478822
Cleanup blank chatbox checking code
2022-01-02 15:39:16 +01:00
spherallic
fdc825721f
some hud fixes, by Confusion
2021-12-05 12:47:20 +01:00
James R
c33d8b3b5d
Merge remote-tracking branch 'origin/next' into hudlib-hook-refactor
2021-09-12 18:37:47 -07:00
LJ Sonic
5340db5f67
Make gc_ constants uppercase
2021-08-15 16:15:28 +02:00
LJ Sonic
5bc0ce7a62
Give fields in event_t better names
2021-08-14 23:42:39 +02:00
Jaime Ita Passos
2aa9bb59ef
Memory management fixes
...
Date: Mon Aug 9 15:57:07 2021 -0300
2021-08-09 15:57:35 -03:00
James R
b4fa98d2fb
Refactor hudlib hooks to hooklib
...
HUD hooks now meet the standard of hooklib. HUD registry
magic numbers are gone.
HUD hooks may also be added using addHook.
addHook('HUD', fn[, type])
hud.add still exists, but the intention is to remove it
eventually.
2021-07-07 00:23:51 -07:00
James R
4d22b9f17f
Merge remote-tracking branch 'origin/next' into hooklib-refactor
2021-06-07 18:12:52 -07:00
LJ Sonic
d325c7e6d3
The year is 2021
2021-05-07 17:45:56 +02:00
LJ Sonic
7133c703b4
Show an alternate ping icon when the player is disconnected
2021-02-15 22:19:48 +01:00
LJ Sonic
0b012d5db0
Make the names of disconnected players flicker in tab HUD
2021-02-15 16:21:26 +01:00
LJ Sonic
0de3a64b59
Let Lua toggle the crosshair
2020-12-29 21:36:15 +01:00
James R
8d382e49fb
Big Large Lua Hooklib Refactor
...
* Hooks are no longer a mess of lua boiler plate. Helper functions reduce hooks
to, at the most basic level, only two calls.
* Lua tables (the array part) are used to index hooks. Such tables contain only
hooks of the same type.
* Hook types are defined in one place so you no longer need to sync up the enum
and name array.
2020-12-10 00:36:41 -08:00
Jaime Ita Passos
5293c52bca
Remove SHORT macros for referencing patch width/height/offsets
2020-11-22 20:02:47 -03:00
Louis-Antoine
50d2c95470
Merge branch 'next' of https://git.do.srb2.org/STJr/SRB2.git into resend-gamestate
2020-10-24 16:21:44 +02:00
James R
8a8e0ceda2
Move HU_LoadGraphics after startuppwads are loaded
...
This is needed for graphics replacements to take effect.
2020-10-02 11:54:58 -07:00
SteelT
a033f482be
Merge branch 'pictureformats' into 'next'
...
PNG conversion refactoring
See merge request STJr/SRB2!675
2020-09-10 15:58:18 -04:00
James R
5ccafe0314
REMOVE THE LAST OF CV_ALLCAPS
2020-08-14 21:01:41 -07:00
Louis-Antoine
9dd5c11322
Merge branch 'next' of https://git.magicalgirl.moe/STJr/SRB2.git into resend-gamestate
...
# Conflicts:
# src/d_clisrv.c
# src/d_clisrv.h
# src/d_net.c
# src/p_saveg.c
# src/p_saveg.h
2020-08-13 13:53:10 +02:00
Jaime Passos
ca060a4372
Merge branch 'next' of https://git.magicalgirl.moe/STJr/SRB2 into pictureformats
2020-07-21 22:25:00 -03:00
Jaime Passos
7911deebf8
Merge branch 'next' of https://git.magicalgirl.moe/STJr/SRB2 into pictureformats
2020-07-06 19:29:14 -03:00
Jaime Passos
5c5d907251
gr_ -> gl_
2020-07-06 01:15:08 -03:00
LJ Sonic
98c657e703
Merge branch 'sf_nosupersprites' into 'next'
...
Add SF_NOSUPERSPRITES
See merge request STJr/SRB2!1000
2020-07-04 06:51:11 -04:00
James R
067d9b9a63
Merge remote-tracking branch 'origin/next' into gtr-fixes
2020-06-24 19:31:19 -07:00
lachwright
7d92631d97
Whoops, forgot hu_stuff.c
2020-06-17 05:27:42 +08:00
SwitchKaze
46191cade7
Update to 2.2.4
2020-05-22 16:47:51 -05:00
Jaime Passos
1a79f6246d
Merge remote-tracking branch 'origin/next' into pictureformats
2020-05-15 01:34:54 -03:00
sphere
69c11a8220
Support act numbers up to 99 and draw both digits individually.
2020-05-12 17:17:24 +02:00
Jaime Passos
39c5ab4e17
Merge remote-tracking branch 'origin/next' into gtr-fixes
2020-05-09 17:12:52 -03:00
Louis-Antoine
e3cbdf8fab
Use HAVE_BLUA as fuel for my fireplace
2020-03-19 18:36:14 +01:00
Jaime Passos
26e367eb9b
Merge remote-tracking branch 'origin/next' into pictureformats
2020-03-07 20:43:16 -03:00
SwitchKaze
fd4666b481
Bruh.
2020-02-29 23:44:56 -05:00
SwitchKaze
21b28b6295
Merge branch 'next' of https://github.com/STJr/SRB2 into next-luacolors
2020-02-29 23:41:16 -05:00
Louis-Antoine
846560910d
Obliterate resynch
...
Okay, more precisely this substitutes the old resynch with
the newly added gamestate resend code.
2020-03-01 03:22:47 +01:00
Jaime Passos
4e7b47440f
G_CoopGametype, for all the GT_COOP cases
2020-02-29 00:57:22 -03:00
Steel Titanium
ce801e1076
Fix new skin colors using default chat color
2020-02-24 16:58:19 -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
James R
7060083db5
Update copyright year to 2020
2020-02-19 14:08:45 -08:00
Jaime Passos
2893803c68
Merge remote-tracking branch 'origin/next' into pictureformats
2020-02-19 02:25:36 -03:00
James R
4238003887
Merge remote-tracking branch 'origin/master' into next
2020-01-30 23:54:56 -08:00
Steel Titanium
f4de193809
Fix memory leak while chat is on screen
2020-01-30 22:11:50 -05:00
Louis-Antoine
f209721ded
Merge branch 'next' of https://git.magicalgirl.moe/STJr/SRB2.git into keep-body
...
# Conflicts:
# src/g_game.c
# src/p_setup.c
2020-01-22 03:57:22 +01: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
Jaime Passos
720695a6c4
Remove W_FlushCachedPatches
2020-01-20 17:03:38 -03:00