Update lua/weapons/koolaids_poo_blaster.lua
parent
250c2bf036
commit
a82ad32d32
|
|
@ -108,6 +108,7 @@ function SWEP:ThrowChair( model_file )
|
||||||
-- If it isn't then we'll remove the entity.
|
-- If it isn't then we'll remove the entity.
|
||||||
local phys = ent:GetPhysicsObject()
|
local phys = ent:GetPhysicsObject()
|
||||||
if ( not phys:IsValid() ) then ent:Remove() return end
|
if ( not phys:IsValid() ) then ent:Remove() return end
|
||||||
|
phys:SetMaterial("flesh")
|
||||||
-- Now we apply the force - so the chair actually throws instead
|
-- Now we apply the force - so the chair actually throws instead
|
||||||
-- of just falling to the ground. You can play with this value here
|
-- of just falling to the ground. You can play with this value here
|
||||||
-- to adjust how fast we throw it.
|
-- to adjust how fast we throw it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue