mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 13:23:46 +03:00
28 lines
621 B
Lua
28 lines
621 B
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
if SERVER then
|
|
util.AddNetworkString("aw2Enter")
|
|
util.AddNetworkString("aw2Eject")
|
|
end
|
|
|
|
if CLIENT then
|
|
net.Receive("aw2Enter", function(len)
|
|
local ent = net.ReadEntity()
|
|
local ang = Angle(0, ent:GetAngles().y, 0)
|
|
|
|
LocalPlayer().aw2Ent = ent
|
|
LocalPlayer():SetEyeAngles(ang)
|
|
end)
|
|
|
|
net.Receive("aw2Eject", function(len)
|
|
LocalPlayer().aw2Ent = nil
|
|
end)
|
|
end |