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

paperplane_crossbow

Vars

charge_delayTime it takes to regenerate one plane
chargingIs the crossbow currently charging a new paper plane?
max_planesMaximum of planes the crossbow can hold.
planesHow many planes does the crossbow currently have in its internal magazine?
shooting_cooldownAre we ready to fire again?
shooting_delayHow long is the cooldown between shots?

Procs

charge_paper_planesA simple proc to charge paper planes, that then calls [/obj/item/borg/paperplane_crossbow/proc/check_amount()] to see if it should charge another one, over and over.
check_amountA simple proc to check if we're at the max amount of planes, if not, we keep on charging. Called by [/obj/item/borg/paperplane_crossbow/proc/charge_paper_planes()].
shootA proc for shooting a projectile at the target, it's just that simple, really.

Var Details

charge_delay

Time it takes to regenerate one plane

charging

Is the crossbow currently charging a new paper plane?

max_planes

Maximum of planes the crossbow can hold.

planes

How many planes does the crossbow currently have in its internal magazine?

shooting_cooldown

Are we ready to fire again?

shooting_delay

How long is the cooldown between shots?

Proc Details

charge_paper_planes

A simple proc to charge paper planes, that then calls [/obj/item/borg/paperplane_crossbow/proc/check_amount()] to see if it should charge another one, over and over.

check_amount

A simple proc to check if we're at the max amount of planes, if not, we keep on charging. Called by [/obj/item/borg/paperplane_crossbow/proc/charge_paper_planes()].

shoot

A proc for shooting a projectile at the target, it's just that simple, really.