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:
@@ -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)
|
||||
Reference in New Issue
Block a user