Skip to content

H7CreatureStackFlyer

Class in MMH7Game · MMH7Game.H7CreatureStackFlyer

Object › Actor › H7CreatureStackBaseMover › H7CreatureStackFlyer

Using it from Lua
h7.find_all("H7CreatureStackFlyer")            -- live instances
h7.find_class("MMH7Game.H7CreatureStackFlyer")   -- the class
h7.hook("MMH7Game.H7CreatureStackFlyer.GetEndFlyDuration", fn)

Constants

NameValue
FLY_HEIGHT_OVER_OBSTACLE100.0f
HEIGHT_TO_TIME_MULT0.002f
MIN_FLY_HEIGHT50.0f

Properties

NameTypeNotes
mCurrentMoveTimefloatprotected
mEndFlyDurationfloatprotected
mFlightSpeedfloatprotected
mFlyCurvearray<FH7FlyTimePoint>protected
mFlyInitialLocVectorprotected
mFlyTargetLocVectorprotected
mLandingAnimStartedboolprotected
mOldTurnFlightboolprotected
mStartFlyDurationfloatprotected
mTotalMoveTimefloatprotected

Functions

NameDeclaration
GetEndFlyDurationfunction float GetEndFlyDuration()
GetStartFlyDurationfunction float GetStartFlyDuration()
H7FlyTimePointSortdelegate int H7FlyTimePointSort(FH7FlyTimePoint A, FH7FlyTimePoint B)
Initializefunction Initialize(H7Unit Stack)
IsMovingfunction bool IsMoving()
SetEndFlyDurationfunction SetEndFlyDuration(float val)
SetStartFlyDurationfunction SetStartFlyDuration(float val)
StartElevatingfunction StartElevating()
UpdateSecPerFieldprotected function UpdateSecPerField()

States

State code replaces the class's functions while the object is in that state. Hook a state's version as MMH7Game.H7CreatureStackFlyer.<State>.<Function>.

StateFunctions
Elevating extends FlyMovementFieldArrive, UpdateMovement
FlyMovementBeginState, UpdateMovement, UpdateRotation
IdleAttackStack, CalculateFlyCurve, GetHeightDecreaseModifier, GetHeightIncreaseModifier, GetMaxPathHeight, MoveStack
Landing extends FlyMovementFieldArrive, UpdateMovement
ignores BeginState, UpdateRotation
Moving extends FlyMovementFieldArrive, UpdateMovement
TurnToEnemyBeginState, FieldArrive, UpdateMovement
WaitingElevating

Default values

mSecPerField=0.4000000

Inherited

FromMembers
H7CreatureStackBaseMoverProperties: mCurrentCell, mCurveMaxStepsAdv, mCurveMaxStepsCombat, mDestinationCell, mLerpTargetLocation, mLerpTargetRotation, mLerpTimer, mLerpTimerRotation, mLerpToLocation, mLerpToRotation, mMoveTime, mMovingRepresentation, mMovingStack, MOVEMENT_DOTS_PER_CELL, mPassedUnits, mPath, mPlayerController, mSecPerField, mStartPos, mStartRot, mTarget
Functions: AddEnemyPositionToPath, AttackStack, ClearPath, DotIndexToCellIndex, GetCellLocation, GetCellOfTarget, GetOptimalTargetRotation, GetSecondsPerField, GetSmoothAdventurePath, GetSmoothCombatPath, GetSmoothPath, GetTargetRotation, Initialize, IsMoving, LerpToLocation, LerpToRotation, MoveStack, OnAttackStackFinishedFunc, OpenGateOnTargetPos, RestorePassedUnits, RotateStack, SetLerpToLocation, SetLerpToRotation, UpdateMovement, UpdateRotation
Actor156 properties, 262 functions
Object13 properties, 308 functions