1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Pass Distance

This commit is contained in:
Hellss
2022-08-16 13:19:23 +03:00
parent 61e01659a2
commit 76cddb2cea
14 changed files with 66 additions and 22 deletions

View File

@@ -461,11 +461,13 @@ net.Receive("metrostroi_bogey_contact",function()
util.Effect("stunstickimpact", effectdata, true, true)
local light = ents.CreateClientside("gmod_train_dlight")
light:SetPos(effectdata:GetOrigin())
light:SetDColor(Color(100,220,255))
light:SetSize(256)
light:SetBrightness(5)
light:Spawn()
SafeRemoveEntityDelayed(light,0.1)
if IsValid(light) then
light:SetPos(effectdata:GetOrigin())
light:SetDColor(Color(100,220,255))
light:SetSize(256)
light:SetBrightness(5)
light:Spawn()
SafeRemoveEntityDelayed(light,0.1)
end
sound.Play("subway_trains/bogey/spark.mp3",effectdata:GetOrigin(),75,math.random(100,150),volume)
end)