All pastes #477638 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-08 19:37 UTC
rendered paste body
-- Found this example on http://code.garrysmod.com/?show=/lua/weapons/weapon_cs_base/shared.lua#140
local eyeang = self.Owner:EyeAngles()
eyeang.pitch = eyeang.pitch - recoil
self.Owner:SetEyeAngles( eyeang ) 

-- Tried this
ply:SetEyeAngles(ply:EyeAngles()) -- no effect spawn in angle of spawnpoints
ply:SetEyeAngles(ply:GetAimVector()) --  no matter where i aim i spawn in angle of spawnpoint, rotated 180 degrees
ply:SetEyeAngles(ply:GetAngles()) -- no effect spawn in angle of spawnpoints