mirror of
https://github.com/SpaxscE/simfphys_base.git
synced 2025-03-04 03:13:26 -05:00
fix this garbage
This commit is contained in:
parent
a93f69460e
commit
c2cefe60dd
@ -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 )
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user