ranged_mob_full_auto  
Allows a mob to autofire by holding down the cursor
Vars | |
| autofire_shot_delay | Delay before attempting to fire again, note that this is just when we make attempts and is separate from mob's actual firing cooldown | 
|---|---|
| awaiting_status | This seems hacky but there can be two MouseDown() without a MouseUp() in between if the user holds click and uses alt+tab, printscreen or similar. | 
| clicker | Our client for click tracking | 
| is_firing | Are we currently firing? | 
| next_shot_cooldown | When will we next try to shoot? | 
| target | What are we currently shooting at? | 
| target_loc | Where are we currently shooting at? | 
Procs | |
| on_gained_client | When we gain a client, start tracking clicks | 
| on_lost_client | When we lose our client, stop functioning | 
| on_mouse_down | On mouse down start shooting! | 
| on_mouse_drag | When the mouse moved let's try and shift our aim | 
| on_mouse_up | When the mouse is released we should stop | 
| on_target_deleted | Don't hang references | 
| set_target | Setter for reference handling | 
| start_firing | Start tracking mouse movement and processing our shots | 
| stop_firing | Stop watching our mouse and processing shots | 
| try_shooting | Try and take a shot, returns false if we are unable to do so and should stop trying | 
Var Details
autofire_shot_delay 
Delay before attempting to fire again, note that this is just when we make attempts and is separate from mob's actual firing cooldown
awaiting_status 
This seems hacky but there can be two MouseDown() without a MouseUp() in between if the user holds click and uses alt+tab, printscreen or similar.
clicker  
Our client for click tracking
is_firing 
Are we currently firing?
next_shot_cooldown 
When will we next try to shoot?
target  
What are we currently shooting at?
target_loc  
Where are we currently shooting at?
Proc Details
on_gained_client
When we gain a client, start tracking clicks
on_lost_client
When we lose our client, stop functioning
on_mouse_down
On mouse down start shooting!
on_mouse_drag
When the mouse moved let's try and shift our aim
on_mouse_up
When the mouse is released we should stop
on_target_deleted
Don't hang references
set_target
Setter for reference handling
start_firing
Start tracking mouse movement and processing our shots
stop_firing
Stop watching our mouse and processing shots
try_shooting
Try and take a shot, returns false if we are unable to do so and should stop trying