Update lua/weapons/koolaids_poo_blaster.lua

main
koolaid 2023-11-07 13:39:53 -05:00
parent 250c2bf036
commit a82ad32d32
1 changed files with 1 additions and 0 deletions

View File

@ -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.