update15 #34
@ -3,6 +3,7 @@ class NiceZombieShiver extends NiceZombieShiverBase;
|
|||||||
var float TeleportBlockTime;
|
var float TeleportBlockTime;
|
||||||
var float HeadOffsetY;
|
var float HeadOffsetY;
|
||||||
var transient bool bRunning, bClientRunning;
|
var transient bool bRunning, bClientRunning;
|
||||||
|
var float teleportAttackCooldownEndTime;
|
||||||
replication
|
replication
|
||||||
{
|
{
|
||||||
reliable if ( Role == ROLE_Authority)
|
reliable if ( Role == ROLE_Authority)
|
||||||
@ -39,6 +40,12 @@ simulated function PostBeginPlay()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function bool CanAttack(Actor target) {
|
||||||
|
if (level.timeSeconds < teleportAttackCooldownEndTime)
|
||||||
|
return false;
|
||||||
|
return super.CanAttack(target);
|
||||||
|
}
|
||||||
|
|
||||||
simulated event SetAnimAction(name NewAction) {
|
simulated event SetAnimAction(name NewAction) {
|
||||||
local int meleeAnimIndex;
|
local int meleeAnimIndex;
|
||||||
|
|
||||||
@ -407,6 +414,7 @@ function FlashTeleport()
|
|||||||
Teleported:
|
Teleported:
|
||||||
bFlashTeleporting = false;
|
bFlashTeleporting = false;
|
||||||
LastFlashTime = Level.TimeSeconds;
|
LastFlashTime = Level.TimeSeconds;
|
||||||
|
teleportAttackCooldownEndTime = level.timeSeconds + 0.5;
|
||||||
}
|
}
|
||||||
function Died(Controller Killer, class<DamageType> damageType, vector HitLocation)
|
function Died(Controller Killer, class<DamageType> damageType, vector HitLocation)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user