From 502c9fef5c1f5b70e11dbdd0ed7361ea00ee7a8c Mon Sep 17 00:00:00 2001 From: inkoalawetrust <56005600+inkoalawetrust@users.noreply.github.com> Date: Sat, 24 Sep 2022 21:12:36 +0300 Subject: [PATCH] Added APROP_FriendlySeeBlocks to Set/GetActorProperty --- src/playsim/p_acs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/playsim/p_acs.cpp b/src/playsim/p_acs.cpp index c50e0d2a7..917a00e98 100644 --- a/src/playsim/p_acs.cpp +++ b/src/playsim/p_acs.cpp @@ -4045,6 +4045,7 @@ enum APROP_MaxDropOffHeight= 45, APROP_DamageType = 46, APROP_SoundClass = 47, + APROP_FriendlySeeBlocks= 48, }; // These are needed for ACS's APROP_RenderStyle @@ -4317,6 +4318,9 @@ void DLevelScript::DoSetActorProperty (AActor *actor, int property, int value) } } break; + case APROP_FriendlySeeBlocks: + actor->friendlyseeblocks = value; + break; default: // do nothing. @@ -4416,6 +4420,7 @@ int DLevelScript::GetActorProperty (int tid, int property) case APROP_MaxDropOffHeight: return DoubleToACS(actor->MaxDropOffHeight); case APROP_DamageType: return GlobalACSStrings.AddString(actor->DamageType.GetChars()); case APROP_SoundClass: return GlobalACSStrings.AddString(S_GetSoundClass(actor)); + case APROP_FriendlySeeBlocks: return actor->friendlyseeblocks; default: return 0; } @@ -4465,6 +4470,7 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value) case APROP_MaxStepHeight: case APROP_MaxDropOffHeight: case APROP_StencilColor: + case APROP_FriendlySeeBlocks: return (GetActorProperty(tid, property) == value); // Boolean values need to compare to a binary version of value