Remove Claw3
animation from Shiver
This commit is contained in:
parent
2384dc34d1
commit
8dc8f35b08
@ -38,6 +38,33 @@ simulated function PostBeginPlay()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
simulated event SetAnimAction(name NewAction) {
|
||||||
|
local int meleeAnimIndex;
|
||||||
|
|
||||||
|
if (bFrozenZed) return;
|
||||||
|
if (newAction == '') return;
|
||||||
|
|
||||||
|
if (newAction == 'Claw') {
|
||||||
|
meleeAnimIndex = Rand(2); // Shivers only have two animations now
|
||||||
|
newAction = meleeAnims[meleeAnimIndex];
|
||||||
|
currentDamtype = zombieDamType[meleeAnimIndex];
|
||||||
|
} else if(newAction == 'DoorBash') {
|
||||||
|
currentDamtype = zombieDamType[Rand(3)];
|
||||||
|
}
|
||||||
|
expectingChannel = DoAnimAction(NewAction);
|
||||||
|
if (AnimNeedsWait(newAction)) {
|
||||||
|
bWaitForAnim = true;
|
||||||
|
} else {
|
||||||
|
bWaitForAnim = false;
|
||||||
|
}
|
||||||
|
if (level.netMode != NM_Client) {
|
||||||
|
animAction = newAction;
|
||||||
|
bResetAnimAct = True;
|
||||||
|
resetAnimActTime = level.timeSeconds + 0.3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
simulated function Destroyed()
|
simulated function Destroyed()
|
||||||
{
|
{
|
||||||
if (Level.NetMode != NM_DedicatedServer && MatAlphaSkin != none)
|
if (Level.NetMode != NM_DedicatedServer && MatAlphaSkin != none)
|
||||||
@ -429,10 +456,16 @@ simulated function int DoAnimAction( name AnimName )
|
|||||||
}
|
}
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
HeadOffsetY=-3.000000
|
headOffsetY=-3.000000
|
||||||
idleInsertFrame=0.468000
|
idleInsertFrame=0.468000
|
||||||
OnlineHeadshotOffset=(X=19.000000,Z=39.000000)
|
onlineHeadshotOffset=(X=19.000000,Z=39.000000)
|
||||||
ScoringValue=15
|
scoringValue=15
|
||||||
HeadRadius=8.000000
|
headRadius=8.000000
|
||||||
HeadHeight=3.000000
|
headHeight=3.000000
|
||||||
|
// Override third animation just in case.
|
||||||
|
// However it shouldn't be required since we've already changed
|
||||||
|
// `SetAnimAction` function to only use first two animations
|
||||||
|
meleeAnims(0)="Claw"
|
||||||
|
meleeAnims(1)="Claw2"
|
||||||
|
meleeAnims(2)="Claw"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user