From f2bb74219a7488ad48fa0730860b6e9e8da3a5f6 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 30 Oct 2014 13:39:01 +0000 Subject: [PATCH] Replaced GetAngles() with EyeAngles() --- .../zombiesurvival/entities/entities/trigger_bossclass/init.lua | 2 +- .../entities/entities/trigger_zombieclass/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/zombiesurvival/entities/entities/trigger_bossclass/init.lua b/gamemodes/zombiesurvival/entities/entities/trigger_bossclass/init.lua index 96bc077..d55206b 100644 --- a/gamemodes/zombiesurvival/entities/entities/trigger_bossclass/init.lua +++ b/gamemodes/zombiesurvival/entities/entities/trigger_bossclass/init.lua @@ -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) diff --git a/gamemodes/zombiesurvival/entities/entities/trigger_zombieclass/init.lua b/gamemodes/zombiesurvival/entities/entities/trigger_zombieclass/init.lua index 2de4653..29ab897 100644 --- a/gamemodes/zombiesurvival/entities/entities/trigger_zombieclass/init.lua +++ b/gamemodes/zombiesurvival/entities/entities/trigger_zombieclass/init.lua @@ -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