SERVER: network velocity to CSQC

This commit is contained in:
erysdren 2024-12-07 12:19:01 -06:00
parent c0bd852198
commit c365c112b1
2 changed files with 6 additions and 1 deletions

View file

@ -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;
}
};
};

View file

@ -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;