Username
Password
import es, gamethread, playerlib# # # DO NOT EDIT ABOVE # # #respawnTime = 30 # Number of seconds after round start to !respawn# # #DO NOT EDIT BELOW # # #respawnOff = 1respawnUsers = []def round_start(ev): global respawnOff, respawnUsers respawnUsers = [] respawnOff = 0 gamethread.delayedname('spawnTimer', respawnTime, respawnDisable) for players in playerlib.getPlayerList('#human'): respawnUsers.append(players.steamid)def round_end(ev): if respawnOff == 0: gamethread.cancelDelayed('spawnTimer')def respawnDisable(): global respawnOff respawnOff = 1def player_say(ev): global respawnUsers if ev['text'] == '!respawn': if respawnOff == 0: if ev['es_steamid'] not in respawnUsers: respawnUsers.append(ev['es_steamid']) es.server.queuecmd('est_spawn %s'%ev['userid']) else: es.tell(ev['userid'], 'You have already played in this round atleast once.') else: es.tell(ev['userid'], 'It is too late in the round to respawn.')
issue i see with respawning is that zombies tend to bum rush spawn anyways. So the only respawn delay short enough to avoid that....wouldn't be long enough to bother respawing just to die D:
Quote from: ShadowofDeath `SD on June 28, 2010, 02:21:13 AMissue i see with respawning is that zombies tend to bum rush spawn anyways. So the only respawn delay short enough to avoid that....wouldn't be long enough to bother respawing just to die D:Agree. But in the NotD scoutknifez server the spawn protection is like 15 secs (but i think it goes away when you leave spawn), we can add a amount of spawn protection enough to get to a safe zone.
Quote from: [NotD] siKK. on June 28, 2010, 02:20:48 PMQuote from: ShadowofDeath `SD on June 28, 2010, 02:21:13 AMissue i see with respawning is that zombies tend to bum rush spawn anyways. So the only respawn delay short enough to avoid that....wouldn't be long enough to bother respawing just to die D:Agree. But in the NotD scoutknifez server the spawn protection is like 15 secs (but i think it goes away when you leave spawn), we can add a amount of spawn protection enough to get to a safe zone.you seem to forget, the zombies chase the players. and since they chase the players, they would have to find other players to survive by running into that group and having them shoot whatever is chasing them, which could cause the surviving group to die if there are enough zombies chasing the guy running for safety.