Create disable_nuke_killstreak

This commit is contained in:
Resxt 2022-04-11 13:37:46 +02:00
parent 98d0616729
commit e44219ea35
2 changed files with 30 additions and 0 deletions

View File

@ -6,6 +6,10 @@ Simple drag and drop scripts
Change the team names to custom names depending on the game mode
## disable_nuke_killstreak.gsc
Prevent players from obtaining the nuke/M.O.A.B killstreak when they have enough kills.
## disable_self_explosive_damage.gsc
Prevents players from dying to their own grenades and rockets.

View File

@ -0,0 +1,26 @@
Init()
{
level thread OnPlayerConnect();
}
OnPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread OnPlayerSpawned();
}
}
OnPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self.pers["cur_kill_streak_for_nuke"] = -999;
}
}