Skip to content

H7CombatMapGate

Class in MMH7Game · MMH7Game.H7CombatMapGate · native, perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7CombatObstacleObject › H7CombatObstacleFracturedObject › H7CombatMapGate

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

Properties

NameTypeNotes
mCurrentGateFXParticleSystemComponentprotected
mDamagedGateFXParticleSystemprotected
mDestroyedGateFXParticleSystemprotected
mFracturedStaticMeshArchetypeLeftH7FracturedMeshActorprotected
mFracturedStaticMeshArchetypeRightH7FracturedMeshActorprotected
mFracturedStaticMeshLeftH7FracturedMeshActorprotected
mFracturedStaticMeshRightH7FracturedMeshActorprotected
mGateCloseAkEventprotected
mGateFXParticleSystemprotected
mGateOpenAkEventprotected
mHitsTakenint
mIsClosingboolprotected
mIsOpeningboolprotected
mLeftGateOffsetfloatprotected
mLerpTimerfloatprotected
mRightGateOffsetfloatprotected
mTargetRotLeftRotatorprotected
mTargetRotRightRotatorprotected

Functions

NameDeclaration
ApplyDamagesimulated function ApplyDamage(H7CombatResult Result, int resultIdx, bool isForecast, optional bool isRetaliation = false, optional bool raiseEvent = true)
CheckDeadStacksfunction CheckDeadStacks(optional bool opening)
Destroyedsimulated event Destroyed()
GetFracturedStaticMeshLeftfunction H7FracturedMeshActor GetFracturedStaticMeshLeft()
GetFracturedStaticMeshRightfunction H7FracturedMeshActor GetFracturedStaticMeshRight()
GetProjectileImpactPossimulated function Vector GetProjectileImpactPos()
ModifyHitpointssimulated function ModifyHitpoints(int modval)
PlaceObstaclesimulated function H7CombatObstacleObject PlaceObstacle(H7SiegeTownData siegeTownData, Vector SpawnLocation, optional Actor NewOwner)
PostBeginPlaysimulated event PostBeginPlay()
TryCloseGateprotected simulated function TryCloseGate()
TryOpenGatesimulated function TryOpenGate()

States

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

StateFunctions
ClosedGateBeginState, CloseGate, TryOpenGate
DestroyedGateBeginState
OpenedGateBeginState, LerpGateClose, LerpGateOpen, OpenGate, Tick, TryCloseGate

Default values

mImpulseStrength=450.0000000
mImpulseRadiusNormal=320.0000000
mImpulseRadiusDestroyed=440.0000000

Inherited

FromMembers
H7CombatObstacleFracturedObjectProperties: mFallingPiecesFX, mFallingPiecesFXArchetype, mFracturedStaticMeshArchetype, mImpulseRadiusDestroyed, mImpulseRadiusNormal, mImpulseStrength, mLastImpactPos, mSpawnedFracturedMeshActor
Functions: ApplyDamage, GetHeight, GetHeightPos, GetProjectileImpactPos, Init, RemoveTopPieces, SetVisibility, ToggleVisibility
H7CombatObstacleObjectProperties: mAbilities, mAbilityManager, mApplyCover, mBaseSizeX, mBaseSizeY, mBuffManager, mCorners, mCurrentHitpoints, mCurrentPath, mCurrentTargetCell, mDestroySound, mDestructible, mEffectManager, mEventManager, mGridPos, mHitpoints, mHitSound, Mid, mIdleSound, mIsHovering, mIsSiegeMachineTarget, mKillActorWhenDestroyed, mMaximumDamage, mMinimumDamage, mMoveSound, mMoveTimer, mObstacleName, mObstacleNameInst, mOnlySpawnIfMoats, mPlayer, mPreviewBox, mRemoveWhenDestroyed, mShowPreviewBox, mType
Functions: ApplyDamage, DataChanged, DehighlightObstacle, Destroyed, EndMoving, GetAbilityManager, GetActionID, GetAttack, GetBuffManager, GetCells, GetCombatArmy, GetCorners, GetEffectManager, GetEntityType, GetEventManager, GetFloatingTextLocation, GetGridPos, GetGridPosition, GetHeight, GetHeightPos, GetHitPoints, GetID, GetLevel, GetLocation, GetLuckDestiny, GetMagic, GetMaxHitpoints, GetMaximumDamage, GetMeshCenter, GetMeshComponent, GetMinimumDamage, GetMoveSound, GetName, GetObstacleBaseSizeX, GetObstacleBaseSizeY, GetObstacleType, GetOriginal, GetPlayer, GetPreparedAbility, GetProjectileImpactPos, GetResistanceModifierFor, GetSchool, GetStackSize, GUIAddListener, GUIWriteInto, HighlightObstacle, Init, IsApplyCover, IsDefaultAttackActive, IsDestructible, isHovering, IsMoving, IsSiegeMachineTarget, KillObstacle, LerpMove, LocalizeName, ModifyHitpoints, PlaceObstacle, PostBeginPlay, PrepareAbility, SetAbilities, SetDestructible, SetGridPos, SetIsHovering, SetMaximumDamage, SetMinimumDamage, SetPath, SetPlayer, Tick, TriggerEvents, UsePreparedAbility
H7EditorMapObjectProperties: AnimNodeSeqComp, mDynamicLightEnv, mFX, mHideMeshAndFX, mMesh, mShouldOutlineSkelMesh, mSnapToGroundType, mSnapType, mTerrainOffset
Functions: GetFX, GetMesh, GetMeshComp, SetMesh, SetShouldHideMeshAndFX, SetVisibility, ToggleVisibility
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions