Update lua/weapons/koolaids_poo_blaster.lua

main
koolaid 2023-11-07 13:35:51 -05:00
parent a895dcd243
commit 250c2bf036
1 changed files with 131 additions and 131 deletions

View File

@ -87,7 +87,7 @@ function SWEP:ThrowChair( model_file )
-- Set the entity's model to the passed in model
ent:SetModel( model_file )
ent:SetMass(40)
-- This is the same as owner:EyePos() + (self:GetOwner():GetAimVector() * 16)
-- but the vector methods prevent duplicitous objects from being created
-- which is faster and more memory efficient
@ -123,7 +123,7 @@ function SWEP:ThrowChair( model_file )
undo.AddEntity( ent )
undo.SetPlayer( owner )
undo.Finish()
ent:SetCollisionGroup( COLLISION_GROUP_DEBRIS )
--ent:SetCollisionGroup( COLLISION_GROUP_DEBRIS )
ent:SetMaterial("models/props_pipes/GutterMetal01a")
-- A lot of items can clutter the workspace.
-- To fix this we add a 10 second delay to remove the chair after it was spawned.