mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Added FDARI's get actor height and radius patch.
SVN r3955 (trunk)
This commit is contained in:
parent
6c64f19a7e
commit
2ce1debe8d
3 changed files with 11 additions and 0 deletions
|
@ -2766,6 +2766,8 @@ enum
|
|||
APROP_Mass = 32,
|
||||
APROP_Accuracy = 33,
|
||||
APROP_Stamina = 34,
|
||||
APROP_Height = 35,
|
||||
APROP_Radius = 36,
|
||||
};
|
||||
|
||||
// These are needed for ACS's APROP_RenderStyle
|
||||
|
@ -3045,6 +3047,8 @@ int DLevelScript::GetActorProperty (int tid, int property)
|
|||
case APROP_Mass: return actor->Mass;
|
||||
case APROP_Accuracy: return actor->accuracy;
|
||||
case APROP_Stamina: return actor->stamina;
|
||||
case APROP_Height: return actor->height;
|
||||
case APROP_Radius: return actor->radius;
|
||||
|
||||
default: return 0;
|
||||
}
|
||||
|
@ -3085,6 +3089,8 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
|
|||
case APROP_Mass:
|
||||
case APROP_Accuracy:
|
||||
case APROP_Stamina:
|
||||
case APROP_Height:
|
||||
case APROP_Radius:
|
||||
return (GetActorProperty(tid, property) == value);
|
||||
|
||||
// Boolean values need to compare to a binary version of value
|
||||
|
|
|
@ -84,6 +84,9 @@ DEFINE_MEMBER_VARIABLE(Damage, AActor)
|
|||
DEFINE_MEMBER_VARIABLE(Score, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(accuracy, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(stamina, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(height, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(radius, AActor)
|
||||
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
|
|
@ -56,6 +56,8 @@ ACTOR Actor native //: Thinker
|
|||
native int score;
|
||||
native int accuracy;
|
||||
native int stamina;
|
||||
native fixed_t height;
|
||||
native fixed_t radius;
|
||||
|
||||
// Meh, MBF redundant functions. Only for DeHackEd support.
|
||||
action native A_Turn(float angle = 0);
|
||||
|
|
Loading…
Reference in a new issue