mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
Added APROP_WaterDepth.
This commit is contained in:
parent
aed72f58f3
commit
6f4a29b5e5
1 changed files with 52 additions and 49 deletions
|
@ -4047,6 +4047,7 @@ enum
|
|||
APROP_DamageType = 46,
|
||||
APROP_SoundClass = 47,
|
||||
APROP_FriendlySeeBlocks = 48,
|
||||
APROP_WaterDepth = 49,
|
||||
};
|
||||
|
||||
// These are needed for ACS's APROP_RenderStyle
|
||||
|
@ -4422,6 +4423,7 @@ int DLevelScript::GetActorProperty (int tid, int property)
|
|||
case APROP_DamageType: return GlobalACSStrings.AddString(actor->DamageType.GetChars());
|
||||
case APROP_SoundClass: return GlobalACSStrings.AddString(S_GetSoundClass(actor));
|
||||
case APROP_FriendlySeeBlocks: return actor->friendlyseeblocks;
|
||||
case APROP_WaterDepth: return DoubleToACS(actor->waterdepth);
|
||||
|
||||
default: return 0;
|
||||
}
|
||||
|
@ -4472,6 +4474,7 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
|
|||
case APROP_MaxDropOffHeight:
|
||||
case APROP_StencilColor:
|
||||
case APROP_FriendlySeeBlocks:
|
||||
case APROP_WaterDepth:
|
||||
return (GetActorProperty(tid, property) == value);
|
||||
|
||||
// Boolean values need to compare to a binary version of value
|
||||
|
|
Loading…
Reference in a new issue