closet ![code/game/objects/structures/crates_lockers/closets.dm 1](git.png)
Vars | |
door_anim_angle | The maximum angle the door will be drawn at |
---|---|
door_anim_squish | Vertical squish of the door |
door_anim_time | Amount of time it takes for the door animation to play |
door_hinge_x | X position of the closet door hinge |
door_obj | The overlay for the closet's door |
is_animating_door | Whether or not this door is being animated |
x_shake_pixel_shift | How many pixels the closet can shift on the x axis when shaking |
y_shake_pixel_shift | How many pixels the closet can shift on the y axes when shaking |
Procs | |
after_close | Proc to override for effects after closing a door |
after_open | Proc to override for effects after opening a door |
animate_door | Animates the closet door opening and closing |
check_if_shake | Check if someone is still resisting inside, and choose to either keep shaking or stop shaking the closet |
end_door_animation | Ends the door animation and removes the animated overlay |
get_door_transform | Calculates the matrix to be applied to the animated door overlay |
handle_lock_addition | cit specific |
Var Details
door_anim_angle ![code/game/objects/structures/crates_lockers/closets.dm 18](git.png)
The maximum angle the door will be drawn at
door_anim_squish ![code/game/objects/structures/crates_lockers/closets.dm 16](git.png)
Vertical squish of the door
door_anim_time ![code/game/objects/structures/crates_lockers/closets.dm 22](git.png)
Amount of time it takes for the door animation to play
door_hinge_x ![code/game/objects/structures/crates_lockers/closets.dm 20](git.png)
X position of the closet door hinge
door_obj ![code/game/objects/structures/crates_lockers/closets.dm 12](git.png)
The overlay for the closet's door
is_animating_door ![code/game/objects/structures/crates_lockers/closets.dm 14](git.png)
Whether or not this door is being animated
x_shake_pixel_shift ![code/game/objects/structures/crates_lockers/closets.dm 35](git.png)
How many pixels the closet can shift on the x axis when shaking
y_shake_pixel_shift ![code/game/objects/structures/crates_lockers/closets.dm 37](git.png)
How many pixels the closet can shift on the y axes when shaking
Proc Details
after_close
Proc to override for effects after closing a door
after_open
Proc to override for effects after opening a door
animate_door
Animates the closet door opening and closing
check_if_shake
Check if someone is still resisting inside, and choose to either keep shaking or stop shaking the closet
end_door_animation
Ends the door animation and removes the animated overlay
get_door_transform
Calculates the matrix to be applied to the animated door overlay
handle_lock_addition
cit specific