PDA

View Full Version : Delayed Respawn


VSYoda1
01-05-2004, 06:26 PM
I'm getting into coding a little and I hope someone could answer my question:

How do you keep a person from respawning for a set amount of time? My guess would be that you have to change the delay variable in the respawn function. :)

divoid
01-06-2004, 08:35 AM
g_combat.c

find the instances where "client->respawnTime" is set. like on approx line 2726 where it says "self->client->respawnTime = level.time + 1700;" 1700 is your delay in ms, 1.7 seconds. there are a few differant places where respawnTime is set for differant conditions, just search for them, fairly simple

VSYoda1
01-06-2004, 07:42 PM
Thank you very much. :D