Exemplo n.º 1
0
 def OnPress(self) -> None:
     PC = unrealsdk.GetEngine().GamePlayers[0].Actor
     rep = PC.PlayerReplicationInfo
     if rep.NumOverpowerLevelsUnlocked == PC.GetMaximumPossibleOverpowerModifier(
     ):
         ShowHUDMessage(self.Name,
                        "You are already at the maximum OP level")
     else:
         rep.NumOverpowerLevelsUnlocked += 1
         ShowHUDMessage(
             self.Name,
             f"You have now unlocked OP {rep.NumOverpowerLevelsUnlocked}")
Exemplo n.º 2
0
    def OnPress(self) -> None:
        idx = (self.AllValues.index(self.CurrentValue) + 1) % len(
            self.AllValues)
        self.CurrentValue = self.AllValues[idx]

        ShowHUDMessage(self.Name, f"{self.Name}: {self.CurrentValue}")
        self.OnCycle()
Exemplo n.º 3
0
 def Internal() -> None:
     user = "******"
     try:
         user = msg["data"]["redemption"]["user"]["login"]
     except KeyError:
         pass
     ShowHUDMessage("Crowd Control", f"{user} redeemed '{self.Name}'")
Exemplo n.º 4
0
    def OnEnd(self) -> None:
        ShowHUDMessage("Crowd Control", f"{self.Name} wore off.")

        PC = unrealsdk.GetEngine().GamePlayers[0].Actor
        PC.ServerRCon(
            f"set {PC.PathName(PC.Pawn)} GroundSpeedBaseValue {self.GroundSpeedBaseValue}"
        )
        PC.ServerRCon(f"set {PC.PathName(PC.Pawn)} AccelRate {self.AccelRate}")
Exemplo n.º 5
0
    def OnPress(self) -> None:
        count = 0
        for obj in unrealsdk.FindAll("WillowVendingMachine"):
            if obj.Name == "Default__WillowVendingMachine":
                continue
            count += 1
            obj.ResetInventory()

        ShowHUDMessage(self.Name, f"Reset {count} shops")
Exemplo n.º 6
0
 def Internal() -> None:
     user = "******"
     try:
         user = msg["data"]["redemption"]["user"]["login"]
     except KeyError:
         pass
     ShowHUDMessage(
         "Crowd Control",
         f"{user} tried to redeem '{self.Name}', but forgot that this world doesn't have any enemies."
     )
Exemplo n.º 7
0
    def ApplySettings(self) -> None:
        settings = self.GetSettings()
        message = ""
        for cheat in self.CheatList:
            if cheat.Name in settings:
                if isinstance(cheat, ABCCycleableCheat):
                    cheat.CurrentValue = settings[cheat.Name]
                    cheat.OnCycle()
                    message += f"{cheat.Name}: {cheat.CurrentValue}\n"
                else:
                    cheat.OnPress()
                    message += f"Executed '{cheat.Name}'\n"

        ShowHUDMessage(self.Name, message[:-1], 5)
Exemplo n.º 8
0
    def ApplySettings(self, options: ABCOptions) -> None:
        settings = self.GetSettings()
        message = ""
        for cheat in options.All:
            if cheat.Name in settings:
                if isinstance(cheat, ABCCycleableCheat):
                    cheat.value = settings[cheat.Name]
                    cheat.OnCycle()
                    message += f"{cheat.Name}: {cheat.value}\n"
                else:
                    cheat.OnPress()
                    message += f"Executed '{cheat.Name}'\n"

        ShowHUDMessage(self.Name, message[:-1], 5)
Exemplo n.º 9
0
 def ShowMessage(self, msg: str) -> None:
     ShowHUDMessage(Title=self.Name, Message=msg)
Exemplo n.º 10
0
 def OnPress(self) -> None:
     self.value = self.Order[(self.Order.index(self.value) + 1) %
                             len(self.Order)]
     ShowHUDMessage(self.Name, f"{self.Name}: {self.value}")
     self.OnCycle()
Exemplo n.º 11
0
 def OnEnd(self) -> None:
     ShowHUDMessage("Crowd Control", f"{self.Name} wore off.")
     unrealsdk.RemoveHook(
         "WillowGame.WillowWeapon.ShouldAutoReloadWhileFiring",
         "CCManualReloads")
Exemplo n.º 12
0
 def OnEnd(self) -> None:
     ShowHUDMessage("Crowd Control", f"{self.Name} wore off.")
     unrealsdk.RemoveHook("WillowGame.WillowPlayerPawn.TakeDamage",
                          "CCGodMode")