mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
fixes monkey telekinesis (#85513)
## About The Pull Request fixes monkey ai hitting u from a distance with unloaded guns ## Why It's Good For The Game fixes monkey ai hitting u from a distance with unloaded guns ## Changelog 🆑 fix: fixes monkey ai hitting u from a distance with unloaded guns /🆑
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
var/can_shoot = gun?.can_shoot() || FALSE
|
||||
if(gun && controller.blackboard[BB_MONKEY_GUN_WORKED] && prob(95))
|
||||
// We attempt to attack even if we can't shoot so we get the effects of pulling the trigger
|
||||
gun.melee_attack_chain(living_pawn, real_target)
|
||||
gun.interact_with_atom(real_target, living_pawn)
|
||||
controller.set_blackboard_key(BB_MONKEY_GUN_WORKED, can_shoot ? TRUE : prob(80)) // Only 20% likely to notice it didn't work
|
||||
if(can_shoot)
|
||||
controller.set_blackboard_key(BB_MONKEY_GUN_NEURONS_ACTIVATED, TRUE)
|
||||
|
||||
Reference in New Issue
Block a user