Another attempt to fix Demo AOE

This commit is contained in:
Forrest Keller 2017-10-28 10:52:19 -05:00
parent 23e8721408
commit d4403a970b
6 changed files with 6 additions and 48 deletions

View File

@ -3,9 +3,8 @@ class ExtProj_DynamiteGrenade extends KFProj_DynamiteGrenade;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}

View File

@ -3,9 +3,8 @@ class ExtProj_HighExplosive_M16M203 extends KFProj_HighExplosive_M16M203;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}

View File

@ -3,9 +3,8 @@ class ExtProj_HighExplosive_M79 extends KFProj_HighExplosive_M79;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}

View File

@ -3,9 +3,8 @@ class ExtProj_Rocket_RPG7 extends KFProj_Rocket_RPG7;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}

View File

@ -3,9 +3,8 @@ class ExtProj_Rocket_Seeker6 extends KFProj_Rocket_Seeker6;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}

View File

@ -3,9 +3,8 @@ class ExtProj_Thrown_C4 extends KFProj_Thrown_C4;
simulated protected function PrepareExplosionTemplate()
{
local ExtPlayerReplicationInfo MyPRI;
local Ext_PerkDemolition DemoPerk;
Super(KFProjectile).PrepareExplosionTemplate();
Super.PrepareExplosionTemplate();
if(Instigator == None)
return;
@ -25,12 +24,6 @@ simulated protected function PrepareExplosionTemplate()
ExplosionTemplate.ExplosionEffects = AltExploEffects;
ExplosionTemplate.ExplosionSound = class'KFPerk_Demolitionist'.static.GetConcussiveExplosionSound();
}
DemoPerk = Ext_PerkDemolition(MyPRI.FCurrentPerk);
if( DemoPerk == none )
return;
ExplosionTemplate.DamageRadius *= DemoPerk.GetAoERadiusModifier();
}
}