invisibility ![code/modules/vehicles/mecha/combat/justice.dm 153](git.png)
Vars | |
charge | Recharge check. |
---|---|
energy_cost | Energy cost to become invisibile |
invisibility_timer | Varset for invisibility timer |
on | Is invisibility activated. |
stealth_attack_sound | Aoe attack sound. |
stealth_pre_attack_sound | Aoe pre attack sound. |
Procs | |
attack_in_aoe | |
bumb_on | |
bumbed_on | |
charge | |
check_charge_attack | Check if mech use charge attack and deactivate it when we activate invisibility. |
end_stealth | |
invisibility_off | Called when invisibility deactivated. |
invisibility_on | Called when invisibility activated. |
make_visible | |
on_toggle_safety | update button icon when toggle safety and turns invisibility off. |
stealth_attack_aoe | Proc makes an AOE attack after 1 SECOND. Called by the mech pilot when he is in stealth mode and wants to attack. During this, mech cannot move. |
take_damage |
Var Details
charge ![code/modules/vehicles/mecha/combat/justice.dm 159](git.png)
Recharge check.
energy_cost ![code/modules/vehicles/mecha/combat/justice.dm 163](git.png)
Energy cost to become invisibile
invisibility_timer ![code/modules/vehicles/mecha/combat/justice.dm 161](git.png)
Varset for invisibility timer
on ![code/modules/vehicles/mecha/combat/justice.dm 157](git.png)
Is invisibility activated.
stealth_attack_sound ![code/modules/vehicles/mecha/combat/justice.dm 167](git.png)
Aoe attack sound.
stealth_pre_attack_sound ![code/modules/vehicles/mecha/combat/justice.dm 165](git.png)
Aoe pre attack sound.
Proc Details
attack_in_aoe
attack_in_aoe
Brings mech out of invisibility. Deal everyone in range 3x3 35 damage and 25 chanse to cut off limb. Arguments:
- pilot - occupant inside mech.
bumb_on
bumb_on
Called when mech bumb on somthing. If is living somthing shutdown mech invisibility.
bumbed_on
bumbed_on
Called when somthing bumbed on mech. If is living somthing shutdown mech invisibility.
charge
charge
Recharge invisibility action after 5 SECONDS.
check_charge_attack
Check if mech use charge attack and deactivate it when we activate invisibility.
end_stealth
end_stealth
Called when mech runs out of invisibility time.
invisibility_off
Called when invisibility deactivated.
invisibility_on
Called when invisibility activated.
make_visible
make_visible
Called when somthing force invisibility shutdown.
on_toggle_safety
update button icon when toggle safety and turns invisibility off.
stealth_attack_aoe
Proc makes an AOE attack after 1 SECOND. Called by the mech pilot when he is in stealth mode and wants to attack. During this, mech cannot move.
take_damage
take_damage
Called when mech take damage. Shutdown mech invisibility.