Skip to content

H7CombatPlayerController

Class in MMH7Game · MMH7Game.H7CombatPlayerController · native, config

Object › Actor › Controller › PlayerController › GamePlayerController › SaveGameStatePlayerController › H7PlayerController › H7CombatPlayerController

Subclasses: H7AdventurePlayerController

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

Constants

NameValue
INSTANT_COMMAND_MAX_INT_PARAMS8
MP_MAX_ARMY_UNITS15
MP_MAX_EXT_PATH_LENGTH100
MP_MAX_OFF_GRID_DEPLOYABLES7
MP_MAX_PATH_LENGTH25
MP_MAX_TARGET_UNITS16
NORMAL_COMMAND_MAX_INT_PARAMS15

Properties

NameTypeNotes
mCombatControllerH7CombatControllerprotected
mCombatMapGridControllerH7CombatMapGridControllerprotected
mIsUnitActionBlockedForMouseReleaseboolprotected
mLastTimeSynchedUpArmiesfloatprotected
mLeftMouseDownboolprotected
mLeftMouseDownMouseCoordinatesVector2Dprotected
mLeftMouseDownTimerfloatprotected
mLeftMouseDownUnitH7Unitprotected
mRotationSelectLockInDoneboolprotected

Functions

NameDeclaration
ArmyVictoryCameraActionexec function ArmyVictoryCameraAction()
CancelSpellOnMousefunction CancelSpellOnMouse()
CastInstaKillSpellexec function CastInstaKillSpell()
CheckOutOfSynchfunction CheckOutOfSynch(int ToPlayer)
ClientCheckOutOfSynchsimulated reliable client function ClientCheckOutOfSynch(int unitActionCounter, int SynchRNG, int IDCounter, int UnitsCount, int ResCount, bool IsCombat, int PlayerNumber)
ClientCommandCancelledsimulated reliable client function ClientCommandCancelled(H7StructsAndEnums.ESimTurnCommandCancelledReason Reason, optional MPCommand Command)
ClientDamageApplysimulated reliable client function ClientDamageApply(int CreatureStackId, int StackSize, int TopCreatureHealth)
ClientGameWentOOSMessagesimulated reliable client function ClientGameWentOOSMessage(string Message, int uac, bool displayToPlayers)
ClientHostLeftGamesimulated reliable client function ClientHostLeftGame()
ClientInstantCommandsimulated reliable client function ClientInstantCommand(H7StructsAndEnums.EInstantCommandType instantCommandType, int unitActionCounter, string stringParam, int CurrentPlayer, int intParams[8], bool IsCombat)
ClientPlayerDisconnectedsimulated reliable client function ClientPlayerDisconnected(int disconnectedPlayerNum)
ClientPlayUnitCommandsimulated reliable client function ClientPlayUnitCommand(int Parameters[15], bool IsCombat)
ClientPlayUnitCommandConvertedPathfunction ClientPlayUnitCommandConvertedPath(int Parameters[15], bool IsCombat, optional array<H7BaseCell> convertedPath)
ClientPlayUnitCommandWithExtPathsimulated reliable client function ClientPlayUnitCommandWithExtPath(int Parameters[15], int Path[100], bool IsCombat)
ClientPlayUnitCommandWithPathsimulated reliable client function ClientPlayUnitCommandWithPath(int Parameters[15], int Path[25], bool IsCombat)
ClientStartSynchUpsimulated reliable client function ClientStartSynchUp(H7StructsAndEnums.EOOSType oosType)
ClientSynchUpsimulated reliable client function ClientSynchUp(int unitActionCounter, int RNGCounter, int IDCounter, bool IsCombat)
ClientSynchUpArmysimulated reliable client function ClientSynchUpArmy(int unitActionCounter, int heroId, string stackIDStrings, int stackCounts[7], bool IsCombat)
ClientSynchUpCombatUnitsimulated reliable client function ClientSynchUpCombatUnit(int unitActionCounter, int StackId, int StackCount, int TopCreatureHealth)
ClientTacticsPhaseFinishedsimulated reliable client function ClientTacticsPhaseFinished(bool IsDefender, MPUnitsPos unitsPos[15], int offGridDeployables)
ContinueContextOrChatexec function ContinueContextOrChat()
DoDefendexec function DoDefend()
DoWaitexec function DoWait()
FadeFromBlackexec function FadeFromBlack(int Duration)
FadeFromWhiteexec function FadeFromWhite(int Duration)
FadeToBlackexec function FadeToBlack(int Duration)
FadeToWhiteexec function FadeToWhite(int Duration)
GetCombatControllerevent H7CombatController GetCombatController()
GetCombatMapGridControllerfunction H7CombatMapGridController GetCombatMapGridController()
GetCombatPlayerControllerstatic function H7CombatPlayerController GetCombatPlayerController()
GetICUACprotected function int GetICUAC()
GetLeftMouseDownTimerfunction float GetLeftMouseDownTimer()
GetPlayerControllerByNumberfunction H7CombatPlayerController GetPlayerControllerByNumber(int Number)
HostIsReadyreliable server function HostIsReady()
IntroduceHeroexec function IntroduceHero()
IsInRotationSelectModefunction bool IsInRotationSelectMode()
IsLeftMouseDownfunction bool IsLeftMouseDown()
IsSimTurnAIPlayingfunction bool IsSimTurnAIPlaying()
IsSimTurnCommandModefunction bool IsSimTurnCommandMode()
LearnAllSpellsexec function LearnAllSpells()
LeftMouseDownexec function LeftMouseDown()
MousePastRotationSelectionThresholdfunction bool MousePastRotationSelectionThreshold()
NotifyHostMigrationStartedsimulated function NotifyHostMigrationStarted()
OpenSpellBookexec function OpenSpellBook()
PlayerTickevent PlayerTick(float DeltaTime)
PresentArmyexec function PresentArmy()
ReleaseLeftMouseexec function ReleaseLeftMouse()
ReleaseRightMouseexec function ReleaseRightMouse()
RightMouseDownexec function RightMouseDown()
SelectHeroDefaultAttackexec function SelectHeroDefaultAttack()
SendCombatSynchUpDatafunction SendCombatSynchUpData(H7CombatArmy Army, int ToPlayer)
SendDamageApplyfunction SendDamageApply(int CreatureStackId, int StackSize, int TopCreatureHealth, int ToPlayer)
SendGameWentOOSfunction SendGameWentOOS(H7StructsAndEnums.EOOSType oosType, int uac, int ToPlayer, int synchUpPlayer)
SendInitStartCombatsimulated reliable client function SendInitStartCombat()
SendInstantCommandfunction SendInstantCommand(MPInstantCommand Command, optional int ToPlayer)
SendPlayCommandfunction SendPlayCommand(int unitActionCounter, int UnitTurnCounter, H7StructsAndEnumsNative.EUnitCommand CommandType, H7ICaster Source, H7BaseAbility Ability, H7IEffectTargetable Target, int TeleportTarget, array<H7BaseCell> Path, H7StructsAndEnumsNative.ECommandTag CommandTag, H7StructsAndEnumsNative.EDirection Direction, bool ReplaceFakeAttacker, bool InsertHead, int CurrentPlayer, H7CombatMapCell TrueHitCell, optional bool doOOSCheck = true, optional int movementPoints)
SendPlayerDisconnectedfunction SendPlayerDisconnected(int disconnectedPlayerNum)
SendPreInitStartCombatsimulated reliable client function SendPreInitStartCombat()
SendRefillRNGPoolnative simulated reliable client event SendRefillRNGPool(int synchSeed)
SendSynchUpDatafunction SendSynchUpData(H7StructsAndEnums.EOOSType oosType, int ToPlayer)
SendTacticsPhaseFinishedfunction SendTacticsPhaseFinished(bool IsDefender, H7CombatArmy Army, int ToPlayer)
ServerCheckOutOfSynchreliable server function ServerCheckOutOfSynch(int unitActionCounter, int SynchRNG, int IDCounter, int UnitsCount, int ResCount, bool IsCombat, int ToPlayer)
ServerDamageApplyreliable server function ServerDamageApply(int CreatureStackId, int StackSize, int TopCreatureHealth, int ToPlayer)
ServerGameWentOOSreliable server function ServerGameWentOOS(H7StructsAndEnums.EOOSType oosType, int uac, int ToPlayer, int synchUpPlayer)
ServerGameWentOOSMessagereliable server function ServerGameWentOOSMessage(string Message, int uac, bool displayToPlayers, int ToPlayer)
ServerHostLeftGamereliable server function ServerHostLeftGame()
ServerInstantCommandreliable server function ServerInstantCommand(H7StructsAndEnums.EInstantCommandType instantCommandType, int unitActionCounter, string stringParam, int CurrentPlayer, int intParams[8], bool IsCombat, int ToPlayer, bool IsTactics)
ServerPlayerDisconnectedreliable server function ServerPlayerDisconnected(int disconnectedPlayerNum)
ServerPlayUnitCommandreliable server function ServerPlayUnitCommand(int Parameters[15], bool IsCombat, int ToPlayer, bool ignoreResetTurnFinished)
ServerPlayUnitCommandWithExtPathreliable server function ServerPlayUnitCommandWithExtPath(int Parameters[15], int Path[100], bool IsCombat, int ToPlayer, bool ignoreResetTurnFinished)
ServerPlayUnitCommandWithPathreliable server function ServerPlayUnitCommandWithPath(int Parameters[15], int Path[25], bool IsCombat, int ToPlayer, bool ignoreResetTurnFinished)
ServerSynchUpreliable server function ServerSynchUp(int unitActionCounter, int RNGCounter, int IDCounter, int ToPlayer)
ServerSynchUpArmyreliable server function ServerSynchUpArmy(int unitActionCounter, int heroId, string stackIDStrings, int stackCounts[7], int ToPlayer)
ServerSynchUpCombatUnitreliable server function ServerSynchUpCombatUnit(int unitActionCounter, int StackId, int StackCount, int TopCreatureHealth, int ToPlayer)
ServerTacticsPhaseFinishedreliable server function ServerTacticsPhaseFinished(bool IsDefender, MPUnitsPos unitsPos[15], int ToPlayer, int offGridDeployables)
SetIsUnrealInputAllowedfunction SetIsUnrealInputAllowed(bool isAllowed)
SetUnitActionBlockedForMouseReleasefunction SetUnitActionBlockedForMouseRelease(bool val)
ToggleCreatureHpBarsexec function ToggleCreatureHpBars()
ToggleMenuexec function ToggleMenu()

Inherited

FromMembers
H7PlayerControllerProperties: GeneralPanningSensitivity, IsInverted, IsPanningDown, IsPanningLeft, IsPanningMouse, IsPanningRight, IsPanningUp, KeyboardPanningSensitivity, KeyboardRotatingSensitivity, mActiveProfile, mAllowInput, mAllowInputFromKismet, mAlwaysQuickCombat, mBeforeSaveResolution, mBeforeSaveWindowMode, mBorderPan, mBufferedCommandResolution, mBufferedCommandResolution_Params, mBufferedCommandWindowMode, mBufferedCommandWindowMode_Params, mCacheGameSpeed, mCameraActionIsRunning, mCinematicTime, mCinematicWasSkipped, mCuesThisFrame, mCurrMoveDir, mCursorDirection, mCursorWasInit, mDidToggle, mEnableCouncilAnimations, mGameStarted, mHideCursor, mHUDMouseOver, mHUDMouseOverCounter, mIsAutoSkilling, mIsCaravanTurn, mIsCommandRequested, mIsFlythroughRunning, mIsInCinematicView, mIsInLoadingScreen, mIsMouseMoving, mIsPlayInEditor, mKeybindManager, mLastMousePosition, mMessageSystem, mMouseWheelCapturedByFlash, mMovieSkippedLastFrame, mOptionManager, MousePanningCache, MouseRotatingSensitivity, MouseRotationAllowed, MouseWheelBackward, MouseWheelForward, MouseWheelHoldTimer, MouseX, MouseY, mPatchingController, mPopupIsOpen, mResolutionRevertSeconds, mRetroFilter, mShiftDown, mShowUnreachableServers, mSkipNextCursorChange, mTownAssetLoader, mUserClicked, mUserClickedPrevious, mWasCinematicRunning, PanningMouseSensitivity, StartPanPosition
Functions: ApplyBufferedCommands, ApplyGameModeGfxSettings, BorkSampuls, BugIt, CaptureMouseWheel, CheckEnableMouse, CleanMovie, ClearCommandQueue, ClientLobbyChat, ClientLobbyStartGame, ClientLobbySystemChat, ClientMessage, ClientWasKicked, CreateKeybindManager, CurrentContextBlocksKeybind, DebugChangeFPS, DeleteKeyBindByKey, DeleteSession, Destroyed, DoQuickBarAction, DumpTweens, EgoCam, EnableMouse, FindAllInterpActors, FlushKeys, ForceUpdateUPlay, FOV, FreeCam, GetAdventureHud, GetAlwaysQuickCombat, GetAutoSkilling, GetBindByCommand, GetBindByKey, GetBindOrAliasByCommand, GetBloom, GetBorderPan, GetCombatMapHud, GetCursorDirection, GetDistortion, GetDolly, GetDynamicShadows, GetGeneralPanningSensitivity, GetH7Player, GetHTMLWithKeyBind, GetHUD, GetIsMousePanning, GetKeybindManager, GetKeyboardPanningSensitivity, GetKeyboardRotatingSensitivity, GetLandscapeQuality, GetLandscapeQualityList, GetLocalizedKeyCaption, GetLocalPlayer, GetMainHUD, GetMainMenuHud, GetMessageSystem, GetMousePanDiff, GetMousePanInvertion, GetMousePosition, GetMouseRotatingSensitivity, GetMouseWheel, GetOptionManager, GetPanningHorizontal, GetPanningVertical, GetParticleQuality, GetParticleQualityList, GetPatchingController, GetPlayerController, GetPlayerInput, GetPlayerNameHTMLColored, GetPlayerReplicationInfo, GetRotation, GetScreenResolution, GetSecondaryHUD, GetShaderQuality, GetShaderQualityList, GetSkelMeshQuality, GetSkelMeshQualityList, GetStaticMeshQuality, GetStaticMeshQualityList, GetTownAssetLoader, GetVSync, GetWindowMode, GetWindowModeList, H7UpdateAllComponents, H7UpdateLandscapeComponents, HandleCinematicEnd, HandleCinematics, HideCursor, HUDMouseOut, HUDMouseOver, HUDSubElementMouseOverBeforeHudMouseOver, InitLoadingScreen, IsCameraActionRunning, IsCaravanTurn, IsCommandRequested, IsFlythroughRunning, IsInCinematicView, IsInLoadingScreen, IsInputAllowed, IsKeyInputAllowed, IsKismetAllowsInput, IsLookInputIgnored, IsMouseLockedToWindow, IsMouseMoving, IsMouseOverHUD, IsMouseWheelCapturedByFlash, IsPopupOpen, IsServer, IsShiftDown, IsUnrealAllowsInput, MakeSampuls, MouseEnabledTick, MoveArmy, MoveArmyByNumpadInput, MoveEast, MoveNorth, MoveNorthEast, MoveNorthWest, MoveSouth, MoveSouthEast, MoveSouthWest, MoveStop, MoveWest, Nouplay, OnDestroySessionComplete, OpenedSpellbook, PanningCameraMovement, PauseMenuOpened, PlayerTick, PostBeginPlay, PrepareQuickBarAction, PrintProfile, ReleaseRightMouse, ResetAllSteamworksStatsAndAchievements, ResetCamera, ResetCutsceneFlags, ResetHUDOverCounter, ResetInputMappings, ResetOptions, RestartCombatHud, RetroFilter, RevertResolution, RightMouseDown, SayMyName, SendLobbyChat, SendLobbyStartGame, SendLobbySystemChat, SendPlayerReady, ServerLobbyChat, ServerLobbySetPlayerArmy, ServerLobbySetPlayerColor, ServerLobbySetPlayerFaction, ServerLobbySetPlayerHero, ServerLobbySetPlayerPosition, ServerLobbySetPlayerReady, ServerLobbySetPlayerStartBonus, ServerLobbySetPlayerTeam, SetAlwaysQuickCombat, SetAutoSkilling, SetBigHead, SetBloom, SetBorderPan, SetBufferedCommand_Resolution, SetBufferedCommand_WindowMode, SetCameraActionRunning, SetCaravanTurn, SetChristmasMode, SetCinematicControls, SetCinematicVisibilities, SetCommandRequested, SetCursor, SetCursorTexture, SetDistortion, SetDynamicShadows, SetDynamicShadowsDeffered, SetFlagVisibility, SetFlythroughRunning, SetGeneralPanningSensitivity, SetInLoadingScreen, SetInputAllowedFromKismet, SetIsPopupOpen, SetIsUnrealInputAllowed, SetKeyboardPanningSensitivity, SetKeyboardRotatingSensitivity, SetLandscapeQuality, SetLightShafts, SetMainHUD, SetMouseLockedToWindow, SetMousePanInvertion, SetMouseRotatingSensitivity, SetMouseWheelBackward, SetMouseWheelForward, SetParticleQuality, SetPause, SetPixellated, SetRMGSettings, SetSecondaryHUD, SetShaderQuality, SetShiftFalse, SetShiftTrue, SetSkelMeshQuality, SetStaticMeshQuality, SetTempBind, SetVSync, SetWindowMode, SkipMovie, StartPanMouse, StopPanMouse, TestRounding, TickResolution, toggleCinematicView, ToggleEventLog, ToggleFlythrough, ToggleGrid, ToggleMenu, TogglePopup, ToggleSRGB, TraceAllButLandscape, UnLoadCursorObject, UnlockAllRewards, UpdateRMGString, UpdateRotation
SaveGameStatePlayerControllerProperties: mCanPoll, mCheckTaskSucceeded, mDeleteTaskSucceeded, mIsQuickSaving, mLoadedThisTick, mLoadTaskSucceeded, mPostSlotCheck, mPreSlotCheck, mSavedThisTick, mSaveGameHeaderManager, mSaveGameList, mSaveGameScanner, mSaveLoadTasks, mSaveTaskSucceeded, mScannedSaves, mScanningSaves, mSlotCheckMP, mSlotCheckStatus, mWantsQuickLoad
Functions: CacheSaves, ClearSavesCache, ComputeTick, DeleteSaveGame, DeleteSaveGameInUplay, ExitHeroes, GetHUD, GetIndexOf, GetSavegameDataForSlot, GetSaveGameHeaderManager, GetSaveGameHeaderManagerForSaveGame, GetSaveGameList, GetSlotIdMP, LoadGameState, LoadPlayerProfileState, mOnDeleteComplete, PostBeginPlay, ProcessScan, ProcessScanMP, Savegame, SaveGameComplete, SaveGameExists, SaveGameSort, SavePlayerProfileState, ScanComplete, ScanForAllSaveGames, ScanForAllSaveGamesMP, ScrubFileName, ScrubScannerSaveName, ScrubUserSaveName, SortSaveGameList, StopScan
GamePlayerController5 properties, 18 functions
PlayerController109 properties, 400 functions
Controller62 properties, 129 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions