Compare commits

...

1 commit

2 changed files with 12 additions and 5 deletions

View file

@ -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)