XIII
Class XIIICheatManager

source: C:\XIII\XIII\Classes\XIIICheatManager.uc
Core.Object
   |
   +--Engine.CheatManager
      |
      +--XIII.XIIICheatManager
Direct Known Subclasses:None

class XIIICheatManager
extends Engine.CheatManager

//----------------------------------------------------------- // //-----------------------------------------------------------

Function Summary
 void AllBosses()
     
//_____________________________________________________________________________
exec 
 void AmbiDX()
     
//_____________________________________________________________________________
 void Armory()
     
//_____________________________________________________________________________
// ELR :Cheat: Code for givin armors
exec 
 void CheckInventory()
     
//_____________________________________________________________________________
exec 
 void ClearSpecialMsg()
     
//_____________________________________________________________________________
 void DandD()
     
//_____________________________________________________________________________
// Deaf and Dumb
exec 
 void Diff(int i)
     
//_____________________________________________________________________________
 void EquipMe()
     
//_____________________________________________________________________________
// ELR :Cheat: Code for givin all equipment & Skills
exec 
 void HealMe(int A)
     
//_____________________________________________________________________________
 void ImALoser()
     
//_____________________________________________________________________________
 void ImAWinner()
     
//_____________________________________________________________________________
 void ImAnAlien()
     
//_____________________________________________________________________________
 void Itemry()
     
//_____________________________________________________________________________
// ELR :Cheat: Code for givin armors
exec 
 void KillMI()
     
//_____________________________________________________________________________
exec 
 void LetMeBreathe()
     
//_____________________________________________________________________________
 void LetMeHeal()
     
//_____________________________________________________________________________
 void LetMePickLocks()
     
//_____________________________________________________________________________
 void LetMeSnipe()
     
//_____________________________________________________________________________
 void LetMeStun()
     
//_____________________________________________________________________________
 void LoadedSoldiers()
     
//_____________________________________________________________________________
// Loaded, increase Health a lot to test
exec 
 void LogInventory()
     
//_____________________________________________________________________________
 void LogSoldier()
     
//_____________________________________________________________________________
exec 
 void MSkinListInfo()
     
//_____________________________________________________________________________
exec 
 void MapListInfo()
     
//_____________________________________________________________________________
exec 
 void MaxAmmo()
     
//_____________________________________________________________________________
 void NOAG()
     
//_____________________________________________________________________________
exec 
 void NeuNeu()
     
//_____________________________________________________________________________
exec 
 void Nuke()
     
//_____________________________________________________________________________
 void Powery()
     
//_____________________________________________________________________________
// ELR :Cheat: Code for givin all skills
exec 
 void QLoad(int i)
     
//_____________________________________________________________________________
 void QSave(int i)
     
//_____________________________________________________________________________
 void SuperDeform()
     
//_____________________________________________________________________________
 void SuperHero(float f)
     
//_____________________________________________________________________________
// Loaded, increase Health a lot to test
 void WeHaveTheLook()
     
//_____________________________________________________________________________
exec 
 void Weaponry()
     
//_____________________________________________________________________________
// ELR :Cheat: Code for givin weapons
exec 



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class XIIICheatManager extends CheatManager within PlayerController;
00005	
00006	/*
00007	//_____________________________________________________________________________
00008	exec function MapListInfo()
00009	{
00010	//    local MapList MyMapList;
00011	    local int i, NbMaps;
00012	
00013	    NbMaps = class'MapList'.default.MapListInfo.Length;
00014	    Log("STATIC MapList NbMaps="$NbMaps);
00015	    if ( NbMaps > 0 )
00016	    {
00017	      for (i=0; i<NbMaps; i++)
00018	        Log("  "$i$" - "$class'MapList'.default.MapListInfo[i].MapReadableName@"("$class'MapList'.default.MapListInfo[i].MapUnrName$") Nb="$class'MapList'.default.MapListInfo[i].NbPlayers);
00019	    }
00020	}
00021	*/
00022	/*
00023	//_____________________________________________________________________________
00024	exec function MSkinListInfo()
00025	{
00026	    local int i, NbSkins;
00027	
00028	    NbSkins = class'MeshSkinList'.default.MeshSkinListInfo.Length;
00029	    Log("STATIC SkinList NbSkins="$NbSkins);
00030	    if ( NbSkins > 0 )
00031	    {
00032	      for (i=0; i<NbSkins; i++)
00033	        Log("  "$i$" - "$class'MeshSkinList'.default.MeshSkinListInfo[i].SkinReadableName@"("$class'MeshSkinList'.default.MeshSkinListInfo[i].SkinCode$"|"$class'MeshSkinList'.default.MeshSkinListInfo[i].SkinName$")");
00034	    }
00035	
00036	}
00037	*/
00038	/*
00039	//_____________________________________________________________________________
00040	exec function NOAG()
00041	{
00042	    local MapInfo MI;
00043	    local int i;
00044	
00045	    MI = XIIIGameInfo(Level.Game).MapInfo;
00046	    if (MI.Objectif.Length > 0)
00047	    {
00048	      for (i=0; i < MI.Objectif.Length; i++)
00049	      {
00050	        MI.Objectif[i].bAntiGoal = false;
00051	      }
00052	    }
00053	}
00054	*/
00055	
00056	//_____________________________________________________________________________
00057	exec function Diff(int i)
00058	{
00059	    Level.Game.Difficulty = i;
00060	    MyHud.Message(none, "New difficulty level ="$i, 'CHEAT');
00061	}
00062	
00063	//_____________________________________________________________________________
00064	exec function ClearSpecialMsg()
00065	{
00066	  local XIIIBaseHUD Hud;
00067	  local HudMessage HMsg;
00068	
00069	  Hud = XIIIBaseHUD(MyHud);
00070	  if ( Hud != none )
00071	  {
00072	    //Log("clearing all special msg in HUD "$HUD);
00073	    for ( HMsg = Hud.HudMsg; HMsg!=none; HMsg = HMsg.NextHudMsg)
00074	    {
00075	      //Log("         -"$HMsg);
00076	      HMsg.bIsSpecial = false;
00077	      HMsg.MyMessage.EndOfLife = Level.TimeSeconds;
00078	    }
00079	  }
00080	//  else
00081	//    Log("PB, no hud found to clear special messages");
00082	}
00083	
00084	//_____________________________________________________________________________
00085	exec function SuperDeform()
00086	{
00087	    local pawn P;
00088	
00089	    MyHud.Message(none, "SUPER DEFORM !!", 'CHEAT');
00090	    foreach allactors(class'Pawn',P)
00091	    {
00092	      P.SetBoneScale(32,3,'X Head');
00093	      P.SetBoneScale(31,0.66,'X Pelvis');
00094	      P.SetBoneScale(34,3,'X L FOOT'); // X R (FOOT)or(TOE0)
00095	      P.SetBoneScale(33,3,'X R FOOT'); // X L (FOOT)or(TOE0)
00096	  	  P.SetCollisionSize(P.CollisionRadius,P.CollisionHeight*0.66);
00097	    }
00098	}
00099	
00100	//_____________________________________________________________________________
00101	exec function Nuke()
00102	{
00103	    local pawn P;
00104	
00105	    MyHud.Message(none, "NU|<L34R B|_45T !!", 'CHEAT');
00106	    foreach allactors(class'Pawn',P)
00107	    {
00108	      if ( !P.IsPlayerPawn() )
00109	        P.TakeDamage(50000, P, P.Location, vect(0,0,0), class'XIII.DTSureStunned' );
00110	    }
00111	}
00112	
00113	//_____________________________________________________________________________
00114	exec function MaxAmmo()
00115	{
00116	    local Inventory Inv;
00117	
00118	    for( Inv=Pawn.Inventory; Inv!=None; Inv=Inv.Inventory )
00119	      if (Ammunition(Inv)!=None)
00120	        Ammunition(Inv).AmmoAmount = Ammunition(Inv).MaxAmmo;
00121	}
00122	
00123	//_____________________________________________________________________________
00124	exec function LogInventory()
00125	{
00126	  local inventory I;
00127	
00128	  log(" -- Begin Inventory List");
00129	  I=Pawn.Inventory;
00130	  while ( I != none )
00131	  {
00132	    if ( Ammunition(I) != none )
00133	      log("   Inv="$I$" Ammo="$Ammunition(I).AmmoAmount);
00134	    else if ( I.Isa('PowerUps') )
00135	      log("   Inv="$I$" charges="$PowerUps(I).Charge);
00136	    else if ( I.Isa('Armor') )
00137	      log("   Inv="$I$" charges="$Armor(I).Charge);
00138	    else if ( Weapon(I) != none )
00139	      log("   Inv="$I@" Ammo="$Weapon(I).AmmoType@"AltAmmo="$Weapon(I).AltAmmoType);
00140	    else
00141	      log("   Inv="$I);
00142	
00143	    I=I.Inventory;
00144	  }
00145	  log(" -- End Inventory List");
00146	}
00147	
00148	/*
00149	//_____________________________________________________________________________
00150	exec function CheckInventory()
00151	{
00152	  local inventory I;
00153	  local pawn P;
00154	
00155	  log(" -- Begin MAP Inventory List");
00156	  foreach allactors(class'inventory', I)
00157	  {
00158	    if ( Ammunition(I) != none )
00159	      log("   Inv="$I@"Owner="$I.Owner@"Ammo="$Ammunition(I).AmmoAmount);
00160	    else if ( I.Isa('PowerUps') )
00161	      log("   Inv="$I@"Owner="$I.Owner@"charges="$PowerUps(I).Charge);
00162	    else if ( I.Isa('Armor') )
00163	      log("   Inv="$I@"Owner="$I.Owner@"charges="$Armor(I).Charge);
00164	    else if ( Weapon(I) != none )
00165	      log("   Inv="$I@"Owner="$I.Owner@"Ammo="$Weapon(I).AmmoType@"AltAmmo="$Weapon(I).AltAmmoType);
00166	    else
00167	      log("   Inv="$I@"Owner="$I.Owner);
00168	    I=I.Inventory;
00169	  }
00170	  log(" -- End MAP Inventory List");
00171	  log(" -- Begin PAWN Inventory List");
00172	  foreach allactors(class'pawn', P)
00173	  {
00174	    log("  -       PAWN"@P);
00175	    I=P.Inventory;
00176	    while ( I != none )
00177	    {
00178	      if ( Ammunition(I) != none )
00179	        log("   Inv="$I$" Ammo="$Ammunition(I).AmmoAmount);
00180	      else if ( I.Isa('PowerUps') )
00181	        log("   Inv="$I$" charges="$PowerUps(I).Charge);
00182	      else if ( I.Isa('Armor') )
00183	        log("   Inv="$I$" charges="$Armor(I).Charge);
00184	      else if ( Weapon(I) != none )
00185	        log("   Inv="$I@" Ammo="$Weapon(I).AmmoType@"AltAmmo="$Weapon(I).AltAmmoType);
00186	      else
00187	        log("   Inv="$I);
00188	      I=I.Inventory;
00189	    }
00190	  }
00191	  log(" -- End PAWN Inventory List");
00192	}
00193	*/
00194	
00195	//_____________________________________________________________________________
00196	exec function QSave(int i)
00197	{
00198	    //Level.Game.WriteSlot(i, PlayerReplicationInfo.PlayerName$"-"$Level.Title$"- CheatSave");
00199	}
00200	
00201	//_____________________________________________________________________________
00202	exec function QLoad(int i)
00203	{
00204	    /*
00205	    if ( !IsSlotEmpty(i) )
00206	      Level.Game.ReadSlot(i);
00207	    */
00208	}
00209	
00210	/*
00211	//_____________________________________________________________________________
00212	exec function KillMI()
00213	{
00214	    XIIIGameInfo(Level.Game).MapInfo.Destroy();
00215	}
00216	*/
00217	
00218	//_____________________________________________________________________________
00219	exec function ImAWinner()
00220	{
00221	    Level.Game.EndGame( PlayerReplicationInfo, "GoalComplete" );
00222	    if (XIIIGameInfo(Level.Game).MapInfo != none )
00223	    {
00224	      XIIIGameInfo(Level.Game).MapInfo.DoTravel();
00225	    }
00226	}
00227	
00228	//_____________________________________________________________________________
00229	exec function ImALoser()
00230	{
00231	    Level.Game.EndGame( PlayerReplicationInfo, "GoalIncomplete" );
00232	}
00233	
00234	//_____________________________________________________________________________
00235	exec function AmbiDX()
00236	{
00237	    GiveItem(class'DualWeaponSkill');
00238	}
00239	
00240	//_____________________________________________________________________________
00241	exec function LetMeBreathe()
00242	{
00243	    GiveItem(class'BreathSkill');
00244	}
00245	
00246	//_____________________________________________________________________________
00247	exec function LetMeHeal()
00248	{
00249	    GiveItem(class'FirstAidSkill');
00250	}
00251	
00252	//_____________________________________________________________________________
00253	exec function HealMe(int A)
00254	{
00255	    XIIIPawn(Pawn).Heal(A);
00256	}
00257	
00258	/*
00259	//_____________________________________________________________________________
00260	exec function WeHaveTheLook()
00261	{
00262	  local Inventory NewItem;
00263	  local xiiipawn XP;
00264	
00265	  foreach allactors(class'xiiipawn', XP)
00266	  {
00267	    if( XP.FindInventoryType(class'Beret')==None )
00268	    {
00269	      NewItem = Spawn(class'Beret',,,XP.Location);
00270	      if( NewItem != None )
00271	        NewItem.GiveTo(XP);
00272	    }
00273	  }
00274	}
00275	*/
00276	
00277	//_____________________________________________________________________________
00278	exec function ImAnAlien()
00279	{
00280	    GiveItem(class'SixSenseSkill');
00281	}
00282	
00283	//_____________________________________________________________________________
00284	exec function LetMeSnipe()
00285	{
00286	    GiveItem(class'SniperSkill');
00287	}
00288	
00289	//_____________________________________________________________________________
00290	exec function LetMeStun()
00291	{
00292	    GiveItem(class'StunningSkill');
00293	}
00294	
00295	//_____________________________________________________________________________
00296	exec function LetMePickLocks()
00297	{
00298	    GiveItem(class'PickLockSkill');
00299	}
00300	
00301	/*
00302	//_____________________________________________________________________________
00303	// ELR :Cheat: Code for givin all skills
00304	exec function Powery()
00305	{
00306	    MyHud.Message(none, "CHEATER !!!", 'CHEAT');
00307	    LetMeBreathe();
00308	    ImAnAlien();
00309	    LetMePickLocks();
00310	    LetMeSnipe();
00311	    LetMeHeal();
00312	    AmbiDx();
00313	    LetMeStun();
00314	}
00315	*/
00316	
00317	//_____________________________________________________________________________
00318	// ELR GiveWeapon, Called by the Weaponry CheatCode
00319	function GiveWeapon(class<Weapon> WeapClass)
00320	{
00321	  local Weapon newWeapon;
00322	
00323	  NewWeapon = Spawn(WeapClass,,,Pawn.Location);
00324	  NewWeapon.Transfer(Pawn);
00325	}
00326	
00327	//_____________________________________________________________________________
00328	// ELR GiveItem, Called by the Itemry CheatCode
00329	function GiveSomething(class<Inventory> ItemClass)
00330	{
00331	  local Inventory NewItem;
00332	
00333	  NewItem = Spawn(ItemClass,,,Pawn.Location);
00334	  NewItem.Transfer(Pawn);
00335	}
00336	
00337	//_____________________________________________________________________________
00338	// ELR GiveItem, Called by the Itemry CheatCode
00339	function GiveItem(class<PowerUps> ItemClass)
00340	{
00341	  local PowerUps NewItem;
00342	
00343	  NewItem = Spawn(ItemClass,,,Pawn.Location);
00344	  NewItem.Transfer(Pawn);
00345	}
00346	
00347	//_____________________________________________________________________________
00348	// ELR GiveArmor, Called by the Armory CheatCode
00349	function GiveArmor(class<Armor> ArmorClass)
00350	{
00351	  local armor newArmor;
00352	
00353	  NewArmor = Spawn(ArmorClass,,,Pawn.Location);
00354	  NewArmor.Transfer(Pawn);
00355	}
00356	
00357	/*
00358	//_____________________________________________________________________________
00359	// ELR :Cheat: Code for givin weapons
00360	exec function Weaponry()
00361	{
00362	    local WeaponPickup WP;
00363	
00364	    MyHud.Message(none, "CHEATER !!!", 'CHEAT');
00365	    foreach allactors(class'WeaponPickup', WP)
00366	      GiveWeapon(class<Weapon>(WP.InventoryType));
00367	}
00368	*/
00369	
00370	/*
00371	//_____________________________________________________________________________
00372	// ELR :Cheat: Code for givin armors
00373	exec function Armory()
00374	{
00375	    local ArmorPickup AP;
00376	
00377	    MyHud.Message(none, "CHEATER !!!", 'CHEAT');
00378	    foreach allactors(class'ArmorPickup', AP)
00379	      GiveArmor(class<Armor>(AP.InventoryType));
00380	}
00381	*/
00382	
00383	/*
00384	//_____________________________________________________________________________
00385	// ELR :Cheat: Code for givin armors
00386	exec function Itemry()
00387	{
00388	    local XIIIPickup IP;
00389	
00390	    MyHud.Message(none, "CHEATER !!!", 'CHEAT');
00391	    foreach allactors(class'XIIIPickup', IP)
00392	      GiveItem(class<PowerUps>(IP.InventoryType));
00393	}
00394	*/
00395	
00396	/*
00397	//_____________________________________________________________________________
00398	// ELR :Cheat: Code for givin all equipment & Skills
00399	exec function EquipMe()
00400	{
00401	    local Pickup P;
00402	
00403	    Itemry();
00404	    Weaponry();
00405	    Armory();
00406	    Powery();
00407	    MaxAmmo();
00408	}
00409	*/
00410	
00411	//_____________________________________________________________________________
00412	// Loaded, increase Health a lot to test
00413	exec function SuperHero(float f)
00414	{
00415	    local int i;
00416	
00417	    MyHud.Message(none, "SuperHero health factor "$f, 'CHEAT');
00418	    XIIIPawn(Pawn).Health *= f;
00419	    XIIIPawn(Pawn).MaxHealth *= f;
00420	    XIIIPawn(Pawn).default.Health *= f;
00421	}
00422	
00423	/*
00424	//_____________________________________________________________________________
00425	exec function NeuNeu()
00426	{
00427	    local pawn XIDpawn;
00428	
00429	    MyHud.Message(none, "All soldiers now in NEUNEU Mode :)", 'CHEAT');
00430	    foreach allactors(class'Pawn',XIDpawn)
00431	    {
00432	      if ( XIDPawn.IsA('BaseSoldier') )
00433	      {
00434	        XIDPawn.controller.bstasis=true;
00435	        XIDPawn.bstasis=true;
00436	      }
00437	    }
00438	}
00439	*/
00440	
00441	/*
00442	//_____________________________________________________________________________
00443	exec function AllBosses()
00444	{
00445	    local XIIIPawn XPawn;
00446	
00447	    MyHud.Message(none, "All soldiers are now bosses :)", 'CHEAT');
00448	    foreach allactors(class'XIIIPawn',XPawn)
00449	    {
00450	      if ( XPawn != none )
00451	        XPawn.bBoss = true;
00452	    }
00453	}
00454	*/
00455	
00456	/*
00457	//_____________________________________________________________________________
00458	// Deaf and Dumb
00459	exec function DandD()
00460	{
00461	    local pawn XIDpawn;
00462	
00463	    MyHud.Message(none, "All soldiers now Deaf and Dumb :)", 'CHEAT');
00464	    foreach allactors(class'Pawn',XIDpawn)
00465	    {
00466	      if ( XIDPawn.IsA('BaseSoldier') || XIDPawn.IsA('MitraillGuard') )
00467	      {
00468	        XIDPawn.SightRadius=0.0;
00469	        XIDPawn.HearingThreshold=0.0;
00470	      }
00471	    }
00472	}
00473	*/
00474	
00475	/*
00476	//_____________________________________________________________________________
00477	// Loaded, increase Health a lot to test
00478	exec function LoadedSoldiers()
00479	{
00480	    local pawn XIDpawn;
00481	    local int i;
00482	
00483	    MyHud.Message(none, "All soldiers now have alot of pvs", 'CHEAT');
00484	    foreach allactors(class'Pawn',XIDpawn)
00485	    {
00486	      if ( XIDPawn.IsA('BaseSoldier') || XIDPawn.IsA('MitraillGuard') )
00487	      {
00488	        if ( XIIIPawn(XIDPawn) != none )
00489	          XIIIPawn(XIDPawn).Health *= 50;
00490	      }
00491	    }
00492	}
00493	*/
00494	/*
00495	//_____________________________________________________________________________
00496	exec function LogSoldier()
00497	{
00498	    local pawn XIDpawn;
00499	
00500	//    MyHud.Message(none, "All soldiers now Deaf and Dumb :)", 'CHEAT');
00501	    foreach allactors(class'Pawn',XIDpawn)
00502	    {
00503	      if ( XIDPawn.IsA('BaseSoldier') )
00504	        XIDPawn.UsedBy(XIDPawn);
00505	    }
00506	}
00507	*/
00508	
00509	
00510	
00511	defaultproperties
00512	{
00513	}

End Source Code