_FinishSaveGameLoad(GetEngine().GamePlayers[0].Actor, None, None) _RegisterHook(_FinishSaveGameLoad) _RegisterHook(_ClientSetSkillGrade) _RegisterHook(_ClientIncrementOverpowerLevel) _RegisterHook(_ClientOnExpLevelChange) _RegisterHook(_OnPlaythroughCompleted) _RegisterHook(_NotifyTeleported, "WillowGame.WillowPlayerPawn") _RegisterHook(_OnClose, "WillowGame.CustomizationGFxMovie") _RegisterHook(_OnClose, "WillowGame.CharacterSelectionReduxGFxMovie") _RegisterHook(_InventoryReadied, "WillowGame.WillowInventoryManager") _RegisterHook(_RemoveFromInventory, "WillowGame.WillowInventoryManager") _RegisterHook(_SwitchQuickSlot, "WillowGame.WillowInventoryManager") def Disable(self): _RemoveHook(_FinishSaveGameLoad) _RemoveHook(_ClientSetSkillGrade) _RemoveHook(_ClientIncrementOverpowerLevel) _RemoveHook(_ClientOnExpLevelChange) _RemoveHook(_OnPlaythroughCompleted) _RemoveHook(_NotifyTeleported, "WillowGame.WillowPlayerPawn") _RemoveHook(_OnClose, "WillowGame.CustomizationGFxMovie") _RemoveHook(_OnClose, "WillowGame.CharacterSelectionReduxGFxMovie") _RemoveHook(_InventoryReadied, "WillowGame.WillowInventoryManager") _RemoveHook(_RemoveFromInventory, "WillowGame.WillowInventoryManager") _RemoveHook(_SwitchQuickSlot, "WillowGame.WillowInventoryManager") ModMenu.RegisterMod(LiveFeed())
RemoveHook( "Engine.Pawn.ApplyBalanceDefinitionCustomizations", "ReignOfGiants" ) RemoveHook( "WillowGame.WillowAIPawn.ReplicatedEvent", "ReignOfGiants" ) RemoveHook( "WillowGame.WillowAIPawn.AILevelUp", "ReignOfGiants" ) RemoveHook( "WillowGame.Behavior_Transform.ApplyBehaviorToContext", "ReignOfGiants" ) RemoveHook( "WillowGame.WillowAIPawn.Died", "ReignOfGiants" ) if CommandExtensions is None: RemoveHook("Engine.PlayerController.ConsoleCommand", "ReignOfGiants") else: CommandExtensions.UnregisterConsoleCommand("giantscheat") CommandExtensions.UnregisterConsoleCommand("giantssize") CommandExtensions.UnregisterConsoleCommand("giantsname") RemoveHook( "WillowGame.WillowGameViewportClient.Tick", "ReignOfGiants.RequestGiants" ) RemoveHook( "WillowGame.WillowGameViewportClient.Tick", "ReignOfGiants.UpdatePawns" ) RemoveHook( "WillowGame.WillowGameViewportClient.Tick", "ReignOfGiants.GigantizePawns" ) _mod_instance = ReignOfGiants() if __name__ == "__main__": for mod in Mods: if mod.Name == _mod_instance.Name: if mod.IsEnabled: mod.Disable() Mods.remove(mod) _mod_instance.__class__.__module__ = mod.__class__.__module__ break ModMenu.RegisterMod(_mod_instance)
if _ClientTeleporting.CurrentValue == "Allow": _ApplyPosition(PC, position) self.ClientApplyPosition(position, name, PC) else: self.ClientFeedback("Only session host may teleport players.", PC) @ServerMethod def ServerRequestGameSpeed(self, speed, PC = None): if _ClientSpeedPermissions.CurrentValue: _ApplyGameSpeed(speed) else: self.ClientFeedback("Only session host may modify game speed.", PC) @ServerMethod def ServerRequestPlayersOnly(self, playersOnly, PC = None): if _ClientSpeedPermissions.CurrentValue: _ApplyPlayersOnly(playersOnly) else: self.ClientFeedback("Only session host may toggle game freeze.", PC) _ModInstance = Commander() ModMenu.RegisterMod(_ModInstance) for mapName, positions in _Positions.CurrentValue.items(): if type(positions) is dict: _Positions.CurrentValue[mapName] = [positions, None, None] else: break ModMenu.SaveModSettings(_ModInstance)