Skip to content
Snippets Groups Projects
Commit 82a9492b authored by Steve Green's avatar Steve Green
Browse files

- Removed unclamped explosion from pumps getting ripped out of their sockets....

- Removed unclamped explosion from pumps getting ripped out of their sockets. Multiplied damage by 10 and made it piercing damage to make up for it.

Signed-off-by: default avatarSteeveeo <steeveeo91@gmail.com>
parent 1b338019
Branches
No related merge requests found
......@@ -182,13 +182,16 @@ if SERVER then
self:EmitSound("ambient/misc/metal_str"..math.random(1,3)..".wav", 500)
if Distance >= 1000 then
local core = self:GetBase().SC_CoreEnt
local otherCore = self:GetConnectedSocket().SC_CoreEnt
-- Disconnect from the socket, explosively.
self:DisconnectFromSocket()
--go boom (literally -brandon)
-- Rip and Tear!
local ExplosionScale = Distance / 1000
SC.ExplodeSimple(self:GetPos(), 150 * ExplosionScale, {KIN=(10000 * ExplosionScale)}, self, self, true, {self})
if core and IsValid(core) then core:DealCoreDamage({WTF=(100000 * ExplosionScale)}) end
if otherCore and IsValid(otherCore) then otherCore:DealCoreDamage({WTF=(100000 * ExplosionScale)}) end
local effectdata = {}
effectdata.Start = self:GetPos()
......@@ -196,7 +199,8 @@ if SERVER then
effectdata.Normal = self:GetTraceDirection()
effectdata.Magnitude = math.random() + 2 / 2 + 0.25
effectdata.Scale = 0.5
-- TODO: New Effect? Sparks plz.
SC.CreateEffect("impact_artillery", effectdata)
end
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment