basketball 
Vars | |
| ball_effects_active | Whether we're the ball with the dribbling signals registered on our wielder, so holding two balls doesn't double everything up |
|---|---|
| last_use | So they can't spam dribbling (at least not too much) |
| pickup_cooldown | Pickup restriction cooldown |
| pickup_restriction_ckeys | List of player ckeys who aren't allowed to pickup the ball (after scoring) This resets after someone else picks up the ball or a certain amount of time has passed |
| steps | So the basketball doesn't make sound every step |
| wielder | The person dribbling the basketball |
Procs | |
| add_ball_effects | Sets up the dribbling signals on our wielder if we're actually in their hands. Returns TRUE if it worked |
| after_throw_reset | After a ball is thrown we need to reset the pass_flags since shooting lets you shoot through mobs |
| on_equipped_mob_disarm | Used to calculate our disarm chance based on stamina, direction, and spinning Note - monkeys use attack_paw() and never trigger this signal (so they always have 100% disarm) |
Var Details
ball_effects_active 
Whether we're the ball with the dribbling signals registered on our wielder, so holding two balls doesn't double everything up
last_use 
So they can't spam dribbling (at least not too much)
pickup_cooldown 
Pickup restriction cooldown
pickup_restriction_ckeys 
List of player ckeys who aren't allowed to pickup the ball (after scoring) This resets after someone else picks up the ball or a certain amount of time has passed
steps 
So the basketball doesn't make sound every step
wielder 
The person dribbling the basketball
Proc Details
add_ball_effects
Sets up the dribbling signals on our wielder if we're actually in their hands. Returns TRUE if it worked
after_throw_reset
After a ball is thrown we need to reset the pass_flags since shooting lets you shoot through mobs
- source: Datum src from original signal call
on_equipped_mob_disarm
Used to calculate our disarm chance based on stamina, direction, and spinning Note - monkeys use attack_paw() and never trigger this signal (so they always have 100% disarm)