Skip to content

Commit

Permalink
Added APROP_FriendlySeeBlocks to Set/GetActorProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
inkoalawetrust authored and madame-rachelle committed Sep 24, 2022
1 parent 662027f commit 502c9fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/playsim/p_acs.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -4317,6 +4318,9 @@ void DLevelScript::DoSetActorProperty (AActor *actor, int property, int value)
}
}
break;
case APROP_FriendlySeeBlocks:
actor->friendlyseeblocks = value;
break;

default:
// do nothing.
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 502c9fe

Please sign in to comment.