@@ -76,7 +76,8 @@ class SpecialAbilityUpdateModuleData : public UpdateModuleData
7676 Bool m_approachRequiresLOS;
7777 Bool m_needToFaceTarget;
7878 Bool m_persistenceRequiresRecharge;
79- Real m_facingAngleTolerance; // /< heading delta (radians) considered "facing target" for locomotors that can't turn in place
79+ Bool m_requiresMoveToTurn; // /< if set, orient by moving toward target (for locomotors that can't turn in place) instead of facing in place
80+ Real m_facingAngleTolerance; // /< heading delta (radians) considered "facing target" when m_requiresMoveToTurn
8081
8182 const ParticleSystemTemplate *m_disableFXParticleSystem;
8283 AudioEventRTS m_packSound;
@@ -114,6 +115,7 @@ class SpecialAbilityUpdateModuleData : public UpdateModuleData
114115 m_preTriggerUnstealthFrames = 0 ;
115116 m_needToFaceTarget = TRUE ;
116117 m_persistenceRequiresRecharge = FALSE ;
118+ m_requiresMoveToTurn = FALSE ;
117119 m_facingAngleTolerance = 0 .1f ; // ~5.7 degrees
118120 }
119121
@@ -161,6 +163,7 @@ class SpecialAbilityUpdateModuleData : public UpdateModuleData
161163 { " ApproachRequiresLOS" , INI ::parseBool, nullptr , offsetof ( SpecialAbilityUpdateModuleData, m_approachRequiresLOS ) },
162164 { " NeedToFaceTarget" , INI ::parseBool, nullptr , offsetof ( SpecialAbilityUpdateModuleData, m_needToFaceTarget ) },
163165 { " PersistenceRequiresRecharge" ,INI ::parseBool, nullptr , offsetof ( SpecialAbilityUpdateModuleData, m_persistenceRequiresRecharge ) },
166+ { " RequiresMoveToTurn" , INI ::parseBool, nullptr , offsetof ( SpecialAbilityUpdateModuleData, m_requiresMoveToTurn ) },
164167 { " FacingAngleTolerance" , INI ::parseAngleReal, nullptr , offsetof ( SpecialAbilityUpdateModuleData, m_facingAngleTolerance ) },
165168 { 0 , 0 , 0 , 0 }
166169 };
0 commit comments