Skip to content

Commit

Permalink
[MIRROR] Adds a TRAIT_NO_TRANSFORM check to AI movement. [MDB IGNORE] (
Browse files Browse the repository at this point in the history
…#2914)

* Adds a TRAIT_NO_TRANSFORM check to AI movement. (#83621)

## About The Pull Request
Checks for `TRAIT_NO_TRANSFORM` in `allowed_to_move`. Will stop mobs
from moving when they should not.

## Why It's Good For The Game
Fixes #79870
Fixes AI movement not respecting TRAIT_NO_TRANSFORM.

## Changelog
:cl: Goat
fix: mobs no longer move during cutscenes
/:cl:

* Adds a TRAIT_NO_TRANSFORM check to AI movement.

---------

Co-authored-by: Goat <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Jun 8, 2024
1 parent 7acf9e9 commit fe62a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/datums/ai/movement/_ai_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
if(!(pawn_mob.mobility_flags & MOBILITY_MOVE))
can_move = FALSE

if(HAS_TRAIT(pawn, TRAIT_NO_TRANSFORM))
can_move = FALSE

return can_move

///Anything to do before moving; any checks if the pawn should be able to move should be placed in allowed_to_move() and called by this proc
Expand Down

0 comments on commit fe62a6e

Please sign in to comment.