CLASS.Name = "Mimic" CLASS.Description = "." CLASS.Model = Model("models/Zombie/Fast.mdl") CLASS.Wave = 1 / 2 CLASS.Health = 100 CLASS.Speed = 250 CLASS.Frags = 5 CLASS.SWEP = "weapon_zs_mimic" CLASS.PainSounds = {"NPC_FastZombie.Pain"} CLASS.DeathSounds = {"NPC_FastZombie.Die"} CLASS.VoicePitch = 1 function CLASS:CalcMainActivity(pl, velocity) local wep = pl:GetActiveWeapon() if not wep:IsValid() or not wep.IsMimic or wep:IsMimic() then return end if wep:GetSwinging() then pl.CalcSeqOverride = 8 return true end if not pl:OnGround() or pl:WaterLevel() >= 3 then pl.CalcSeqOverride = 5 elseif velocity:Length2D() <= 0.5 then pl.CalcIdeal = ACT_IDLE else pl.CalcIdeal = ACT_RUN end return true end function CLASS:UpdateAnimation(pl, velocity, maxseqgroundspeed) pl:FixModelAngles(velocity) local seq = pl:GetSequence() if seq == 5 or seq == 8 then pl:SetPlaybackRate(1) return true end end --[[function CLASS:DoesntGiveFear(pl) return true end]] if not CLIENT then return end CLASS.HealthBar = surface.GetTextureID("zombiesurvival/healthbar_fastzombie") CLASS.Icon = "zombiesurvival/killicons/fastzombie"