charge
![code/datums/actions/mobs/charge.dm 1](git.png)
Vars | |
actively_moving | If the current move is being triggered by us or not |
---|---|
charge_damage | The damage the charger does when bumping into something |
charge_delay | Delay before the charge actually occurs |
charge_distance | The maximum distance we can charge |
charge_past | The amount of turfs we move past the target |
charge_speed | The sleep time before moving in deciseconds while charging |
charging | List of charging mobs |
destroy_objects | If we destroy objects while charging |
Procs | |
can_hit_target | Returns true if we're allowed to charge into this target |
hit_target | Actually hit someone |
try_hit_target | Attempt to hit someone with our charge |
Var Details
actively_moving
![code/datums/actions/mobs/charge.dm 20](git.png)
If the current move is being triggered by us or not
charge_damage
![code/datums/actions/mobs/charge.dm 16](git.png)
The damage the charger does when bumping into something
charge_delay
![code/datums/actions/mobs/charge.dm 8](git.png)
Delay before the charge actually occurs
charge_distance
![code/datums/actions/mobs/charge.dm 12](git.png)
The maximum distance we can charge
charge_past
![code/datums/actions/mobs/charge.dm 10](git.png)
The amount of turfs we move past the target
charge_speed
![code/datums/actions/mobs/charge.dm 14](git.png)
The sleep time before moving in deciseconds while charging
charging
![code/datums/actions/mobs/charge.dm 22](git.png)
List of charging mobs
destroy_objects
![code/datums/actions/mobs/charge.dm 18](git.png)
If we destroy objects while charging
Proc Details
can_hit_target
Returns true if we're allowed to charge into this target
hit_target
Actually hit someone
try_hit_target
Attempt to hit someone with our charge