thrownthing ![code/controllers/subsystem/throwing.dm 43](git.png)
Vars | |
callback | If a thrown thing has a callback, it can be invoked here within thrownthing. |
---|---|
delayed_time | How long an object has been paused for, to be added to the travel time. |
diagonal_error | How many tiles that need to be moved in order to travel to the target. |
diagonals_first | A variable that helps in describing objects thrown at an angle, if it should be moved diagonally first or last. |
dist_travelled | Tracks how far a thrownthing has traveled mid-throw for the purposes of maxrange |
dist_x | Distance to travel in the X axis/direction. |
dist_y | Distance to travel in the y axis/direction. |
dx | The Horizontal direction we're traveling (EAST or WEST) |
dy | The VERTICAL direction we're traveling (NORTH or SOUTH) |
force | The movement force provided to a given object in transit. More info on these in move_force.dm |
gentle | If the throw is gentle, then the thrownthing is harmless on impact. |
init_dir | The initial direction of the thrower of the thrownthing for building the trajectory of the throw. |
initial_target | Weakref to the original intended target of the throw, to prevent hardDels |
last_move | The last world.time value stored when the thrownthing was moving. |
maxrange | The maximum number of turfs that the thrownthing will travel to reach its target. |
paused | Mainly exists for things that would freeze a thrown object in place, like a timestop'd tile. Or a Tractor Beam. |
pure_diagonal | Set to TRUE if the throw is exclusively diagonal (45 Degree angle throws for example) |
speed | Turfs to travel per tick |
start_time | The start_time obtained via world.time for the purposes of tiles moved/tick. |
starting_turf | The turf that we were thrown from. |
target_turf | The turf that the target was on, if it's not a turf itself. |
target_zone | If the target happens to be a carbon and that carbon has a body zone aimed at, this is carried on here. |
thrower | If a mob is the one who has thrown the object, then it's moved here. This can be null and must be null checked before trying to use it. |
thrownthing | Defines the atom that has been thrown (Objects and Mobs, mostly.) |
Procs | |
get_thrower | Returns the mob thrower, or null |
on_thrownthing_qdel | Defines the datum behavior on the thrownthing's qdeletion event. |
Var Details
callback ![code/controllers/subsystem/throwing.dm 85](git.png)
If a thrown thing has a callback, it can be invoked here within thrownthing.
delayed_time ![code/controllers/subsystem/throwing.dm 89](git.png)
How long an object has been paused for, to be added to the travel time.
diagonal_error ![code/controllers/subsystem/throwing.dm 83](git.png)
How many tiles that need to be moved in order to travel to the target.
diagonals_first ![code/controllers/subsystem/throwing.dm 63](git.png)
A variable that helps in describing objects thrown at an angle, if it should be moved diagonally first or last.
dist_travelled ![code/controllers/subsystem/throwing.dm 67](git.png)
Tracks how far a thrownthing has traveled mid-throw for the purposes of maxrange
dist_x ![code/controllers/subsystem/throwing.dm 71](git.png)
Distance to travel in the X axis/direction.
dist_y ![code/controllers/subsystem/throwing.dm 73](git.png)
Distance to travel in the y axis/direction.
dx ![code/controllers/subsystem/throwing.dm 75](git.png)
The Horizontal direction we're traveling (EAST or WEST)
dy ![code/controllers/subsystem/throwing.dm 77](git.png)
The VERTICAL direction we're traveling (NORTH or SOUTH)
force ![code/controllers/subsystem/throwing.dm 79](git.png)
The movement force provided to a given object in transit. More info on these in move_force.dm
gentle ![code/controllers/subsystem/throwing.dm 81](git.png)
If the throw is gentle, then the thrownthing is harmless on impact.
init_dir ![code/controllers/subsystem/throwing.dm 55](git.png)
The initial direction of the thrower of the thrownthing for building the trajectory of the throw.
initial_target ![code/controllers/subsystem/throwing.dm 47](git.png)
Weakref to the original intended target of the throw, to prevent hardDels
last_move ![code/controllers/subsystem/throwing.dm 91](git.png)
The last world.time value stored when the thrownthing was moving.
maxrange ![code/controllers/subsystem/throwing.dm 57](git.png)
The maximum number of turfs that the thrownthing will travel to reach its target.
paused ![code/controllers/subsystem/throwing.dm 87](git.png)
Mainly exists for things that would freeze a thrown object in place, like a timestop'd tile. Or a Tractor Beam.
pure_diagonal ![code/controllers/subsystem/throwing.dm 65](git.png)
Set to TRUE if the throw is exclusively diagonal (45 Degree angle throws for example)
speed ![code/controllers/subsystem/throwing.dm 59](git.png)
Turfs to travel per tick
start_time ![code/controllers/subsystem/throwing.dm 69](git.png)
The start_time obtained via world.time for the purposes of tiles moved/tick.
starting_turf ![code/controllers/subsystem/throwing.dm 51](git.png)
The turf that we were thrown from.
target_turf ![code/controllers/subsystem/throwing.dm 49](git.png)
The turf that the target was on, if it's not a turf itself.
target_zone ![code/controllers/subsystem/throwing.dm 53](git.png)
If the target happens to be a carbon and that carbon has a body zone aimed at, this is carried on here.
thrower ![code/controllers/subsystem/throwing.dm 61](git.png)
If a mob is the one who has thrown the object, then it's moved here. This can be null and must be null checked before trying to use it.
thrownthing ![code/controllers/subsystem/throwing.dm 45](git.png)
Defines the atom that has been thrown (Objects and Mobs, mostly.)
Proc Details
get_thrower
Returns the mob thrower, or null
on_thrownthing_qdel
Defines the datum behavior on the thrownthing's qdeletion event.