mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
28
lua/autorun/aw2_net.lua
Normal file
28
lua/autorun/aw2_net.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| 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
|
||||
Reference in New Issue
Block a user