mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
scr_airdrop_killstreaksIncreaseStreak
This commit is contained in:
parent
6f1bb3c9d4
commit
b3f27f2c6e
@ -563,3 +563,6 @@ set scr_helicopter_apache_duration "30"
|
||||
// _autosentry
|
||||
set scr_sentry_duration "90"
|
||||
set scr_sentry_killsIncreaseStreak "1"
|
||||
|
||||
// _airdrop
|
||||
set scr_airdrop_killstreaksIncreaseStreak "1"
|
||||
|
@ -1,3 +1,14 @@
|
||||
/*
|
||||
_airdrop modded
|
||||
Author: INeedGames
|
||||
Date: 09/26/2020
|
||||
Allows sentry airdrops to gain killstreaks.
|
||||
|
||||
DVAR:
|
||||
- scr_airdrop_killstreaksIncreaseStreak <bool>
|
||||
false - (default) killstreaks obtained from airdrops increases our killstreak
|
||||
*/
|
||||
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\gametypes\_hud_util;
|
||||
@ -119,6 +130,9 @@ init()
|
||||
|
||||
addCrateType( "nuke_drop", "nuke", 100, ::nukeCrateThink );
|
||||
|
||||
setDvarIfUninitialized( "scr_airdrop_killstreaksIncreaseStreak", false );
|
||||
level.airdropKillstreaksIncreaseStreak = getDvarInt( "scr_airdrop_killstreaksIncreaseStreak" );
|
||||
|
||||
|
||||
// generate the max weighted value
|
||||
foreach ( dropType, crateTypes in level.crateTypes )
|
||||
@ -1271,7 +1285,9 @@ killstreakCrateThink( dropType )
|
||||
}
|
||||
|
||||
player playLocalSound( "ammo_crate_use" );
|
||||
player thread maps\mp\killstreaks\_killstreaks::giveKillstreak( self.crateType, false, false, self.owner );
|
||||
|
||||
doesIncreaseKS = level.airdropKillstreaksIncreaseStreak;
|
||||
player thread maps\mp\killstreaks\_killstreaks::giveKillstreak( self.crateType, doesIncreaseKS, doesIncreaseKS, self.owner );
|
||||
|
||||
player maps\mp\gametypes\_hud_message::killstreakSplashNotify( self.crateType, undefined, "pickup" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user