facehugger

Facehuggers
They work by being activated using timers to trigger leap_at_nearest_target() Going inactive and active is handeled by go_active() and go_idle() Lifetime is handled by a timer on check_lifecycle() For the love of god do not use process() and rng for this kind of shit it makes it unreliable and buggy as fuck
Vars | |
about_to_jump | When TRUE hugger is about to jump |
---|---|
activate_time | Time to become active again |
activetimer | The timer to go active |
attached | Whether we're attached to a host |
combat_hugger | Is this hugger intended for combat? |
hivenumber | What hive this hugger belongs to |
impact_time | Time to become active after impacting on a direct thrown hit |
jump_cooldown | Time to recover after jumping |
jumptimer | The timer tracking when we next jump |
leaping | Is actually attacking someone? |
lifecycle | How long the hugger will survive outside of the egg, or carrier. |
lifetimer | The timer tracking when we die |
proximity_time | Time to become active after moving into the facehugger's space. |
source | The xeno that spawned/threw/dropped the hugger. Used for anti-shuffle |
stasis | "Freezes" the hugger in for example, eggs |
stat | Whether the hugger is dead, active or inactive |
sterile | Whether this hugger can infect things |
Procs | |
apply_danger_overlay | Applies an alert overlay when the hugger is about to jump |
clear_hugger_source | Clears the source of our facehugger for the purpose of anti-shuffle mechanics |
combat_hugger_check_target | See if our target is valid to be attacked |
facehugger_register_source | Registers the source of our facehugger for the purpose of anti-shuffle mechanics |
kill_hugger | Kills the hugger, should be self explanatory |
melt_away | Deletes the dead hugger, usually after a period of being dead |
pre_leap | Called before we leap |
remove_danger_overlay | Remove the hugger's alert overlay |
reset_attach_status | Make it fall off the person so we can update their icons. Won't update if they're in containers though |
reset_life_timer | Resets the life timer for the facehugger |
try_attach | Try to attach to the mask slot |
try_impregnate | Try to put an embryo into the target mob |
Var Details
about_to_jump

When TRUE hugger is about to jump
activate_time

Time to become active again
activetimer

The timer to go active
attached

Whether we're attached to a host
combat_hugger

Is this hugger intended for combat?
hivenumber

What hive this hugger belongs to
impact_time

Time to become active after impacting on a direct thrown hit
jump_cooldown

Time to recover after jumping
jumptimer

The timer tracking when we next jump
leaping

Is actually attacking someone?
lifecycle

How long the hugger will survive outside of the egg, or carrier.
lifetimer

The timer tracking when we die
proximity_time

Time to become active after moving into the facehugger's space.
source

The xeno that spawned/threw/dropped the hugger. Used for anti-shuffle
stasis

"Freezes" the hugger in for example, eggs
stat

Whether the hugger is dead, active or inactive
sterile

Whether this hugger can infect things
Proc Details
apply_danger_overlay
Applies an alert overlay when the hugger is about to jump
clear_hugger_source
Clears the source of our facehugger for the purpose of anti-shuffle mechanics
combat_hugger_check_target
See if our target is valid to be attacked
facehugger_register_source
Registers the source of our facehugger for the purpose of anti-shuffle mechanics
kill_hugger
Kills the hugger, should be self explanatory
melt_away
Deletes the dead hugger, usually after a period of being dead
pre_leap
Called before we leap
remove_danger_overlay
Remove the hugger's alert overlay
reset_attach_status
Make it fall off the person so we can update their icons. Won't update if they're in containers though
reset_life_timer
Resets the life timer for the facehugger
try_attach
Try to attach to the mask slot
try_impregnate
Try to put an embryo into the target mob