Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
86542e94e0 |
2 changed files with 12 additions and 5 deletions
|
@ -63,8 +63,15 @@ CodeCallback_StartGameType(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (entity s = world; (s = ents.NextItem(s));) {
|
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);
|
ents.Input(s, "SetRespawnTime", "30.0f", world);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue