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))
|
self:Input("onbosstouched",ent,self,string.lower(ent:GetZombieClassTable().Name))
|
||||||
else
|
else
|
||||||
local prevpos = ent:GetPos()
|
local prevpos = ent:GetPos()
|
||||||
local prevang = ent:GetAngles()
|
local prevang = ent:EyeAngles()
|
||||||
GAMEMODE:SpawnBossZombie(ent, self.Silent)
|
GAMEMODE:SpawnBossZombie(ent, self.Silent)
|
||||||
if self.InstantChange then
|
if self.InstantChange then
|
||||||
ent:SetPos(prevpos)
|
ent:SetPos(prevpos)
|
||||||
|
|
|
@ -52,7 +52,7 @@ function ENT:Touch(ent)
|
||||||
if string.lower(v.Name) == self.TouchClass then
|
if string.lower(v.Name) == self.TouchClass then
|
||||||
local prev = ent:GetZombieClass()
|
local prev = ent:GetZombieClass()
|
||||||
local prevpos = ent:GetPos()
|
local prevpos = ent:GetPos()
|
||||||
local prevang = ent:GetAngles()
|
local prevang = ent:EyeAngles()
|
||||||
ent:SetZombieClass(k)
|
ent:SetZombieClass(k)
|
||||||
ent:UnSpectateAndSpawn()
|
ent:UnSpectateAndSpawn()
|
||||||
if self.OneTime then
|
if self.OneTime then
|
||||||
|
|
Loading…
Reference in a new issue