diff --git a/small_scripts/README.md b/small_scripts/README.md index 3aa91c0..1369ed3 100644 --- a/small_scripts/README.md +++ b/small_scripts/README.md @@ -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. diff --git a/small_scripts/disable_nuke_killstreak.gsc b/small_scripts/disable_nuke_killstreak.gsc new file mode 100644 index 0000000..5eac2e3 --- /dev/null +++ b/small_scripts/disable_nuke_killstreak.gsc @@ -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; + } +} \ No newline at end of file