Replaced GetAngles() with EyeAngles()
This commit is contained in:
parent
e42753beae
commit
f2bb74219a
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ function ENT:StartTouch(ent)
|
|||
self:Input("onbosstouched",ent,self,string.lower(ent:GetZombieClassTable().Name))
|
||||
else
|
||||
local prevpos = ent:GetPos()
|
||||
local prevang = ent:GetAngles()
|
||||
local prevang = ent:EyeAngles()
|
||||
GAMEMODE:SpawnBossZombie(ent, self.Silent)
|
||||
if self.InstantChange then
|
||||
ent:SetPos(prevpos)
|
||||
|
|
|
@ -52,7 +52,7 @@ function ENT:Touch(ent)
|
|||
if string.lower(v.Name) == self.TouchClass then
|
||||
local prev = ent:GetZombieClass()
|
||||
local prevpos = ent:GetPos()
|
||||
local prevang = ent:GetAngles()
|
||||
local prevang = ent:EyeAngles()
|
||||
ent:SetZombieClass(k)
|
||||
ent:UnSpectateAndSpawn()
|
||||
if self.OneTime then
|
||||
|
|
Loading…
Reference in a new issue