Controling respawns in MP?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Controling respawns in MP?

Post 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.
Admin .MAP Forums
Image
Head above heels.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

isn't respawn time set when you start a mp game ?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think you can set

g_forcerespawn 1
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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

Code: Select all

g_forcerespawnwithin X
..as well?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

g_respawntime maybe :?
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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.
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :(
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Nope, I don't think the 'thread' property of spawn positions works :(
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

That figures... :cry:
Admin .MAP Forums
Image
Head above heels.
Post Reply