Skip to content

H7PlayerController

Class in MMH7Game · MMH7Game.H7PlayerController · native, config

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

Subclasses: H7CombatPlayerController, H7CouncilPlayerController

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

Constants

NameValue
MAX_PRIVILEGES_COUNT20

Properties

NameTypeNotes
GeneralPanningSensitivityfloatconfig
IsInvertedboolconfig, protected
IsPanningDownbyteprotected
IsPanningLeftbyteprotected
IsPanningMouseboolprotected
IsPanningRightbyteprotected
IsPanningUpbyteprotected
KeyboardPanningSensitivityfloatconfig
KeyboardRotatingSensitivityfloatconfig
mActiveProfilestringconfig
mAllowInputboolprotected
mAllowInputFromKismetboolprotected
mAlwaysQuickCombatboolconfig
mBeforeSaveResolutionIntPointprotected
mBeforeSaveWindowModeH7StructsAndEnumsNative.EWindowModeprotected
mBorderPanboolconfig
mBufferedCommandResolutionboolprotected
mBufferedCommandResolution_ParamsIntPointprotected
mBufferedCommandWindowModeboolprotected
mBufferedCommandWindowMode_ParamsH7StructsAndEnumsNative.EWindowModeprotected
mCacheGameSpeedfloatprotected
mCameraActionIsRunningboolprotected
mCinematicTimefloatprotected
mCinematicWasSkippedboolprotected
mCuesThisFramearray<AkBaseSoundObject>protected
mCurrMoveDirVectorprotected
mCursorDirectionRotatorprotected
mCursorWasInitboolprotected
mDidToggleboolprotected
mEnableCouncilAnimationsboolconfig
mGameStartedboolprotected
mHideCursorboolprotected
mHUDMouseOverboolprotected
mHUDMouseOverCounterintprotected
mIsAutoSkillingboolconfig
mIsCaravanTurnboolprotected
mIsCommandRequestedboolprotected
mIsFlythroughRunningboolprotected
mIsInCinematicViewboolprotected
mIsInLoadingScreenboolprotected
mIsMouseMovingbool
mIsPlayInEditorboolprotected
mKeybindManagerH7KeybindManagerprotected
mLastMousePositionVector2Dprotected
mMessageSystemH7MessageSystemprotected
mMouseWheelCapturedByFlashboolprotected
mMovieSkippedLastFrameintprotected
mOptionManagerH7OptionsManagerprotected
MousePanningCacheintconfig, protected
MouseRotatingSensitivityfloatconfig
MouseRotationAllowedboolprotected
MouseWheelBackwardboolprotected
MouseWheelForwardboolprotected
MouseWheelHoldTimerfloatprotected
MouseXfloatprotected
MouseYfloatprotected
mPatchingControllerH7PatchingControllerprotected
mPopupIsOpenboolprotected
mResolutionRevertSecondsinttransient, protected
mRetroFilterboolconfig
mShiftDownboolprotected
mShowUnreachableServersboolconfig
mSkipNextCursorChangeboolprotected
mTownAssetLoaderH7TownAssetLoaderprotected
mUserClickedboolprotected
mUserClickedPreviousboolprotected
mWasCinematicRunningboolprotected
PanningMouseSensitivityfloatconfig
StartPanPositionVector2Dprotected

Functions

NameDeclaration
ApplyBufferedCommandsfunction ApplyBufferedCommands(optional bool offerRevert = true)
ApplyGameModeGfxSettingsfunction ApplyGameModeGfxSettings(bool bCombat)
BorkSampulsnative function BorkSampuls()
BugItexec event BugIt(optional string ScreenShotDescription)
CaptureMouseWheelfunction CaptureMouseWheel(bool val)
CheckEnableMousefunction CheckEnableMouse()
CleanMovieexec function CleanMovie()
ClearCommandQueueexec function ClearCommandQueue()
ClientLobbyChatsimulated reliable client function ClientLobbyChat(string playerNameHTML, string chatText, H7StructsAndEnumsNative.EChatChannel Channel)
ClientLobbyStartGamesimulated reliable client function ClientLobbyStartGame(int Positions[8], int randomFactions[8], int sharedPrivileges[20], string UserId, string gameStartTimeStamp)
ClientLobbySystemChatsimulated reliable client function ClientLobbySystemChat(string PlayerName, string locaKey)
ClientMessagesimulated reliable client event ClientMessage(coerce string S, optional name Type, optional float MsgLifeTime)
ClientWasKickedsimulated reliable client event ClientWasKicked()
CreateKeybindManagerevent CreateKeybindManager()
CurrentContextBlocksKeybindfunction bool CurrentContextBlocksKeybind(string commandFunctionName)
DebugChangeFPSexec function DebugChangeFPS(float newFPS)
DeleteKeyBindByKeyexec function bool DeleteKeyBindByKey(name Key)
DeleteSessionfunction DeleteSession(name SessionName)
Destroyedsimulated event Destroyed()
DoQuickBarActionprivate final exec function DoQuickBarAction(int SlotIndex)
DumpTweensexec function DumpTweens()
EgoCamexec function EgoCam()
EnableMousenative function EnableMouse()
FindAllInterpActorsnative function FindAllInterpActors(out array<InterpActor> searchResult)
FlushKeysnative function FlushKeys()
ForceUpdateUPlayexec function ForceUpdateUPlay()
FOVexec function FOV(float F)
FreeCamexec function FreeCam(optional bool bReset)
GetAdventureHudevent H7AdventureHud GetAdventureHud()
GetAlwaysQuickCombatfunction bool GetAlwaysQuickCombat()
GetAutoSkillingfunction bool GetAutoSkilling()
GetBindByCommandfunction KeyBind GetBindByCommand(string Command, optional bool recursiveCall)
GetBindByKeyfunction KeyBind GetBindByKey(name Key)
GetBindOrAliasByCommandnative function KeyBind GetBindOrAliasByCommand(string Command, optional bool recursiveCall)
GetBloomfunction bool GetBloom()
GetBorderPanfunction bool GetBorderPan()
GetCombatMapHudfunction H7CombatHud GetCombatMapHud()
GetCursorDirectionfunction Rotator GetCursorDirection()
GetDistortionfunction bool GetDistortion()
GetDollyfunction float GetDolly()
GetDynamicShadowsfunction bool GetDynamicShadows()
GetGeneralPanningSensitivityfunction float GetGeneralPanningSensitivity()
GetH7Playerfunction H7Player GetH7Player(string PlayerName)
GetHTMLWithKeyBindfunction string GetHTMLWithKeyBind(string localizedString, string alias)
GetHUDfunction H7Hud GetHUD()
GetIsMousePanningfunction bool GetIsMousePanning()
GetKeybindManagernative function H7KeybindManager GetKeybindManager()
GetKeyboardPanningSensitivityfunction float GetKeyboardPanningSensitivity()
GetKeyboardRotatingSensitivityfunction float GetKeyboardRotatingSensitivity()
GetLandscapeQualityfunction int GetLandscapeQuality()
GetLandscapeQualityListfunction array GetLandscapeQualityList()
GetLocalizedKeyCaptionfunction string GetLocalizedKeyCaption(name unrealKeyName)
GetLocalPlayerstatic function LocalPlayer GetLocalPlayer()
GetMainHUDfunction H7Hud GetMainHUD()
GetMainMenuHudfunction H7MainMenuHud GetMainMenuHud()
GetMessageSystemfunction H7MessageSystem GetMessageSystem()
GetMousePanDifffunction Vector2D GetMousePanDiff()
GetMousePanInvertionfunction bool GetMousePanInvertion()
GetMousePositionfunction Vector2D GetMousePosition()
GetMouseRotatingSensitivityfunction float GetMouseRotatingSensitivity()
GetMouseWheelfunction float GetMouseWheel(float DeltaTime)
GetOptionManagerfunction H7OptionsManager GetOptionManager()
GetPanningHorizontalfunction float GetPanningHorizontal()
GetPanningVerticalfunction float GetPanningVertical()
GetParticleQualityfunction int GetParticleQuality()
GetParticleQualityListfunction array GetParticleQualityList()
GetPatchingControllerfunction H7PatchingController GetPatchingController()
GetPlayerControllerstatic function H7PlayerController GetPlayerController()
GetPlayerInputfunction PlayerInput GetPlayerInput()
GetPlayerNameHTMLColoredfunction string GetPlayerNameHTMLColored(string PlayerName)
GetPlayerReplicationInfofunction H7PlayerReplicationInfo GetPlayerReplicationInfo()
GetRotationfunction float GetRotation()
GetScreenResolutionfunction Vector2D GetScreenResolution()
GetSecondaryHUDfunction H7Hud GetSecondaryHUD()
GetShaderQualitynative function int GetShaderQuality()
GetShaderQualityListfunction array GetShaderQualityList()
GetSkelMeshQualityfunction int GetSkelMeshQuality()
GetSkelMeshQualityListfunction array GetSkelMeshQualityList()
GetStaticMeshQualityfunction int GetStaticMeshQuality()
GetStaticMeshQualityListfunction array GetStaticMeshQualityList()
GetTownAssetLoaderfunction H7TownAssetLoader GetTownAssetLoader()
GetVSyncfunction bool GetVSync()
GetWindowModefunction int GetWindowMode()
GetWindowModeListfunction array GetWindowModeList()
H7UpdateAllComponentsnative exec function H7UpdateAllComponents()
H7UpdateLandscapeComponentsnative exec function H7UpdateLandscapeComponents()
HandleCinematicEndfunction HandleCinematicEnd(float DeltaTime)
HandleCinematicsfunction HandleCinematics(float DeltaTime)
HideCursorexec function HideCursor(bool val)
HUDMouseOutfunction HUDMouseOut()
HUDMouseOverfunction HUDMouseOver()
HUDSubElementMouseOverBeforeHudMouseOverfunction HUDSubElementMouseOverBeforeHudMouseOver()
InitLoadingScreenfunction InitLoadingScreen(optional MaterialInterface newBackground, optional bool IsCombat)
IsCameraActionRunningfunction bool IsCameraActionRunning()
IsCaravanTurnfunction bool IsCaravanTurn()
IsCommandRequestedfunction bool IsCommandRequested()
IsFlythroughRunningfunction bool IsFlythroughRunning()
IsInCinematicViewfunction bool IsInCinematicView()
IsInLoadingScreenfunction bool IsInLoadingScreen()
IsInputAllowedfunction bool IsInputAllowed(optional bool allowInputWhenMouseOverHud = false)
IsKeyInputAllowedfunction bool IsKeyInputAllowed()
IsKismetAllowsInputfunction bool IsKismetAllowsInput()
IsLookInputIgnoredevent bool IsLookInputIgnored()
IsMouseLockedToWindowfunction bool IsMouseLockedToWindow()
IsMouseMovingfunction bool IsMouseMoving()
IsMouseOverHUDfunction bool IsMouseOverHUD()
IsMouseWheelCapturedByFlashfunction bool IsMouseWheelCapturedByFlash()
IsPopupOpenfunction bool IsPopupOpen()
IsServerfunction bool IsServer()
IsShiftDownfunction bool IsShiftDown()
IsUnrealAllowsInputfunction bool IsUnrealAllowsInput()
MakeSampulsexec function MakeSampuls()
MouseEnabledTickevent MouseEnabledTick()
MoveArmyprotected function MoveArmy()
MoveArmyByNumpadInputprotected function MoveArmyByNumpadInput(Vector Direction)
MoveEastexec function MoveEast()
MoveNorthexec function MoveNorth()
MoveNorthEastexec function MoveNorthEast()
MoveNorthWestexec function MoveNorthWest()
MoveSouthexec function MoveSouth()
MoveSouthEastexec function MoveSouthEast()
MoveSouthWestexec function MoveSouthWest()
MoveStopexec function MoveStop()
MoveWestexec function MoveWest()
Nouplayexec function Nouplay()
OnDestroySessionCompletedelegate OnDestroySessionComplete(name SessionName, bool bWasSuccessful)
OpenedSpellbooknative function OpenedSpellbook()
PanningCameraMovementfunction Vector PanningCameraMovement()
PauseMenuOpenednative function PauseMenuOpened()
PlayerTickevent PlayerTick(float DeltaTime)
PostBeginPlaysimulated event PostBeginPlay()
PrepareQuickBarActionprivate final exec function PrepareQuickBarAction(int SlotIndex)
PrintProfileexec function PrintProfile()
ReleaseRightMouseexec function ReleaseRightMouse()
ResetAllSteamworksStatsAndAchievementsexec function ResetAllSteamworksStatsAndAchievements()
ResetCameraprivate final exec function ResetCamera()
ResetCutsceneFlagsfunction ResetCutsceneFlags()
ResetHUDOverCounterfunction ResetHUDOverCounter()
ResetInputMappingsexec function ResetInputMappings()
ResetOptionsfunction ResetOptions()
RestartCombatHudexec function RestartCombatHud()
RetroFilterexec function RetroFilter(optional bool bSetVal, optional bool bActivate)
RevertResolutionfunction RevertResolution()
RightMouseDownexec function RightMouseDown()
SayMyNamefunction string SayMyName()
SendLobbyChatfunction SendLobbyChat(string chatText, optional H7StructsAndEnumsNative.EChatChannel Channel = 0)
SendLobbyStartGamefunction SendLobbyStartGame(int mapMaxPlayers)
SendLobbySystemChatfunction SendLobbySystemChat(string PlayerName, string locaKey, optional H7StructsAndEnumsNative.EChatChannel Channel = 0)
SendPlayerReadyfunction SendPlayerReady(int PlayerIndex, bool IsReady)
ServerLobbyChatreliable server function ServerLobbyChat(string PlayerName, string chatText, H7StructsAndEnumsNative.EChatChannel Channel)
ServerLobbySetPlayerArmyreliable server function ServerLobbySetPlayerArmy(int PlayerIndex, int armyIndex)
ServerLobbySetPlayerColorreliable server function ServerLobbySetPlayerColor(int PlayerIndex, int selectedColorEnum)
ServerLobbySetPlayerFactionreliable server function ServerLobbySetPlayerFaction(int PlayerIndex, string factionArchetypeID)
ServerLobbySetPlayerHeroreliable server function ServerLobbySetPlayerHero(int PlayerIndex, string heroArchetypeID)
ServerLobbySetPlayerPositionreliable server function ServerLobbySetPlayerPosition(int PlayerIndex, int Position)
ServerLobbySetPlayerReadyreliable server function ServerLobbySetPlayerReady(int PlayerIndex, bool IsReady, int privileges[20])
ServerLobbySetPlayerStartBonusreliable server function ServerLobbySetPlayerStartBonus(int PlayerIndex, int bonusIndex)
ServerLobbySetPlayerTeamreliable server function ServerLobbySetPlayerTeam(int PlayerIndex, int teamEnum)
SetAlwaysQuickCombatfunction SetAlwaysQuickCombat(bool val)
SetAutoSkillingfunction SetAutoSkilling(bool val)
SetBigHeadfunction SetBigHead(bool newBigHead)
SetBloomfunction SetBloom(bool val)
SetBorderPanfunction SetBorderPan(bool Value)
SetBufferedCommand_Resolutionfunction SetBufferedCommand_Resolution(int X, int Y)
SetBufferedCommand_WindowModefunction SetBufferedCommand_WindowMode(H7StructsAndEnumsNative.EWindowMode windowMode)
SetCameraActionRunningfunction SetCameraActionRunning(bool val)
SetCaravanTurnfunction SetCaravanTurn(bool caravanTurn)
SetChristmasModeexec function SetChristmasMode(bool Value)
SetCinematicControlsfunction SetCinematicControls(bool newCinematicView)
SetCinematicVisibilitiesfunction SetCinematicVisibilities(bool newCinematicView)
SetCommandRequestedfunction SetCommandRequested(bool commandRequested)
SetCursorfunction SetCursor(H7StructsAndEnums.ECursorType cursorType, optional Rotator cursorRotation)
SetCursorTexturefunction SetCursorTexture(Texture2D cursorTexture, optional Texture2D objectTexture, optional int objectOffsetX, optional int objectOffsetY, optional int SizeX, optional int SizeY)
SetDistortionfunction SetDistortion(bool val)
SetDynamicShadowsnative function SetDynamicShadows(bool val)
SetDynamicShadowsDefferednative exec function SetDynamicShadowsDeffered(bool val)
SetFlagVisibilityexec function SetFlagVisibility(bool Hidden)
SetFlythroughRunningfunction SetFlythroughRunning(bool val, optional bool ToggleHUD = true, optional bool toggleCinematic = true, optional bool toggleFog = false)
SetGeneralPanningSensitivityfunction SetGeneralPanningSensitivity(float Value)
SetInLoadingScreenfunction SetInLoadingScreen(bool val)
SetInputAllowedFromKismetfunction SetInputAllowedFromKismet(bool isAllowed)
SetIsPopupOpenfunction SetIsPopupOpen(bool val)
SetIsUnrealInputAllowedfunction SetIsUnrealInputAllowed(bool isAllowed)
SetKeyboardPanningSensitivityfunction SetKeyboardPanningSensitivity(float Value)
SetKeyboardRotatingSensitivityfunction SetKeyboardRotatingSensitivity(float Value)
SetLandscapeQualitynative function SetLandscapeQuality(int val)
SetLightShaftsfunction SetLightShafts(bool val)
SetMainHUDfunction SetMainHUD(H7Hud newHUD)
SetMouseLockedToWindowfunction SetMouseLockedToWindow(bool IsLocked)
SetMousePanInvertionfunction SetMousePanInvertion(bool Value)
SetMouseRotatingSensitivityfunction SetMouseRotatingSensitivity(float Value)
SetMouseWheelBackwardprivate final exec function SetMouseWheelBackward()
SetMouseWheelForwardprivate final exec function SetMouseWheelForward()
SetParticleQualityfunction SetParticleQuality(int val)
SetPausefunction bool SetPause(bool bPause)
SetPixellatedevent SetPixellated(bool newPixellated)
SetRMGSettingsnative exec function SetRMGSettings(int MapSize, int playerAmount, string tileCode, optional int Seed = 0)
SetSecondaryHUDfunction SetSecondaryHUD(H7Hud newHUD)
SetShaderQualitynative function SetShaderQuality(int val)
SetShiftFalseexec function SetShiftFalse()
SetShiftTrueexec function SetShiftTrue()
SetSkelMeshQualityfunction SetSkelMeshQuality(int val)
SetStaticMeshQualitynative function SetStaticMeshQuality(int val)
SetTempBindexec function SetTempBind(name BindName, string Command)
SetVSyncfunction SetVSync(bool val)
SetWindowModefunction SetWindowMode(int windowModeInt)
SkipMoviefunction SkipMovie()
StartPanMouseprivate final exec function StartPanMouse()
StopPanMouseprivate final exec function StopPanMouse()
TestRoundingexec function TestRounding()
TickResolutionfunction TickResolution()
toggleCinematicViewexec function toggleCinematicView(bool newCinematicView)
ToggleEventLogexec function ToggleEventLog()
ToggleFlythroughfunction ToggleFlythrough(bool val, optional bool ToggleHUD = true, optional bool toggleCinematicView = true, optional bool toggleFog = false)
ToggleGridexec function ToggleGrid()
ToggleMenuexec function ToggleMenu()
TogglePopupfunction TogglePopup(H7FlashMoviePopupCntl PopUp)
ToggleSRGBexec function ToggleSRGB(bool Value)
TraceAllButLandscapenative function TraceAllButLandscape(out ImpactInfo finalHitInfo, Vector StartPosition, Vector endPosition)
UnLoadCursorObjectfunction UnLoadCursorObject()
UnlockAllRewardsexec function UnlockAllRewards()
UpdateRMGStringsimulated reliable client function UpdateRMGString(string rmgString, int numPulibcConnections)
UpdateRotationfunction UpdateRotation(float DeltaTime)

Default values

IsInverted=true
mBorderPan=true
mAllowInput=true
mAllowInputFromKismet=true
mUserClickedPrevious=true
mShowUnreachableServers=true
mEnableCouncilAnimations=true
mActiveProfile="Ivan_1"
PanningMouseSensitivity=1.5000000
GeneralPanningSensitivity=1.5000000
MouseRotatingSensitivity=1.0000000
KeyboardRotatingSensitivity=1.0000000
KeyboardPanningSensitivity=3.0000000
MousePanningCache=10
CameraClass=Class'H7Camera'

Inherited

FromMembers
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