- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue