View Single Post
Old 03-07-2007, 12:40 PM   #157
The Stig
ensiform's Avatar
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
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;

iojamp project lead / coder
ensiform is offline   you may: quote & reply,