mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
combathigh
This commit is contained in:
parent
3c9b3a423f
commit
3c96c5df42
@ -535,3 +535,6 @@ set scr_nukeKillsAll "0"
|
|||||||
|
|
||||||
// _emp
|
// _emp
|
||||||
set scr_empEffectsAll "0"
|
set scr_empEffectsAll "0"
|
||||||
|
|
||||||
|
// _perks
|
||||||
|
set combathighIsJuiced "1"
|
||||||
|
@ -178,6 +178,9 @@ init()
|
|||||||
level.perkSetFuncs["specialty_tacticalinsertion"] = ::setTacticalInsertion;
|
level.perkSetFuncs["specialty_tacticalinsertion"] = ::setTacticalInsertion;
|
||||||
level.perkUnsetFuncs["specialty_tacticalinsertion"] = ::unsetTacticalInsertion;
|
level.perkUnsetFuncs["specialty_tacticalinsertion"] = ::unsetTacticalInsertion;
|
||||||
|
|
||||||
|
setDvarIfUninitialized( "combathighIsJuiced", false );
|
||||||
|
level.combathighIsJuiced = getDvarInt( "combathighIsJuiced" );
|
||||||
|
|
||||||
initPerkDvars();
|
initPerkDvars();
|
||||||
|
|
||||||
level thread onPlayerConnect();
|
level thread onPlayerConnect();
|
||||||
@ -323,7 +326,7 @@ cac_modified_damage( victim, attacker, damage, meansofdeath, weapon, impactPoint
|
|||||||
//if ( ( victim.xpScaler == 2 && isDefined( attacker ) ) && ( isPlayer( attacker ) || attacker.classname == "scrip_vehicle" ) )
|
//if ( ( victim.xpScaler == 2 && isDefined( attacker ) ) && ( isPlayer( attacker ) || attacker.classname == "scrip_vehicle" ) )
|
||||||
// damageAdd += 200;
|
// damageAdd += 200;
|
||||||
|
|
||||||
if ( victim _hasperk( "specialty_combathigh" ) )
|
if ( victim _hasperk( "specialty_combathigh" ) && !level.combathighIsJuiced )
|
||||||
{
|
{
|
||||||
if ( IsDefined( self.damageBlockedTotal ) && (!level.teamBased || (isDefined( attacker ) && isDefined( attacker.team ) && victim.team != attacker.team)) )
|
if ( IsDefined( self.damageBlockedTotal ) && (!level.teamBased || (isDefined( attacker ) && isDefined( attacker.team ) && victim.team != attacker.team)) )
|
||||||
{
|
{
|
Loading…
x
Reference in New Issue
Block a user