zombiesurvival-evolved/gamemodes/zombiesurvival/entities/entities/status_healdartboost.lua

18 lines
323 B
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "status__base"
function ENT:Initialize()
self.BaseClass.Initialize(self)
hook.Add("Move", self, self.Move)
end
function ENT:Move(pl, move)
if pl ~= self:GetOwner() then return end
move:SetMaxSpeed(move:GetMaxSpeed() + 50)
move:SetMaxClientSpeed(move:GetMaxSpeed())
end