mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-31 08:49:00 +01:00
* Fixes AI behavior with breaking cuffs and resisting aggressive grabs (#80328) ## About The Pull Request Makes it so that ai's recognize they're in a do_after after resisting, preventing them from processing and interrupting the do_after while they're in a condition that necessitates it. If it gets interrupted then they'll process as normal, or if they finish they'll be free. ## Why It's Good For The Game Monkeys can now resist things that they should've been, such as aggressive grabs or cuffs, instead of having their ai completely freeze when they're cuffed. ## Changelog 🆑 fix: ai can now tell if it is in a do_after for resisting and will not interrupt it. monkeys also now don't freeze up when aggressively grabbed and will resist out of those and cuffs. /🆑 * Fixes AI behavior with breaking cuffs and resisting aggressive grabs --------- Co-authored-by: Diamond_ <novadiamonddigger@gmail.com>
19 lines
977 B
Plaintext
19 lines
977 B
Plaintext
// Monkey AI controller blackboard keys
|
|
|
|
#define BB_MONKEY_AGGRESSIVE "BB_monkey_aggressive"
|
|
#define BB_MONKEY_GUN_NEURONS_ACTIVATED "BB_monkey_gun_aware"
|
|
#define BB_MONKEY_GUN_WORKED "BB_monkey_gun_worked"
|
|
#define BB_MONKEY_BEST_FORCE_FOUND "BB_monkey_bestforcefound"
|
|
#define BB_MONKEY_ENEMIES "BB_monkey_enemies"
|
|
#define BB_MONKEY_BLACKLISTITEMS "BB_monkey_blacklistitems"
|
|
#define BB_MONKEY_PICKUPTARGET "BB_monkey_pickuptarget"
|
|
#define BB_MONKEY_PICKPOCKETING "BB_monkey_pickpocketing"
|
|
#define BB_MONKEY_CURRENT_ATTACK_TARGET "BB_monkey_current_attack_target"
|
|
#define BB_MONKEY_CURRENT_PRESS_TARGET "BB_monkey_current_press_target"
|
|
#define BB_MONKEY_CURRENT_GIVE_TARGET "BB_monkey_current_give_target"
|
|
#define BB_MONKEY_TARGET_DISPOSAL "BB_monkey_target_disposal"
|
|
#define BB_MONKEY_TARGET_MONKEYS "BB_monkey_target_monkeys"
|
|
#define BB_MONKEY_DISPOSING "BB_monkey_disposing"
|
|
#define BB_MONKEY_RECRUIT_COOLDOWN "BB_monkey_recruit_cooldown"
|
|
#define BB_RESISTING "BB_resisting"
|