This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

28
lua/autorun/aw2_net.lua Normal file
View 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