fix this garbage

This commit is contained in:
Luna 2024-09-10 13:58:06 +02:00
parent a93f69460e
commit c2cefe60dd
2 changed files with 9 additions and 3 deletions

View File

@ -137,8 +137,14 @@ function ENT:ExplodeVehicle()
bprop.MakeSound = true
bprop:Spawn()
bprop:Activate()
bprop:GetPhysicsObject():SetVelocity( self:GetVelocity() + Vector(math.random(-5,5),math.random(-5,5),math.random(150,250)) )
bprop:GetPhysicsObject():SetMass( self.Mass * 0.75 )
local bpropPhysObj = bprop:GetPhysicsObject()
if IsValid( bpropPhysObj ) then
bpropPhysObj:SetVelocity( self:GetVelocity() + Vector(math.random(-5,5),math.random(-5,5),math.random(150,250)) )
bpropPhysObj:SetMass( self.Mass * 0.75 )
end
bprop.DoNotDuplicate = true
bprop:SetColor( Col )
bprop:SetSkin( skin )

View File

@ -405,7 +405,7 @@ local V = {
LightsTable = "conapc",
GibModels = {
"models/blu/conscript_apc.mdl",
"models/props_vehicles/apc001.mdl",
"models/props_vehicles/apc_tire001.mdl",
"models/props_vehicles/apc_tire001.mdl",
"models/props_vehicles/apc_tire001.mdl",