Added APROP_FriendlySeeBlocks to Set/GetActorProperty

This commit is contained in:
inkoalawetrust 2022-09-24 21:12:36 +03:00 committed by Rachael Alexanderson
parent 662027f429
commit 502c9fef5c

View file

@ -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