smallmodel
a1e7afac76
Prevent using a trick to spoof another name in 1.11 and below
2025-02-03 23:51:40 +01:00
smallmodel
2f75092d8b
Reserve console name for DMMessage
2025-02-03 23:42:38 +01:00
smallmodel
ad01c2d966
Fix wrong flags getting checked for allowed weapons
2025-02-03 20:43:03 +01:00
smallmodel
32411b2a90
Rename player_damage
to player_damaged
.
...
The name was ambiguous. The delegate is triggered when the player gets hit (getting damaged), and not when the player damages someone else. The name properly matches the action.
2025-02-03 19:35:04 +01:00
smallmodel
32f850556e
Set the self
object when triggering the delegate
2025-02-03 19:33:41 +01:00
smallmodel
fd94f53e25
Add a delegate for player text messages
...
self = the player who sent the message
first parameter = the text
second parameter = is team message?
2025-02-03 19:32:14 +01:00
smallmodel
e6cbd00871
Add script delegates matching common scripted events
2025-02-02 19:18:55 +01:00
smallmodel
9242faaa49
Add delegate for stufftext
2025-02-02 16:02:22 +01:00
smallmodel
3769bd2a68
Translate instant messages when printing to console
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2025-01-29 20:00:55 +01:00
smallmodel
8fdc66d138
Allow axis players to select kar98 sniper on 2.0 and above by choosing german panzer skins
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 18s
2025-01-19 19:16:28 +01:00
smallmodel
a6d9369204
Remove DM player in destructor rather than in a manual function call
2025-01-16 22:17:14 +01:00
smallmodel
317664f88c
Throw an error if the player is dead in EndLevel()
2025-01-13 20:51:28 +01:00
smallmodel
a0f6d7d361
Initialize met_comment to false
2025-01-11 15:20:41 +01:00
smallmodel
5e04124211
Fix accuracy being 0.0 in the stats screen
2025-01-09 21:30:40 +01:00
smallmodel
8fb3856ea6
Add a centerprint message when joining a team that is full
2025-01-05 20:19:52 +01:00
smallmodel
418985f90b
Fix animation not looping in the same state
2025-01-05 20:02:50 +01:00
smallmodel
b5875ae890
Allow the same torso animation to play again
...
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 15s
This allows replaying the same torso animation, like when activating a new weapon of the same weapon class
2025-01-05 02:29:02 +01:00
smallmodel
8801834804
Don't restart the legs animation from the beginning in the same state
...
This prevent walking silently by switching weapons indefinitely
2025-01-05 02:20:59 +01:00
smallmodel
269e73168e
Fix an issue where animations (legs) would not loop
2025-01-05 02:00:49 +01:00
smallmodel
9930d50f99
Fix inconsistent player animation debug print
2025-01-04 20:37:15 +01:00
smallmodel
51a2f7d479
Use an enumeration for weapon commands and a function to get the weapon command
...
This improves clarity for using weapon commands. Also the mask was incorrect for protocol above version 8 (mohaas and mohaab)
2024-12-30 00:55:29 +01:00
smallmodel
2656000ce4
Print chat message from the game module instead of the server
2024-12-29 18:46:40 +01:00
smallmodel
78cd0cf28b
Prevent firing weapon if there is a weapon command
...
This prevent tricks like firing and dropping weapon to shoot silently
2024-12-29 13:45:18 +01:00
smallmodel
3f2c2f7aa4
Spectate the next player in mohaa 1.0 (instead of random) when pressing use in spectator
2024-12-25 15:08:00 +01:00
smallmodel
e353673005
Fix player deaths (or total kills) being added twice in round-based matches
2024-12-17 21:11:34 +01:00
smallmodel
3cc417151d
Fix newlines for G_PrintToAllClients
2024-12-09 21:42:45 +01:00
smallmodel
d26718a711
Fix teamkill kick warning not working
2024-12-09 21:32:38 +01:00
smallmodel
0fb775cd60
Only set the infoclient if it's a teammate player that can be sent to other clients
2024-11-29 23:45:52 +01:00
smallmodel
8213bf41a8
Fix player having no inventory or dying when respawning immediately after getting killed
2024-11-26 00:53:38 +01:00
smallmodel
10b7651eff
Use getters for max fire movement and zoom movement
2024-11-25 22:12:29 +01:00
smallmodel
db16c8bea4
Localize player IPrint string
2024-11-25 19:09:02 +01:00
smallmodel
652df1a5af
Prevent players with SVF_NOCLIENT to use objects
2024-11-17 22:10:03 +01:00
smallmodel
aeb8aa8e55
Don't send a voice chat message if the entity is not sent to clients
2024-11-17 20:28:03 +01:00
smallmodel
e74e113199
Fix voice message always being sent to enemies in team message
2024-11-17 20:26:40 +01:00
smallmodel
9a55939b42
Fix weapon selection
2024-11-10 22:10:34 +01:00
smallmodel
d3f3b9b51c
Don't allow lean in single-player in the base game
2024-11-10 17:01:56 +01:00
smallmodel
67486f1e49
Clear the player velocity on intermission
2024-11-10 16:17:03 +01:00
smallmodel
2e0e5db260
Implement bindweap
2024-11-09 00:27:42 +01:00
smallmodel
ac3eb58671
Return 4 from getconnstate even if it's deprecated
2024-11-08 21:46:25 +01:00
smallmodel
b38fedb18c
Make the vehicle path drive from TurretMove
...
This fixes the issue where the AB41 can't be controlled
2024-11-07 20:23:24 +01:00
smallmodel
1f232efdf3
Add the push velocity when jumping from a valid ground entity
2024-11-03 20:34:49 +01:00
smallmodel
94e1830895
Don't jump when on top of another sentient
2024-11-03 20:32:17 +01:00
smallmodel
406f804ef8
Don't jump when inside a vehicle or turret
2024-11-03 20:30:37 +01:00
smallmodel
5cb343730b
Rename Conditions to m_conditions
2024-11-03 20:06:31 +01:00
smallmodel
2e6e20cf09
Set the m_bHasJumped value when jumping
2024-11-03 20:01:21 +01:00
smallmodel
1e036a7689
Clear the torso and legs state when the movement type is set to portable turret
2024-10-31 19:49:05 +01:00
smallmodel
858b27b809
Handle the case where the legs or the torso state is NULL
2024-10-31 19:48:30 +01:00
smallmodel
940ac789b9
Change the current fov only if the fov is currently the selected fov
...
This prevents the player from modifying the fov while zooming
2024-10-26 22:42:18 +02:00
smallmodel
fcd2d2e668
Use the correct weapon selection menu
2024-10-23 20:15:29 +02:00
smallmodel
f5391bbfa0
Use BUTTON_ANY to check for input rather than BUTTON_MOUSE
2024-10-21 19:03:19 +02:00