3 protected static const string STANCE_OUT_PORT =
"StanceOut";
4 protected static const string STANCE_IN_PORT =
"StanceIn";
6 protected SCR_AIUtilityComponent m_Utility;
15 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
18 GetVariableIn(STANCE_IN_PORT, stanceIn);
21 if (m_eStanceLimit0 < m_eStanceLimit1)
22 stanceOut = Math.ClampInt(stanceIn, m_eStanceLimit0, m_eStanceLimit1);
24 stanceOut = Math.ClampInt(stanceIn, m_eStanceLimit1, m_eStanceLimit0);
25 SetVariableOut(STANCE_OUT_PORT, stanceOut);
27 return ENodeResult.SUCCESS;
31 override bool VisibleInPalette() {
return true; }
34 protected static ref TStringArray s_aVarsOut = { STANCE_OUT_PORT };
35 override TStringArray GetVariablesOut() {
return s_aVarsOut; }
37 protected static ref TStringArray s_aVarsIn = { STANCE_IN_PORT };
38 override TStringArray GetVariablesIn() {
return s_aVarsIn; }
41 override string GetNodeMiddleText()
43 string s0 =
string.Format(
"Stance Limit 0: %1\n",
typename.EnumToString(
ECharacterStance, m_eStanceLimit0));
44 string s1 =
string.Format(
"Stance Limit 1: %1\n",
typename.EnumToString(
ECharacterStance, m_eStanceLimit1));
49 override string GetOnHoverDescription() {
return "Limits stance value within a range"; };