From c365c112b1918921fcd6d149d880a0183c5c1a56 Mon Sep 17 00:00:00 2001 From: erysdren Date: Sat, 7 Dec 2024 12:19:01 -0600 Subject: [PATCH] SERVER: network velocity to CSQC --- source/server/main.qc | 3 ++- source/shared/shared_defs.qc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/server/main.qc b/source/server/main.qc index d3e5b71..1b0b665 100644 --- a/source/server/main.qc +++ b/source/server/main.qc @@ -377,6 +377,7 @@ void() worldspawn = clientstat(STAT_VIEWZOOM, EV_FLOAT, viewzoom); clientstat(STAT_MAXHEALTH, EV_FLOAT, max_health); clientstat(STAT_PERKS, EV_FLOAT, perks); + clientstat(STAT_VELOCITY, EV_VECTOR, velocity); #endif // FTE @@ -581,4 +582,4 @@ void() EndFrame = if (cheats_have_been_activated == false && cvar("sv_cheats") == 1) { cheats_have_been_activated = true; } -}; \ No newline at end of file +}; diff --git a/source/shared/shared_defs.qc b/source/shared/shared_defs.qc index 3df9276..0e9ff4a 100644 --- a/source/shared/shared_defs.qc +++ b/source/shared/shared_defs.qc @@ -309,6 +309,10 @@ float map_compatibility_mode; #define STAT_MAXHEALTH 67 #define STAT_WEAPONSKIN 68 #define STAT_PERKS 69 +#define STAT_VELOCITY 70 +#define STAT_VELOCITY_X 70 +#define STAT_VELOCITY_Y 71 +#define STAT_VELOCITY_Z 72 .float playernum; float game_over;