mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 05:55:42 +00:00
care package glitch
This commit is contained in:
parent
56780c43eb
commit
7f43f20e83
@ -566,3 +566,4 @@ set scr_sentry_killsIncreaseStreak "1"
|
||||
|
||||
// _airdrop
|
||||
set scr_airdrop_killstreaksIncreaseStreak "1"
|
||||
set scr_airdrop_patchDupeGlitch "0"
|
||||
|
@ -7,6 +7,9 @@
|
||||
DVAR:
|
||||
- scr_airdrop_killstreaksIncreaseStreak <bool>
|
||||
false - (default) killstreaks obtained from airdrops increases our killstreak
|
||||
|
||||
- scr_airdrop_patchDupeGlitch <bool>
|
||||
true - (default) patches the infamous care package dupe glitch (infinite)
|
||||
*/
|
||||
|
||||
#include maps\mp\_utility;
|
||||
@ -131,7 +134,10 @@ init()
|
||||
addCrateType( "nuke_drop", "nuke", 100, ::nukeCrateThink );
|
||||
|
||||
setDvarIfUninitialized( "scr_airdrop_killstreaksIncreaseStreak", false );
|
||||
setDvarIfUninitialized( "scr_airdrop_patchDupeGlitch", true );
|
||||
|
||||
level.airdropKillstreaksIncreaseStreak = getDvarInt( "scr_airdrop_killstreaksIncreaseStreak" );
|
||||
level.airdropPatchDupeGlitch = getDvarInt( "scr_airdrop_patchDupeGlitch" );
|
||||
|
||||
|
||||
// generate the max weighted value
|
||||
@ -250,6 +256,9 @@ tryUseAirdrop( lifeId, kID, dropType )
|
||||
if ( !isDefined( dropType ) )
|
||||
dropType = "airdrop";
|
||||
|
||||
if ( !level.airdropPatchDupeGlitch )
|
||||
self.pers["kIDs_valid"][kID] = true;
|
||||
|
||||
if ( !isDefined( self.pers["kIDs_valid"][kID] ) )
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user