mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- added Xaser's reactiontime for ACS and DECORATE expression patch.
SVN r4222 (trunk)
This commit is contained in:
parent
cb64014494
commit
9f71c7cb4e
3 changed files with 9 additions and 0 deletions
|
@ -2847,6 +2847,7 @@ enum
|
|||
APROP_Stamina = 34,
|
||||
APROP_Height = 35,
|
||||
APROP_Radius = 36,
|
||||
APROP_ReactionTime = 37,
|
||||
};
|
||||
|
||||
// These are needed for ACS's APROP_RenderStyle
|
||||
|
@ -3058,6 +3059,10 @@ void DLevelScript::DoSetActorProperty (AActor *actor, int property, int value)
|
|||
actor->stamina = value;
|
||||
break;
|
||||
|
||||
case APROP_ReactionTime:
|
||||
actor->reactiontime = value;
|
||||
break;
|
||||
|
||||
default:
|
||||
// do nothing.
|
||||
break;
|
||||
|
@ -3128,6 +3133,7 @@ int DLevelScript::GetActorProperty (int tid, int property)
|
|||
case APROP_Stamina: return actor->stamina;
|
||||
case APROP_Height: return actor->height;
|
||||
case APROP_Radius: return actor->radius;
|
||||
case APROP_ReactionTime:return actor->reactiontime;
|
||||
|
||||
default: return 0;
|
||||
}
|
||||
|
@ -3170,6 +3176,7 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
|
|||
case APROP_Stamina:
|
||||
case APROP_Height:
|
||||
case APROP_Radius:
|
||||
case APROP_ReactionTime:
|
||||
return (GetActorProperty(tid, property) == value);
|
||||
|
||||
// Boolean values need to compare to a binary version of value
|
||||
|
|
|
@ -86,6 +86,7 @@ DEFINE_MEMBER_VARIABLE(accuracy, AActor)
|
|||
DEFINE_MEMBER_VARIABLE(stamina, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(height, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(radius, AActor)
|
||||
DEFINE_MEMBER_VARIABLE(reactiontime, AActor)
|
||||
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
@ -58,6 +58,7 @@ ACTOR Actor native //: Thinker
|
|||
native int stamina;
|
||||
native fixed_t height;
|
||||
native fixed_t radius;
|
||||
native int reactiontime;
|
||||
|
||||
// Meh, MBF redundant functions. Only for DeHackEd support.
|
||||
action native A_Turn(float angle = 0);
|
||||
|
|
Loading…
Reference in a new issue