cw_pushbroom weapon
Weapon defined in entities/weapons/cw_pushbroom
Defines the cw_pushbroom weapon, a push broom for sweeping rubbish that has no view model and shows a broom prop
in the owner's hand instead.
While it is raised the server forces the owner's sweeping, idle or walking broom animation, and primary fire plays a two second sweep.
Summary
Methods
SWEP:Think plays, unless one is already running.Methods
Hides the view model and attaches a push broom prop to the owner's hand on the server.
Returns
- Boolean Always
trueto allow the deploy
Shows the view model again and removes the broom prop and the forced animation.
Returns
- Boolean Always
trueto allow the holster
Sets the melee hold type.
Clears the owner's forced broom animation on the server.
Shows the view model again and removes the broom prop and the forced animation.
Returns
- Boolean Always
true
Starts a sweep, which SWEP:Think plays, unless one is already running.
Does nothing.
Returns
- Boolean Always
false
Forces the owner's sweeping, idle or walking broom animation while the broom is raised.
Runs on the server. Standing still or in the air plays the two second sweep after a primary attack and the idle sweep otherwise; moving on the ground plays the walking animation.