spawntime


(brka) #1

Hi,
How to set the respawn time zero when I join the allies or axis team. I have disabled g_useralliedrespawntime, g_spawntimeMinPlayers, and I have the original respawn times of the map.


(nonoMapper) #2

Putting g_useralliesrespawntime “0” & g_useraxisrespawntime “0” in the map config should be enough (depending on the mod you have). You cant change this settings during a game)

CTF maps need g_bluelimbotime & g_redlimbotime in miliseconds (if i am right…)


(Destroy666) #3

In server.cfg
set g_userAlliedRespawnTime “1”
set g_userAxisRespawnTime “1”
(haven’t tried such low values but I think 1 is instant respawn, 0 disables cvar and uses mapscript times)


(brka) #4

If I set this, then I had zero time spawn after killing me. Mod NQ


(Mateos) #5

0 is the default value, means each map has its own spawn time, scripted by the mapper; Any other value will overwrite all the spawn times to the one defined.

So for insta-spawn, the only solution is the one of Destroy666 :confused:


(nonoMapper) #6

lol mateos, you are everywhere :stuck_out_tongue:

But ok, it’s “1”. Wasnt sure anyway but now i am :wink:


(Mateos) #7

I remember when I had a server, I did not like some maps with long spawn times (Probably because the clan was close to death with almost-empty main server), so I did put all maps at 15/15 for both teams with these, and I had troubles to reset them… Removing the cvars doesn’t fix, you have to put them with the value 0 to reset. I moved to map configs then for few maps, and the thingy ended. But I still have all the config stored on an external drive :slight_smile:


(nonoMapper) #8

Adding “0” to the respawntimes in default.cfg should reset them to the mapdefaults after you played your map.

Just remember that screwing around with the respawntimer can **** up the gameplay.


(schnoog) #9

It`s also possible to adjust respawn times via lua


						et.trap_Cvar_Set("g_bluelimbotime",1000)
						et.trap_Cvar_Set("g_redlimbotime",1000)

If you can trigger the team joining, simply read out the current spawntime


local mycvar = et.trap_Cvar_Get("g_redlimbotime")

set the spawntime to 1000, wait a few cycles and reset it to the value you got before.