Page 1 of 1
Controling respawns in MP?
Posted: Tue Feb 03, 2004 11:13 pm
by Bjarne BZR
Is it possible to control respawning in any more axact way than activating/deactivating spawns during play?
What I want to do is:
1) Force players to respawn within X seconds.
2) Prevent players from respawning within Y seconds.
Posted: Wed Feb 04, 2004 8:05 am
by bdbodger
isn't respawn time set when you start a mp game ?
Posted: Wed Feb 04, 2004 11:03 am
by jv_map
I think you can set
g_forcerespawn 1
Posted: Wed Feb 04, 2004 7:46 pm
by Bjarne BZR
Hmm... yes... forcerespawn rings a bell

So if I set that from my script I should all be set then... is there a
..as well?
Posted: Wed Feb 04, 2004 7:56 pm
by jv_map
g_respawntime maybe

Posted: Thu Feb 05, 2004 1:10 am
by omniscient
cant u do something like
local.respawn == 1
wait 2
local.respawn == 0
if(local.respawn == 1){
dm_respawning 1
else
dm_respawning 0
}
well, that kind of idea, i bet that scripting is wrong.
Posted: Thu Feb 05, 2004 5:26 pm
by jv_map
Yeah you can do that too, but it's hard to get it to work correctly.. especially as you need at least 2 players for testing all the time

Posted: Thu Feb 05, 2004 6:38 pm
by Bjarne BZR
A thought: Coulden't you set forcerespawn and then just freeze the player X seconds at respawn by using the thread parameter on all info_player_XXX spawnpoints to call a timed freeezing thread when respawning?
Posted: Thu Feb 05, 2004 8:08 pm
by jv_map
Nope, I don't think the 'thread' property of spawn positions works

Posted: Thu Feb 05, 2004 8:22 pm
by Bjarne BZR
That figures...
