Skip to content

Commit

Permalink
Fixed crouch handling bug.
Browse files Browse the repository at this point in the history
- Fixed accidental regression in KAI_HandleCrouching() from a previous commit.
  • Loading branch information
inkoalawetrust committed Nov 23, 2024
1 parent 6df98a4 commit f785c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ACS/KAILib.acs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Library "KAILib"
#Include "ZCommon.acs"

//Flag names fro CreateGroupACS().
//Flag names from CreateGroupACS().
#Define NPCGRP_EVERYONEDIED 1
#Define NPCGRP_NOMEMBEREVENT 2
#Define NPCGRP_NOICONS 4
Expand Down
3 changes: 3 additions & 0 deletions ZScript/Bases/Humanoid/Base.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ Class KAI_Humanoid : KAI_Creature Abstract

If (BlockingMobj && (BlockingMobj.Pos.Z < Pos.Z+Height && BlockingMobj.Pos.Z >= Pos.Z+CrouchHeight) ||
(SecHeight < Pos.Z+Height && SecHeight >= Pos.Z+CrouchHeight))
{
If (ChangeHeight) Height = CrouchHeight;
Return True;
}
}

Height = CurHeight;
Expand Down

0 comments on commit f785c55

Please sign in to comment.