byond - Modules - TypesVar Details - Proc Details

hitbox

HITBOX The core of multitile. Acts as a relay for damage and stops people from walking onto the multitle sprite has changed bounds and as thus must always be forcemoved so it doesnt break everything I would use pixel movement but the maptick caused by it is way too high and a fake tile based movement might work? but I want this to at least pretend to be generic Thus we just use this relay. it's an obj so we can make sure all the damage procs that work on root also work on the hitbox

Vars

rootThe "parent" that this hitbox is attached to and to whom it will relay damage
tank_desantspeople riding on this hitbox that we want to move with us
vehicle_lengthLength of the vehicle. Assumed to be longer than it is wide
vehicle_widthWidth of the vehicle

Procs

add_desantAdds a new desant
can_cross_hitboxsignal handler for handling PASS_WALKOVER
get_projectile_locReturns the turf where primary weapon projectiles should source from
on_attempt_drivecalled when the tank is off movement cooldown and someone tries to move it
on_desant_delcleanup riders on deletion
on_exitedsignal handler when we leave a turf under the hitbox
on_jump_landedsignal handler when someone jumping lands on us
on_stop_throwsignal handler when something thrown lands on us
owner_turnedSignal handler to spin the desants as well when the tank turns
remove_desantRemoves a desant
root_deletewhen root deletes is the only time we want to be deleting
root_movewhen the owner moves, let's move with them!

Var Details

root

The "parent" that this hitbox is attached to and to whom it will relay damage

tank_desants

people riding on this hitbox that we want to move with us

vehicle_length

Length of the vehicle. Assumed to be longer than it is wide

vehicle_width

Width of the vehicle

Proc Details

add_desant

Adds a new desant

can_cross_hitbox

signal handler for handling PASS_WALKOVER

get_projectile_loc

Returns the turf where primary weapon projectiles should source from

on_attempt_drive

called when the tank is off movement cooldown and someone tries to move it

on_desant_del

cleanup riders on deletion

on_exited

signal handler when we leave a turf under the hitbox

on_jump_landed

signal handler when someone jumping lands on us

on_stop_throw

signal handler when something thrown lands on us

owner_turned

Signal handler to spin the desants as well when the tank turns

remove_desant

Removes a desant

root_delete

when root deletes is the only time we want to be deleting

root_move

when the owner moves, let's move with them!