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