zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_medicrifle/init.lua

13 lines
298 B
Lua
Raw Normal View History

INC_SERVER()
SWEP.Primary.Projectile = "projectile_medicrifle"
SWEP.Primary.ProjVelocity = 3500
function SWEP:EntModify(ent)
local owner = self:GetOwner()
ent:SetSeeked(self:GetSeekedPlayer() or nil)
ent.Heal = self.Heal * (owner.MedDartEffMul or 1)
ent.BuffDuration = self.BuffDuration
end