Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Created by AdamJD
- //This is a reference for the majority of the HP2 retail game commands
- //In game commands (not in the console)
- if ( _CurrentString ~= "ChadModeOn" )
- {
- TurnDebugModeOn();
- }
- if ( _CurrentString ~= "EricGetsFullHealth" )
- {
- GetHealthStatusItem().SetCountToMaxPotential();
- } else {
- if ( _CurrentString ~= "EliJump" )
- {
- DoJump(0.0);
- Velocity = (Rotation + vect(0.00,0.00,1.00)) * byte(800);
- } else {
- if ( _CurrentString ~= "PhillipsJump" )
- {
- DoJump(0.0);
- Velocity = (Rotation + vect(0.00,0.00,1.00)) * byte(500);
- } else {
- if ( _CurrentString ~= "MelanieSword" )
- {
- ToggleUseSword();
- if ( bHarryUsingSword )
- {
- bMSword = True;
- makeTarget();
- SpellCursor.bSpellCursorAlwaysOn = True;
- } else {
- bMSword = False;
- SpellCursor.bSpellCursorAlwaysOn = False;
- SpellCursor.EnableEmission(False);
- TurnOffSpellCursor();
- }
- } else {
- if ( _CurrentString ~= "GoyleMode" )
- {
- ConsoleCommand("GoyleMode");
- if ( bIsGoyle )
- {
- PlaySound(Sound'Pig_snort02',0);
- Fatness = 210;
- } else {
- Fatness = 128;
- }
- }
- }
- }
- }
- }
- if ( _CurrentString ~= "ChrisMode" )
- {
- if ( Opacity == 1.0 )
- {
- Opacity = 0.5;
- } else {
- if ( Opacity == 0.5 )
- {
- Opacity = 0.0;
- } else {
- Opacity = 1.0;
- }
- }
- } else {
- if ( _CurrentString ~= "FraserIsGod" )
- {
- bFraserMode = !bFraserMode;
- if ( bFraserMode )
- {
- ClientMessage("Indeed, Fraser IS God...");
- } else {
- ClientMessage("Sad, Fraser is now NOT God.");
- }
- } else {
- if ( _CurrentString ~= "BeatBoss" )
- {
- baseBoss(BossTarget).BeatBoss();
- } else {
- if ( _CurrentString ~= "Quit" )
- {
- ConsoleCommand("exit");
- }
- }
- }
- //Console commands
- rmode 6 //textured view
- rmode 5 //dynamic light view
- exit //quits the game
- exec function DestroyClass (string Input)
- {
- harry(Viewport.Actor).DestroyClass(Input);
- }
- exec function ListGroups ()
- {
- harry(Viewport.Actor).ListGroups();
- }
- exec function ShortCut ()
- {
- if ( SCWindow == None )
- {
- SCWindow = ShortCutWindow(Root.CreateWindow(Class'ShortCutWindow',64.0,64.0,320.0,320.0));
- } else {
- if ( True == SCWindow.bUWindowActive )
- {
- SCWindow.Close();
- } else {
- SCWindow.ActivateWindow(0,False);
- }
- }
- }
- exec function Lumos_Debug ()
- {
- if ( baseWand(harry(Viewport.Actor).Weapon).TheLumosLight != None )
- {
- baseWand(harry(Viewport.Actor).Weapon).TheLumosLight.ShowDebugInfo();
- }
- }
- exec function Wand_Debug (bool bInput)
- {
- baseWand(harry(Viewport.Actor).Weapon).SetDebugMode(bInput);
- }
- exec function SpellCursor_Debug (bool bInput)
- {
- harry(Viewport.Actor).SpellCursor.SetDebugMode(bInput);
- }
- exec function SpellCursor_Distance (float fInput)
- {
- harry(Viewport.Actor).SpellCursor.SetLOSDistance(fInput);
- }
- exec function Cam_Mode (string sInput)
- {
- harry(Viewport.Actor).Cam.SetModeByString(sInput);
- }
- exec function Cam_Settings ()
- {
- harry(Viewport.Actor).Cam.ShowSettings();
- }
- exec function Cam_SaveSettings (int iInput)
- {
- harry(Viewport.Actor).Cam.SaveUserSettings(iInput);
- }
- exec function Cam_LoadSettings (int iInput)
- {
- harry(Viewport.Actor).Cam.LoadUserSettings(iInput);
- }
- exec function Cam_MinPitch (float fInput)
- {
- harry(Viewport.Actor).Cam.SetMinPitch(fInput);
- }
- exec function Cam_MaxPitch (float fInput)
- {
- harry(Viewport.Actor).Cam.SetMaxPitch(fInput);
- }
- exec function Cam_XOffset (float fInput)
- {
- harry(Viewport.Actor).Cam.SetXOffset(fInput);
- }
- exec function Cam_YOffset (float fInput)
- {
- harry(Viewport.Actor).Cam.SetYOffset(fInput);
- }
- exec function Cam_ZOffset (float fInput)
- {
- harry(Viewport.Actor).Cam.SetZOffset(fInput);
- }
- exec function Cam_Distance (float fInput)
- {
- harry(Viewport.Actor).Cam.SetDistance(fInput);
- }
- exec function Cam_RotStepYaw (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRotStepYaw(fInput);
- }
- exec function Cam_RotStepPitch (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRotStepPitch(fInput);
- }
- exec function Cam_RotStepRoll (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRotStepRoll(fInput);
- }
- exec function Cam_RotTightness (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRotTightness(fInput);
- }
- exec function Cam_RotSpeed (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRotSpeed(fInput);
- }
- exec function Cam_MoveBackTightness (float fInput)
- {
- harry(Viewport.Actor).Cam.SetMoveBackTightness(fInput);
- }
- exec function Cam_MoveTightness (float fInput)
- {
- harry(Viewport.Actor).Cam.SetMoveTightness(fInput);
- }
- exec function Cam_MoveSpeed (float fInput)
- {
- harry(Viewport.Actor).Cam.SetMoveSpeed(fInput);
- }
- exec function Cam_Yaw (float fInput)
- {
- harry(Viewport.Actor).Cam.SetYaw(fInput);
- }
- exec function Cam_Pitch (float fInput)
- {
- harry(Viewport.Actor).Cam.SetPitch(fInput);
- }
- exec function Cam_Roll (float fInput)
- {
- harry(Viewport.Actor).Cam.SetRoll(fInput);
- }
- exec function Cam_Target (name nInput)
- {
- harry(Viewport.Actor).Cam.SetTargetActor(nInput);
- }
- exec function Cam_SyncPos (bool bInput)
- {
- harry(Viewport.Actor).Cam.SetSyncPosWithTarget(bInput);
- }
- exec function Cam_SyncRot (bool bInput)
- {
- harry(Viewport.Actor).Cam.SetSyncRotWithTarget(bInput);
- }
- exec function Cam_FOV (float fInput)
- {
- harry(Viewport.Actor).Cam.SetFOV(fInput,1.0,True);
- }
- exec function Cam_CutCommand (string sInput)
- {
- harry(Viewport.Actor).Cam.CutCommand(sInput);
- }
- exec function Boss (string sInput)
- {
- baseBoss(harry(Viewport.Actor).BossTarget).TweakSetting(sInput);
- }
- exec function SetGState (string Str)
- {
- harry(Viewport.Actor).SetGameState(Str);
- }
- exec function ShowGState ()
- {
- harry(Viewport.Actor).ClientMessage("Current GameState : " $ harry(Viewport.Actor).CurrentGameState);
- }
- exec function ShowCardData ()
- {
- harry(Viewport.Actor).managerStatus.ShowCardData();
- }
- exec function AddHPointsG (int nPoints)
- {
- harry(Viewport.Actor).managerStatus.AddHPointsG(nPoints);
- }
- exec function AddHPointsH (int nPoints)
- {
- harry(Viewport.Actor).managerStatus.AddHPointsH(nPoints);
- }
- exec function AddHPointsS (int nPoints)
- {
- harry(Viewport.Actor).managerStatus.AddHPointsS(nPoints);
- }
- exec function AddHPointsR (int nPoints)
- {
- harry(Viewport.Actor).managerStatus.AddHPointsR(nPoints);
- }
- exec function AddFMucus (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddFMucus(nCount);
- }
- exec function AddWBark (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddWBark(nCount);
- }
- exec function AddBicorn (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddBicorn(nCount);
- }
- exec function AddBoomslang (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddBoomslang(nCount);
- }
- exec function AddNimbus (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddNimbus(nCount);
- }
- exec function AddQArmor (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddQArmor(nCount);
- }
- exec function AddPotions (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddPotions(nCount);
- }
- exec function AddBeans (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddBeans(nCount);
- }
- exec function AddHealth (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddHealth(nCount);
- }
- exec function AddHealthPotential (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddHealthPotential(nCount);
- }
- exec function AddLock1 (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddLock1(nCount);
- }
- exec function AddLock2 (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddLock2(nCount);
- }
- exec function AddLock3 (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddLock3(nCount);
- }
- exec function AddLock4 (int nCount)
- {
- harry(Viewport.Actor).managerStatus.AddLock4(nCount);
- }
- exec function ShowLock1Count ()
- {
- harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock1Count()));
- }
- exec function ShowLock2Count ()
- {
- harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock2Count()));
- }
- exec function ShowLock3Count ()
- {
- harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock3Count()));
- }
- exec function ShowLock4Count ()
- {
- harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock4Count()));
- }
- exec function GiveCardToHarry (int nCardId)
- {
- harry(Viewport.Actor).managerStatus.GiveCardToHarry(nCardId);
- }
- exec function GiveAllCardsToHarry ()
- {
- harry(Viewport.Actor).managerStatus.GiveAllCardsToHarry();
- }
- exec function GiveCardToVendors (int nCardId)
- {
- harry(Viewport.Actor).managerStatus.GiveCardToVendors(nCardId);
- }
- exec function GiveSpell (string Str)
- {
- harry(Viewport.Actor).AddToSpellBookByString(Str);
- }
- exec function GiveAllSpells ()
- {
- harry(Viewport.Actor).AddAllSpellsToSpellBook();
- }
- exec function TakeAllSpells ()
- {
- harry(Viewport.Actor).ClearSpellBook();
- }
- exec function ArtTest ()
- {
- local harry PlayerHarry;
- local StatusManager managerStatus;
- local StatusGroup sg;
- local ChallengeScoreManager ChallengeScore;
- PlayerHarry = harry(Viewport.Actor);
- managerStatus = PlayerHarry.managerStatus;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupQGear');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupPotionIngr');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupPolyIngr');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupPotions');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupJellybeans');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupHousePoints');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupLocks');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg = managerStatus.GetStatusGroup(Class'StatusGroupWizardCards');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg.IncrementCount(Class'StatusItemBronzeCards',1);
- sg = managerStatus.GetStatusGroup(Class'StatusGroupStars');
- sg.GameEffectType = sg.2;
- sg.CurrEffectType = sg.2;
- sg.IncrementCount(Class'StatusItemStars',4);
- AddNimbus(1);
- AddQArmor(1);
- AddWBark(1249);
- AddFMucus(2);
- AddBicorn(1);
- AddBoomslang(1);
- AddPotions(99);
- AddBeans(342);
- AddHealthPotential(500);
- AddHealth(-150);
- AddHPointsG(1436);
- GiveAllCardsToHarry();
- ChallengeScore = ChallengeScoreManager(PlayerHarry.FancySpawn(Class'ChallengeScoreManager'));
- ChallengeScore.BeginChallenge();
- }
- exec function ShowTimer (bool bShow)
- {
- local CountdownTimerManager TimerManager;
- foreach Viewport.Actor.AllActors(Class'CountdownTimerManager',TimerManager)
- {
- TimerManager.bShowNumericTime = bShow;
- }
- }
- exec function DrawScale (float fScale)
- {
- harry(Viewport.Actor).DrawScale = fScale;
- }
- exec function Fatness (int iFatness)
- {
- harry(Viewport.Actor).Fatness = bool(iFatness);
- }
- exec function Opacity (float fOpacity)
- {
- harry(Viewport.Actor).Opacity = fOpacity;
- }
- exec function GoyleMode ()
- {
- harry(Viewport.Actor).bIsGoyle = !harry(Viewport.Actor).bIsGoyle;
- harry(Viewport.Actor).SetNewMesh();
- }
- exec function FPSMode ()
- {
- harry(Viewport.Actor).Cam.SetDistance(0.0);
- harry(Viewport.Actor).Cam.SetZOffset(32.0);
- harry(Viewport.Actor).Opacity = 0.0;
- }
- exec function SwordMode ()
- {
- harry(Viewport.Actor).ToggleUseSword();
- if ( harry(Viewport.Actor).bHarryUsingSword )
- {
- harry(Viewport.Actor).bMSword = True;
- harry(Viewport.Actor).makeTarget();
- harry(Viewport.Actor).SpellCursor.bSpellCursorAlwaysOn = True;
- } else {
- harry(Viewport.Actor).bMSword = False;
- harry(Viewport.Actor).SpellCursor.bSpellCursorAlwaysOn = False;
- harry(Viewport.Actor).SpellCursor.EnableEmission(False);
- harry(Viewport.Actor).TurnOffSpellCursor();
- }
- }
- exec function DuelingMode ()
- {
- if ( harry(Viewport.Actor).bInDuelingMode )
- {
- harry(Viewport.Actor).TurnOnDuelingMode(None);
- } else {
- harry(Viewport.Actor).TurnOffDuelingMode();
- }
- }
- exec function LangBrowser ()
- {
- menuBook.OpenBook("Lang");
- }
- exec function ShowPos ()
- {
- bShowPos = !bShowPos;
- }
- exec function giveAllCards ()
- {
- GiveAllCardsToHarry();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement