/tg/ Station 13 - Modules - TypesVar Details - Proc Details

hook_and_move

Lightweight datum that just handles moving a target for the hook. For the love of God, do not use this outside this file.

Vars

destination_refWeakref of the destination that the victim is heading towards.
firer_refWeakref to the firer of the hook
firer_ref_stringString to the REF() of the dude that fired us so we can ensure we always cleanup our traits
knockdown_timeHow long we knockdown the victim for.
last_movementThe last time our movement fired.
prevent_movement_traitsList of traits that prevent the user from moving. More restrictive than attempting to fire the hook by design.
return_chainThe chain beam we currently own.
steps_per_tickHow many steps we force the victim to take per tick
victim_refWeakref to the victim we are dragging

Procs

attempt_movementAttempts to move the victim towards the destination. Returns TRUE if we do a successful movement, FALSE otherwise. second_attempt is a boolean to prevent infinite recursion. If this whole series of events wasn't reliant on SSfastprocess firing as fast as it does, it would have been more useful to make this a move loop datum. But, we need the speed.
begin_pullingUses fastprocessing to move our victim to the destination at a rather fast speed.
end_movementCancels processing and removes the trait from the victim.

Var Details

destination_ref

Weakref of the destination that the victim is heading towards.

firer_ref

Weakref to the firer of the hook

firer_ref_string

String to the REF() of the dude that fired us so we can ensure we always cleanup our traits

knockdown_time

How long we knockdown the victim for.

last_movement

The last time our movement fired.

prevent_movement_traits

List of traits that prevent the user from moving. More restrictive than attempting to fire the hook by design.

return_chain

The chain beam we currently own.

steps_per_tick

How many steps we force the victim to take per tick

victim_ref

Weakref to the victim we are dragging

Proc Details

attempt_movement

Attempts to move the victim towards the destination. Returns TRUE if we do a successful movement, FALSE otherwise. second_attempt is a boolean to prevent infinite recursion. If this whole series of events wasn't reliant on SSfastprocess firing as fast as it does, it would have been more useful to make this a move loop datum. But, we need the speed.

begin_pulling

Uses fastprocessing to move our victim to the destination at a rather fast speed.

end_movement

Cancels processing and removes the trait from the victim.