|
I've found that there is a bug with ClientBegin...
You must catch PERS_SPAWN_COUNT before the ps is cleared, and then copy it back in after being cleared.. Otherwise you will find CG_Respawn on the client is not called like it is supposed to on *every* spawn. This is mostly noticable in siege or if you are trying to call a script on client for every spawn such as I do with Lua.
so do something like
int spawn_count;
copy eflags...
spawn_count = client->ps.persistant[PERS_SPAWN_COUNT];
... clear ps ...
copy eflags back...
client->ps.persistant[PERS_SPAWN_COUNT] = spawn_count;
|