smallmodel
0fdf19a3d4
Add reflective team damage
...
A flag can be set for `g_teamdamage` so reflective damage can be enabled. When enabled, an attacker who damage their teammate will also get damaged.
2025-08-29 21:41:46 +02:00
smallmodel
bb9189f219
Don't kick all players if g_teamkillkick is set to 0
2025-08-29 21:16:23 +02:00
smallmodel
95474c92b3
Fix switch team messages
2025-08-16 21:15:35 +02:00
smallmodel
480a377292
Expose API to kick client with reason for game
...
This will let the client know why it gets kicked by game.
2025-08-16 21:08:10 +02:00
smallmodel
6adeca6196
Fix taunts incorrectly played as team on mohaa base ( #776 )
2025-07-27 13:41:19 +02:00
smallmodel
a9b8c44206
Fix incorrect entity flags set on the spawned dead body
2025-07-24 22:47:52 +02:00
smallmodel
4e8ddf3c35
Refactor server-sided view model animation
2025-07-06 20:10:02 +02:00
smallmodel
4b4644547a
Prevent clients from using first-person player model as a skin
2025-06-27 22:53:15 +02:00
smallmodel
d180f36370
Allow player_textMessage event to return a value
...
The script can optionally prevent the message from being sent.
2025-06-21 22:27:09 +02:00
smallmodel
1c5a33f82a
Gather usable entities based on the view position
...
This fixes an issue where leaning had no effect when trying to use entities.
2025-06-21 00:12:12 +02:00
smallmodel
ccb4b801bf
Add a code delegate for spawn
2025-06-14 21:31:00 +02:00
smallmodel
e43ade976b
Prevent switching teams and primary weapon in single-player
2025-06-13 00:41:25 +02:00
smallmodel
64cbcd023e
Clear pending weapon commands when a new one arrives
2025-06-05 23:40:52 +02:00
smallmodel
33cfc2cbf8
Fix projectiles with no owner getting removed when a player joins a team ( #735 )
2025-06-05 21:00:20 +02:00
smallmodel
6af295ebcb
Add a getter to retrieve the player's user info
2025-06-03 19:36:36 +02:00
smallmodel
cf06a395de
Properly initialize a client when reusing an entity
...
This fixes an issue where, if a client rejoins after losing connection, the scoreboard would temporarily display the name of client 0 before spawning.
2025-06-01 01:11:05 +02:00
smallmodel
95dff2536b
Add contextual print feature ( #727 )
...
Add metadata to client-specific messages such as text and join events.
Can be disabled via `sv_logContext 0`.
2025-05-31 22:31:36 +02:00
smallmodel
bdf92ffb06
Increase max dm message length to 400 characters
2025-05-18 00:30:10 +02:00
smallmodel
1bcf6f73a4
Add "(all)" prefix
2025-05-17 16:51:15 +02:00
smallmodel
483b49f5ee
Print the exact message that is shown in-game to console
2025-05-17 16:49:24 +02:00
smallmodel
8ab12b29a6
Fix issue where the text message gets empty when exceeding character limit
2025-05-14 23:55:47 +02:00
smallmodel
035f7b2605
Increase message buffer to 200 characters
2025-05-14 23:50:20 +02:00
smallmodel
e98c725043
Fix player having no damage alpha in mohaas and mohaab ( #678 )
2025-02-24 22:11:41 +01:00
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
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
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
...
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