mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-05-11 15:04:56 +00:00
Create disable_nuke_killstreak
This commit is contained in:
parent
98d0616729
commit
e44219ea35
@ -6,6 +6,10 @@ Simple drag and drop scripts
|
|||||||
|
|
||||||
Change the team names to custom names depending on the game mode
|
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
|
## disable_self_explosive_damage.gsc
|
||||||
|
|
||||||
Prevents players from dying to their own grenades and rockets.
|
Prevents players from dying to their own grenades and rockets.
|
||||||
|
26
small_scripts/disable_nuke_killstreak.gsc
Normal file
26
small_scripts/disable_nuke_killstreak.gsc
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user