mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Added APROP_FriendlySeeBlocks to Set/GetActorProperty
This commit is contained in:
parent
662027f429
commit
502c9fef5c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue