Compare commits
3 Commits
b8045655f1
...
c409579f4b
Author | SHA1 | Date | |
---|---|---|---|
|
c409579f4b | ||
|
de3230c71a | ||
|
f02a842540 |
@ -48,7 +48,7 @@ function RangedAttack(Actor A) {
|
||||
defaultproperties
|
||||
{
|
||||
maxNormalShots=3
|
||||
HuskFireProjClass=class'MeanHuskFireProjectile'
|
||||
AmmunitionClass=class'MeanZombieHuskAmmo'
|
||||
remainingStuns=1
|
||||
MenuName="Mean Husk"
|
||||
ControllerClass=class'MeanZombieHuskController'
|
||||
|
7
sources/Zeds/Mean/MeanZombieHuskAmmo.uc
Normal file
7
sources/Zeds/Mean/MeanZombieHuskAmmo.uc
Normal file
@ -0,0 +1,7 @@
|
||||
class MeanZombieHuskAmmo extends NiceZombieHuskAmmo;
|
||||
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
ProjectileClass=class'MeanHuskFireProjectile'
|
||||
}
|
@ -132,7 +132,8 @@ function TakeDamageClient(int Damage, Pawn InstigatedBy, Vector Hitlocation, Vec
|
||||
PostNetReceive();
|
||||
Super.TakeDamageClient(Damage, instigatedBy, hitLocation, momentum, damageType, headshotLevel, lockonTime);
|
||||
TwoSecondDamageTotal += OldHealth - Health;
|
||||
if( !bDecapitated && TwoSecondDamageTotal > RageDamageThreshold && !bChargingPlayer &&
|
||||
// fixed their one hit kill ability when you spam attack during hit animation
|
||||
if( !bDecapitated && TwoSecondDamageTotal > RageDamageThreshold && !bChargingPlayer && !bShotAnim &&
|
||||
(!(bWasBurning && bCrispified) || bFrustrated) )
|
||||
StartChargingFP(InstigatedBy);
|
||||
}
|
||||
|
@ -21,14 +21,20 @@ simulated function HeatTick(){
|
||||
}
|
||||
super.HeatTick();
|
||||
}
|
||||
|
||||
simulated function PostBeginPlay()
|
||||
{
|
||||
// Difficulty Scaling
|
||||
if (Level.Game != none && !bDiffAdjusted){
|
||||
if (Level.Game != none && !bDiffAdjusted)
|
||||
{
|
||||
ProjectileFireInterval = default.ProjectileFireInterval * 0.6;
|
||||
}
|
||||
// and why TWI removed this feature...
|
||||
MyAmmo = spawn(AmmunitionClass);
|
||||
|
||||
super.PostBeginPlay();
|
||||
}
|
||||
|
||||
// don't interrupt the bloat while he is puking
|
||||
simulated function bool HitCanInterruptAction()
|
||||
{
|
||||
@ -146,14 +152,14 @@ function SpawnTwoShots()
|
||||
|
||||
if (!SavedFireProperties.bInitialized)
|
||||
{
|
||||
SavedFireProperties.AmmoClass = class'SkaarjAmmo';
|
||||
SavedFireProperties.ProjectileClass = HuskFireProjClass;
|
||||
SavedFireProperties.WarnTargetPct = 1;
|
||||
SavedFireProperties.MaxRange = 65535;
|
||||
SavedFireProperties.bTossed = false;
|
||||
SavedFireProperties.bTrySplash = true;
|
||||
SavedFireProperties.bLeadTarget = true;
|
||||
SavedFireProperties.bInstantHit = false;
|
||||
SavedFireProperties.AmmoClass = MyAmmo.Class;
|
||||
SavedFireProperties.ProjectileClass = MyAmmo.ProjectileClass;
|
||||
SavedFireProperties.WarnTargetPct = MyAmmo.WarnTargetPct;
|
||||
SavedFireProperties.MaxRange = MyAmmo.MaxRange;
|
||||
SavedFireProperties.bTossed = MyAmmo.bTossed;
|
||||
SavedFireProperties.bTrySplash = MyAmmo.bTrySplash;
|
||||
SavedFireProperties.bLeadTarget = MyAmmo.bLeadTarget;
|
||||
SavedFireProperties.bInstantHit = MyAmmo.bInstantHit;
|
||||
SavedFireProperties.bInitialized = true;
|
||||
}
|
||||
|
||||
@ -173,7 +179,7 @@ function SpawnTwoShots()
|
||||
}
|
||||
|
||||
// added projectile owner...
|
||||
Spawn(HuskFireProjClass, self, , FireStart, FireRotation);
|
||||
Spawn(SavedFireProperties.ProjectileClass, self, , FireStart, FireRotation);
|
||||
|
||||
// Turn extra collision back on
|
||||
ToggleAuxCollision(true);
|
||||
@ -379,7 +385,7 @@ static simulated function PreCacheMaterials(LevelInfo myLevel)
|
||||
}
|
||||
defaultproperties
|
||||
{
|
||||
HuskFireProjClass=class'NiceHuskFireProjectile'
|
||||
AmmunitionClass=class'NiceZombieHuskAmmo'
|
||||
stunLoopStart=0.080000
|
||||
stunLoopEnd=0.900000
|
||||
idleInsertFrame=0.930000
|
||||
|
13
sources/Zeds/Nice/NiceZombieHuskAmmo.uc
Normal file
13
sources/Zeds/Nice/NiceZombieHuskAmmo.uc
Normal file
@ -0,0 +1,13 @@
|
||||
class NiceZombieHuskAmmo extends Ammunition;
|
||||
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
ProjectileClass=class'NiceHuskFireProjectile'
|
||||
WarnTargetPct=1
|
||||
MaxRange=65535
|
||||
bTossed=False
|
||||
bTrySplash=True
|
||||
bLeadTarget=True
|
||||
bInstantHit=False
|
||||
}
|
Loading…
Reference in New Issue
Block a user