zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/zombieclasses/boss_asskicker/server.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

22 lines
719 B
Lua

AddCSLuaFile("shared.lua")
include("shared.lua")
function CLASS:OnKilled(pl, attacker, inflictor, suicide, headshot, dmginfo)
local fakedeath = pl:FakeDeath(pl:LookupSequence("death_0"..math.random(4)), self.ModelScale)
if fakedeath and fakedeath:IsValid() then
fakedeath:SetModel(self.OverrideModel)
local ang = fakedeath:GetDeathAngles()
fakedeath:SetPos(fakedeath:GetPos() + ang:Up() * 10)
ang:RotateAroundAxis(ang:Right(), 90)
fakedeath:SetDeathAngles(ang)
--[[local override = ents.Create("status_overridemodel")
if override:IsValid() then
override:SetModel(self.OverrideModel)
override:SetParent(fakedeath)
override:SetOwner(fakedeath)
override:Spawn()
end]]
end
return true
end