Advertisement
Guest User

HP2 Commands

a guest
Aug 17th, 2019
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Created by AdamJD
  2. //This is a reference for the majority of the HP2 retail game commands
  3.  
  4. //In game commands (not in the console)
  5. if ( _CurrentString ~= "ChadModeOn" )
  6.   {
  7.     TurnDebugModeOn();
  8.   }
  9.   if ( _CurrentString ~= "EricGetsFullHealth" )
  10.   {
  11.     GetHealthStatusItem().SetCountToMaxPotential();
  12.   } else {
  13.     if ( _CurrentString ~= "EliJump" )
  14.     {
  15.       DoJump(0.0);
  16.       Velocity = (Rotation + vect(0.00,0.00,1.00)) * byte(800);
  17.     } else {
  18.       if ( _CurrentString ~= "PhillipsJump" )
  19.       {
  20.         DoJump(0.0);
  21.         Velocity = (Rotation + vect(0.00,0.00,1.00)) * byte(500);
  22.       } else {
  23.         if ( _CurrentString ~= "MelanieSword" )
  24.         {
  25.           ToggleUseSword();
  26.           if ( bHarryUsingSword )
  27.           {
  28.             bMSword = True;
  29.             makeTarget();
  30.             SpellCursor.bSpellCursorAlwaysOn = True;
  31.           } else {
  32.             bMSword = False;
  33.             SpellCursor.bSpellCursorAlwaysOn = False;
  34.             SpellCursor.EnableEmission(False);
  35.             TurnOffSpellCursor();
  36.           }
  37.         } else {
  38.           if ( _CurrentString ~= "GoyleMode" )
  39.           {
  40.             ConsoleCommand("GoyleMode");
  41.             if ( bIsGoyle )
  42.             {
  43.               PlaySound(Sound'Pig_snort02',0);
  44.               Fatness = 210;
  45.             } else {
  46.               Fatness = 128;
  47.             }
  48.           }
  49.         }
  50.       }
  51.     }
  52.   }
  53.   if ( _CurrentString ~= "ChrisMode" )
  54.   {
  55.     if ( Opacity == 1.0 )
  56.     {
  57.       Opacity = 0.5;
  58.     } else {
  59.       if ( Opacity == 0.5 )
  60.       {
  61.         Opacity = 0.0;
  62.       } else {
  63.         Opacity = 1.0;
  64.       }
  65.     }
  66.   } else {
  67.     if ( _CurrentString ~= "FraserIsGod" )
  68.     {
  69.       bFraserMode =  !bFraserMode;
  70.       if ( bFraserMode )
  71.       {
  72.         ClientMessage("Indeed, Fraser IS God...");
  73.       } else {
  74.         ClientMessage("Sad, Fraser is now NOT God.");
  75.       }
  76.     } else {
  77.       if ( _CurrentString ~= "BeatBoss" )
  78.       {
  79.         baseBoss(BossTarget).BeatBoss();
  80.       } else {
  81.         if ( _CurrentString ~= "Quit" )
  82.         {
  83.           ConsoleCommand("exit");
  84.         }
  85.       }
  86.     }
  87.    
  88. //Console commands
  89. rmode 6 //textured view
  90.  
  91. rmode 5 //dynamic light view
  92.  
  93. exit //quits the game
  94.  
  95. exec function DestroyClass (string Input)
  96. {
  97.   harry(Viewport.Actor).DestroyClass(Input);
  98. }
  99.  
  100. exec function ListGroups ()
  101. {
  102.   harry(Viewport.Actor).ListGroups();
  103. }
  104.  
  105. exec function ShortCut ()
  106. {
  107.   if ( SCWindow == None )
  108.   {
  109.     SCWindow = ShortCutWindow(Root.CreateWindow(Class'ShortCutWindow',64.0,64.0,320.0,320.0));
  110.   } else {
  111.     if ( True == SCWindow.bUWindowActive )
  112.     {
  113.       SCWindow.Close();
  114.     } else {
  115.       SCWindow.ActivateWindow(0,False);
  116.     }
  117.   }
  118. }
  119.  
  120. exec function Lumos_Debug ()
  121. {
  122.   if ( baseWand(harry(Viewport.Actor).Weapon).TheLumosLight != None )
  123.   {
  124.     baseWand(harry(Viewport.Actor).Weapon).TheLumosLight.ShowDebugInfo();
  125.   }
  126. }
  127.  
  128. exec function Wand_Debug (bool bInput)
  129. {
  130.   baseWand(harry(Viewport.Actor).Weapon).SetDebugMode(bInput);
  131. }
  132.  
  133. exec function SpellCursor_Debug (bool bInput)
  134. {
  135.   harry(Viewport.Actor).SpellCursor.SetDebugMode(bInput);
  136. }
  137.  
  138. exec function SpellCursor_Distance (float fInput)
  139. {
  140.   harry(Viewport.Actor).SpellCursor.SetLOSDistance(fInput);
  141. }
  142.  
  143. exec function Cam_Mode (string sInput)
  144. {
  145.   harry(Viewport.Actor).Cam.SetModeByString(sInput);
  146. }
  147.  
  148. exec function Cam_Settings ()
  149. {
  150.   harry(Viewport.Actor).Cam.ShowSettings();
  151. }
  152.  
  153. exec function Cam_SaveSettings (int iInput)
  154. {
  155.   harry(Viewport.Actor).Cam.SaveUserSettings(iInput);
  156. }
  157.  
  158. exec function Cam_LoadSettings (int iInput)
  159. {
  160.   harry(Viewport.Actor).Cam.LoadUserSettings(iInput);
  161. }
  162.  
  163. exec function Cam_MinPitch (float fInput)
  164. {
  165.   harry(Viewport.Actor).Cam.SetMinPitch(fInput);
  166. }
  167.  
  168. exec function Cam_MaxPitch (float fInput)
  169. {
  170.   harry(Viewport.Actor).Cam.SetMaxPitch(fInput);
  171. }
  172.  
  173. exec function Cam_XOffset (float fInput)
  174. {
  175.   harry(Viewport.Actor).Cam.SetXOffset(fInput);
  176. }
  177.  
  178. exec function Cam_YOffset (float fInput)
  179. {
  180.   harry(Viewport.Actor).Cam.SetYOffset(fInput);
  181. }
  182.  
  183. exec function Cam_ZOffset (float fInput)
  184. {
  185.   harry(Viewport.Actor).Cam.SetZOffset(fInput);
  186. }
  187.  
  188. exec function Cam_Distance (float fInput)
  189. {
  190.   harry(Viewport.Actor).Cam.SetDistance(fInput);
  191. }
  192.  
  193. exec function Cam_RotStepYaw (float fInput)
  194. {
  195.   harry(Viewport.Actor).Cam.SetRotStepYaw(fInput);
  196. }
  197.  
  198. exec function Cam_RotStepPitch (float fInput)
  199. {
  200.   harry(Viewport.Actor).Cam.SetRotStepPitch(fInput);
  201. }
  202.  
  203. exec function Cam_RotStepRoll (float fInput)
  204. {
  205.   harry(Viewport.Actor).Cam.SetRotStepRoll(fInput);
  206. }
  207.  
  208. exec function Cam_RotTightness (float fInput)
  209. {
  210.   harry(Viewport.Actor).Cam.SetRotTightness(fInput);
  211. }
  212.  
  213. exec function Cam_RotSpeed (float fInput)
  214. {
  215.   harry(Viewport.Actor).Cam.SetRotSpeed(fInput);
  216. }
  217.  
  218. exec function Cam_MoveBackTightness (float fInput)
  219. {
  220.   harry(Viewport.Actor).Cam.SetMoveBackTightness(fInput);
  221. }
  222.  
  223. exec function Cam_MoveTightness (float fInput)
  224. {
  225.   harry(Viewport.Actor).Cam.SetMoveTightness(fInput);
  226. }
  227.  
  228. exec function Cam_MoveSpeed (float fInput)
  229. {
  230.   harry(Viewport.Actor).Cam.SetMoveSpeed(fInput);
  231. }
  232.  
  233. exec function Cam_Yaw (float fInput)
  234. {
  235.   harry(Viewport.Actor).Cam.SetYaw(fInput);
  236. }
  237.  
  238. exec function Cam_Pitch (float fInput)
  239. {
  240.   harry(Viewport.Actor).Cam.SetPitch(fInput);
  241. }
  242.  
  243. exec function Cam_Roll (float fInput)
  244. {
  245.   harry(Viewport.Actor).Cam.SetRoll(fInput);
  246. }
  247.  
  248. exec function Cam_Target (name nInput)
  249. {
  250.   harry(Viewport.Actor).Cam.SetTargetActor(nInput);
  251. }
  252.  
  253. exec function Cam_SyncPos (bool bInput)
  254. {
  255.   harry(Viewport.Actor).Cam.SetSyncPosWithTarget(bInput);
  256. }
  257.  
  258. exec function Cam_SyncRot (bool bInput)
  259. {
  260.   harry(Viewport.Actor).Cam.SetSyncRotWithTarget(bInput);
  261. }
  262.  
  263. exec function Cam_FOV (float fInput)
  264. {
  265.   harry(Viewport.Actor).Cam.SetFOV(fInput,1.0,True);
  266. }
  267.  
  268. exec function Cam_CutCommand (string sInput)
  269. {
  270.   harry(Viewport.Actor).Cam.CutCommand(sInput);
  271. }
  272.  
  273. exec function Boss (string sInput)
  274. {
  275.   baseBoss(harry(Viewport.Actor).BossTarget).TweakSetting(sInput);
  276. }
  277.  
  278. exec function SetGState (string Str)
  279. {
  280.   harry(Viewport.Actor).SetGameState(Str);
  281. }
  282.  
  283. exec function ShowGState ()
  284. {
  285.   harry(Viewport.Actor).ClientMessage("Current GameState : " $ harry(Viewport.Actor).CurrentGameState);
  286. }
  287.  
  288. exec function ShowCardData ()
  289. {
  290.   harry(Viewport.Actor).managerStatus.ShowCardData();
  291. }
  292.  
  293. exec function AddHPointsG (int nPoints)
  294. {
  295.   harry(Viewport.Actor).managerStatus.AddHPointsG(nPoints);
  296. }
  297.  
  298. exec function AddHPointsH (int nPoints)
  299. {
  300.   harry(Viewport.Actor).managerStatus.AddHPointsH(nPoints);
  301. }
  302.  
  303. exec function AddHPointsS (int nPoints)
  304. {
  305.   harry(Viewport.Actor).managerStatus.AddHPointsS(nPoints);
  306. }
  307.  
  308. exec function AddHPointsR (int nPoints)
  309. {
  310.   harry(Viewport.Actor).managerStatus.AddHPointsR(nPoints);
  311. }
  312.  
  313. exec function AddFMucus (int nCount)
  314. {
  315.   harry(Viewport.Actor).managerStatus.AddFMucus(nCount);
  316. }
  317.  
  318. exec function AddWBark (int nCount)
  319. {
  320.   harry(Viewport.Actor).managerStatus.AddWBark(nCount);
  321. }
  322.  
  323. exec function AddBicorn (int nCount)
  324. {
  325.   harry(Viewport.Actor).managerStatus.AddBicorn(nCount);
  326. }
  327.  
  328. exec function AddBoomslang (int nCount)
  329. {
  330.   harry(Viewport.Actor).managerStatus.AddBoomslang(nCount);
  331. }
  332.  
  333. exec function AddNimbus (int nCount)
  334. {
  335.   harry(Viewport.Actor).managerStatus.AddNimbus(nCount);
  336. }
  337.  
  338. exec function AddQArmor (int nCount)
  339. {
  340.   harry(Viewport.Actor).managerStatus.AddQArmor(nCount);
  341. }
  342.  
  343. exec function AddPotions (int nCount)
  344. {
  345.   harry(Viewport.Actor).managerStatus.AddPotions(nCount);
  346. }
  347.  
  348. exec function AddBeans (int nCount)
  349. {
  350.   harry(Viewport.Actor).managerStatus.AddBeans(nCount);
  351. }
  352.  
  353. exec function AddHealth (int nCount)
  354. {
  355.   harry(Viewport.Actor).managerStatus.AddHealth(nCount);
  356. }
  357.  
  358. exec function AddHealthPotential (int nCount)
  359. {
  360.   harry(Viewport.Actor).managerStatus.AddHealthPotential(nCount);
  361. }
  362.  
  363. exec function AddLock1 (int nCount)
  364. {
  365.   harry(Viewport.Actor).managerStatus.AddLock1(nCount);
  366. }
  367.  
  368. exec function AddLock2 (int nCount)
  369. {
  370.   harry(Viewport.Actor).managerStatus.AddLock2(nCount);
  371. }
  372.  
  373. exec function AddLock3 (int nCount)
  374. {
  375.   harry(Viewport.Actor).managerStatus.AddLock3(nCount);
  376. }
  377.  
  378. exec function AddLock4 (int nCount)
  379. {
  380.   harry(Viewport.Actor).managerStatus.AddLock4(nCount);
  381. }
  382.  
  383. exec function ShowLock1Count ()
  384. {
  385.   harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock1Count()));
  386. }
  387.  
  388. exec function ShowLock2Count ()
  389. {
  390.   harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock2Count()));
  391. }
  392.  
  393. exec function ShowLock3Count ()
  394. {
  395.   harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock3Count()));
  396. }
  397.  
  398. exec function ShowLock4Count ()
  399. {
  400.   harry(Viewport.Actor).ClientMessage(string(harry(Viewport.Actor).managerStatus.GetLock4Count()));
  401. }
  402.  
  403. exec function GiveCardToHarry (int nCardId)
  404. {
  405.   harry(Viewport.Actor).managerStatus.GiveCardToHarry(nCardId);
  406. }
  407.  
  408. exec function GiveAllCardsToHarry ()
  409. {
  410.   harry(Viewport.Actor).managerStatus.GiveAllCardsToHarry();
  411. }
  412.  
  413. exec function GiveCardToVendors (int nCardId)
  414. {
  415.   harry(Viewport.Actor).managerStatus.GiveCardToVendors(nCardId);
  416. }
  417.  
  418. exec function GiveSpell (string Str)
  419. {
  420.   harry(Viewport.Actor).AddToSpellBookByString(Str);
  421. }
  422.  
  423. exec function GiveAllSpells ()
  424. {
  425.   harry(Viewport.Actor).AddAllSpellsToSpellBook();
  426. }
  427.  
  428. exec function TakeAllSpells ()
  429. {
  430.   harry(Viewport.Actor).ClearSpellBook();
  431. }
  432.  
  433. exec function ArtTest ()
  434. {
  435.   local harry PlayerHarry;
  436.   local StatusManager managerStatus;
  437.   local StatusGroup sg;
  438.   local ChallengeScoreManager ChallengeScore;
  439.  
  440.   PlayerHarry = harry(Viewport.Actor);
  441.   managerStatus = PlayerHarry.managerStatus;
  442.   sg = managerStatus.GetStatusGroup(Class'StatusGroupQGear');
  443.   sg.GameEffectType = sg.2;
  444.   sg.CurrEffectType = sg.2;
  445.   sg = managerStatus.GetStatusGroup(Class'StatusGroupPotionIngr');
  446.   sg.GameEffectType = sg.2;
  447.   sg.CurrEffectType = sg.2;
  448.   sg = managerStatus.GetStatusGroup(Class'StatusGroupPolyIngr');
  449.   sg.GameEffectType = sg.2;
  450.   sg.CurrEffectType = sg.2;
  451.   sg = managerStatus.GetStatusGroup(Class'StatusGroupPotions');
  452.   sg.GameEffectType = sg.2;
  453.   sg.CurrEffectType = sg.2;
  454.   sg = managerStatus.GetStatusGroup(Class'StatusGroupJellybeans');
  455.   sg.GameEffectType = sg.2;
  456.   sg.CurrEffectType = sg.2;
  457.   sg = managerStatus.GetStatusGroup(Class'StatusGroupHousePoints');
  458.   sg.GameEffectType = sg.2;
  459.   sg.CurrEffectType = sg.2;
  460.   sg = managerStatus.GetStatusGroup(Class'StatusGroupLocks');
  461.   sg.GameEffectType = sg.2;
  462.   sg.CurrEffectType = sg.2;
  463.   sg = managerStatus.GetStatusGroup(Class'StatusGroupWizardCards');
  464.   sg.GameEffectType = sg.2;
  465.   sg.CurrEffectType = sg.2;
  466.   sg.IncrementCount(Class'StatusItemBronzeCards',1);
  467.   sg = managerStatus.GetStatusGroup(Class'StatusGroupStars');
  468.   sg.GameEffectType = sg.2;
  469.   sg.CurrEffectType = sg.2;
  470.   sg.IncrementCount(Class'StatusItemStars',4);
  471.   AddNimbus(1);
  472.   AddQArmor(1);
  473.   AddWBark(1249);
  474.   AddFMucus(2);
  475.   AddBicorn(1);
  476.   AddBoomslang(1);
  477.   AddPotions(99);
  478.   AddBeans(342);
  479.   AddHealthPotential(500);
  480.   AddHealth(-150);
  481.   AddHPointsG(1436);
  482.   GiveAllCardsToHarry();
  483.   ChallengeScore = ChallengeScoreManager(PlayerHarry.FancySpawn(Class'ChallengeScoreManager'));
  484.   ChallengeScore.BeginChallenge();
  485. }
  486.  
  487. exec function ShowTimer (bool bShow)
  488. {
  489.   local CountdownTimerManager TimerManager;
  490.  
  491.   foreach Viewport.Actor.AllActors(Class'CountdownTimerManager',TimerManager)
  492.   {
  493.     TimerManager.bShowNumericTime = bShow;
  494.   }
  495. }
  496.  
  497. exec function DrawScale (float fScale)
  498. {
  499.   harry(Viewport.Actor).DrawScale = fScale;
  500. }
  501.  
  502. exec function Fatness (int iFatness)
  503. {
  504.   harry(Viewport.Actor).Fatness = bool(iFatness);
  505. }
  506.  
  507. exec function Opacity (float fOpacity)
  508. {
  509.   harry(Viewport.Actor).Opacity = fOpacity;
  510. }
  511.  
  512. exec function GoyleMode ()
  513. {
  514.   harry(Viewport.Actor).bIsGoyle =  !harry(Viewport.Actor).bIsGoyle;
  515.   harry(Viewport.Actor).SetNewMesh();
  516. }
  517.  
  518. exec function FPSMode ()
  519. {
  520.   harry(Viewport.Actor).Cam.SetDistance(0.0);
  521.   harry(Viewport.Actor).Cam.SetZOffset(32.0);
  522.   harry(Viewport.Actor).Opacity = 0.0;
  523. }
  524.  
  525. exec function SwordMode ()
  526. {
  527.   harry(Viewport.Actor).ToggleUseSword();
  528.   if ( harry(Viewport.Actor).bHarryUsingSword )
  529.   {
  530.     harry(Viewport.Actor).bMSword = True;
  531.     harry(Viewport.Actor).makeTarget();
  532.     harry(Viewport.Actor).SpellCursor.bSpellCursorAlwaysOn = True;
  533.   } else {
  534.     harry(Viewport.Actor).bMSword = False;
  535.     harry(Viewport.Actor).SpellCursor.bSpellCursorAlwaysOn = False;
  536.     harry(Viewport.Actor).SpellCursor.EnableEmission(False);
  537.     harry(Viewport.Actor).TurnOffSpellCursor();
  538.   }
  539. }
  540.  
  541. exec function DuelingMode ()
  542. {
  543.   if ( harry(Viewport.Actor).bInDuelingMode )
  544.   {
  545.     harry(Viewport.Actor).TurnOnDuelingMode(None);
  546.   } else {
  547.     harry(Viewport.Actor).TurnOffDuelingMode();
  548.   }
  549. }
  550.  
  551. exec function LangBrowser ()
  552. {
  553.   menuBook.OpenBook("Lang");
  554. }
  555.  
  556. exec function ShowPos ()
  557. {
  558.   bShowPos =  !bShowPos;
  559. }
  560.  
  561. exec function giveAllCards ()
  562. {
  563.   GiveAllCardsToHarry();
  564. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement