Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
86542e94e0 |
2 changed files with 12 additions and 5 deletions
|
@ -63,9 +63,16 @@ CodeCallback_StartGameType(void)
|
|||
}
|
||||
|
||||
for (entity s = world; (s = ents.NextItem(s));) {
|
||||
string isWeapon = substring(s.classname, 0, 7);
|
||||
string isAmmo = substring(s.classname, 0, 5);
|
||||
|
||||
if (isWeapon == "weapon_" || isAmmo == "ammo_") {
|
||||
ents.Input(s, "SetRespawnTime", "20.0f", world);
|
||||
} else {
|
||||
ents.Input(s, "SetRespawnTime", "30.0f", world);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
HLDM_PlayerSpawn(entity playerEntity)
|
||||
|
|
Loading…
Reference in a new issue