mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
70 lines
1.5 KiB
Lua
70 lines
1.5 KiB
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 CLIENT then
|
||
|
|
net.Receive( "lvs_hurtmarker", function( len )
|
||
|
|
if not LVS.ShowHitMarker then return end
|
||
|
|
|
||
|
|
local ply = LocalPlayer()
|
||
|
|
|
||
|
|
local vehicle = ply:lvsGetVehicle()
|
||
|
|
|
||
|
|
if not IsValid( vehicle ) then return end
|
||
|
|
|
||
|
|
vehicle:HurtMarker( net.ReadFloat() )
|
||
|
|
end )
|
||
|
|
|
||
|
|
net.Receive( "lvs_hitmarker", function( len )
|
||
|
|
if not LVS.ShowHitMarker then return end
|
||
|
|
|
||
|
|
local ply = LocalPlayer()
|
||
|
|
|
||
|
|
local vehicle = ply:lvsGetVehicle()
|
||
|
|
if not IsValid( vehicle ) then return end
|
||
|
|
|
||
|
|
if net.ReadBool() then
|
||
|
|
vehicle:CritMarker()
|
||
|
|
else
|
||
|
|
vehicle:HitMarker()
|
||
|
|
end
|
||
|
|
end )
|
||
|
|
|
||
|
|
net.Receive( "lvs_killmarker", function( len )
|
||
|
|
if not LVS.ShowHitMarker then return end
|
||
|
|
|
||
|
|
local ply = LocalPlayer()
|
||
|
|
|
||
|
|
local vehicle = ply:lvsGetVehicle()
|
||
|
|
|
||
|
|
if not IsValid( vehicle ) then return end
|
||
|
|
|
||
|
|
vehicle:KillMarker()
|
||
|
|
end )
|
||
|
|
|
||
|
|
net.Receive( "lvs_armormarker", function( len )
|
||
|
|
if not LVS.ShowHitMarker then return end
|
||
|
|
|
||
|
|
local ply = LocalPlayer()
|
||
|
|
|
||
|
|
local vehicle = ply:lvsGetVehicle()
|
||
|
|
|
||
|
|
if not IsValid( vehicle ) then return end
|
||
|
|
|
||
|
|
vehicle:ArmorMarker( net.ReadBool() )
|
||
|
|
end )
|
||
|
|
|
||
|
|
return
|
||
|
|
end
|
||
|
|
|
||
|
|
util.AddNetworkString( "lvs_hitmarker" )
|
||
|
|
util.AddNetworkString( "lvs_hurtmarker" )
|
||
|
|
util.AddNetworkString( "lvs_killmarker" )
|
||
|
|
util.AddNetworkString( "lvs_armormarker" )
|