Cheats: Difference between revisions

1,938 bytes added ,  Yesterday at 22:55
m
minor wording and layout tweaks
(linking to added cheats, minor rewordings, added Modding tutorials cat. since this gives scripting advice too)
m (minor wording and layout tweaks)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
As with most games, Oni comes with its own range of cheats. When playing the PC version (Macintosh or Windows), you are supposed to unlock them by finishing the game. However, PC cheats can be unlocked by hacking [[persist.dat]] manually or using [[OSGE|Oni Savegame Editor]]. Below you will find all built-in cheats for the game. Note that there are additional cheats added by the [[Daodan DLL#Added cheat codes|Daodan DLL]] and the [[AE:FERAL|Intel Mac build]] of Oni.
Like most games, Oni comes with a range of cheat codes. The most famous of these is "shapeshifter", featured in the [[Quotes/Credits|end credits]], which allows playthroughs as other characters. This cheat is considered to be the biggest contribution to Oni's replayability in vanilla form (in other words, before installing mods with the [[Anniversary Edition]]).


==PC==
==PC==
While playing a game, press F1 (or whatever is [[Customizing/Binding|bound]] to '''pausescreen''') and type one or more of the following (the confirmation message will appear if done correctly).
When playing the vanilla Mac or Windows version of Oni, you are required to finish the game in order to unlock cheats, but the cheats can also be unlocked prematurely by editing [[persist.dat|the save-game file]]. However, if you have the [[Daodan DLL]] installed in Windows, or are using an [[FERAL|Intel Mac build]] of Oni, cheats will be unlocked even when the game has not been beaten. (Note that the Anniversary Edition automatically installs the Daodan DLL in Windows and the Intel build on Macs.)
 
While playing a game, press F1 (or whatever is [[Customizing/Binding|bound]] to "pausescreen") and type one or more of the following (the confirmation message will appear if done correctly).
 
Note that there are also '''additional cheats''' added by the Daodan DLL (see [[Daodan DLL#Added cheat codes|here]]) and the Intel Mac build of Oni (see [[FERAL#Behavior|here]]).
{| border="1" cellpadding="5" cellspacing="0" style="margin-left:auto; margin-right:auto;"
{| border="1" cellpadding="5" cellspacing="0" style="margin-left:auto; margin-right:auto;"
|-style="background:aqua;"
|-style="background:aqua;"
!Input sequence!!Confirmation message
!Input sequence
!Confirmation message
!Effect
!Effect
!Persists on level load!!Scripting equivalent
!Persists on level load
!Scripting equivalent
|-
|-
!shapeshifter !! Change Characters Enabled/Disabled
!shapeshifter !! Change Characters Enabled/Disabled
|style="background:lime"|While playing, press F8 to cycle forwards or Shift+F8 to go backwards
|style="background:palegreen"|While playing, press F8 to cycle forwards or Shift+F8 to go backwards
|YES || style="background:black"|
|align=center|YES || style="background:palegreen"|<tt>chr_set_class(0, ONCC_name);</tt> '''(3)'''
|-
|-
!liveforever!!Invincibility Enabled/Disabled
!liveforever
|style="background:fuchsia"|Konoko takes no melee, weapon or falling damage  
!Invincibility Enabled/Disabled
|NO||style="background:lime"|<tt>invincible=1; '''/''' invincible=0;</tt> '''(1)'''
|style="background:lightskyblue"|Konoko takes no melee, weapon or falling damage  
|align=center|NO||style="background:palegreen"|<tt>invincible=1; '''/''' invincible=0;</tt> '''(1)'''
|-
|-
!touchofdeath!!Omnipotence Enabled/Disabled
!touchofdeath
|style="background:fuchsia"|Konoko kills enemies with any combat move
!Omnipotence Enabled/Disabled
|NO||<tt>omnipotent=1; omnipotent=0;</tt>
|style="background:lightskyblue"|Konoko kills enemies in a single hit
|align=center|NO||<tt>omnipotent=1; '''/''' omnipotent=0;</tt>
|-
|-
!canttouchthis!!Unstoppable Enabled/Disabled
!canttouchthis
|style="background:fuchsia"|Konoko can't be stunned, thrown, knocked down or blown up
!Unstoppable Enabled/Disabled
|NO||style="background:lime"|<tt>unstoppable=1; '''/''' unstoppable=0;</tt> '''(1)'''
|style="background:lightskyblue"|Konoko can't be stunned, thrown, knocked down or blown up
|align=center|NO||style="background:palegreen"|<tt>unstoppable=1; '''/''' unstoppable=0;</tt> '''(1)'''
|-
|-
!fatloot!!Fat Loot Received
!fatloot
|style="background:lime"|Player's quantity of ammo and hypos is set to max
!Fat Loot Received
|style="background:black"| ||style="background:yellow"|<tt>give_powerup</tt> '''(1)'''
|style="background:palegreen"|Player's quantity of ammo and hypos is set to max
|align=center|N/A||style="background:lightcoral"|<tt> chr_givepowerup '''/''' give_powerup</tt> '''(1)'''
|-
|-
!glassworld!!Glass Furniture Enabled/Disabled
!glassworld
!Glass Furniture Enabled/Disabled
|Makes most objects breakable with gunfire or shockwaves
|Makes most objects breakable with gunfire or shockwaves
|YES||<tt>p3_furniture_breakable=1;<br>p3_furniture_breakable=0;</tt>
|align=center|YES||<tt>p3_furniture_breakable=1; '''/''' p3_furniture_breakable=0;</tt>
|-
|-
!winlevel!!Instantly Win Level
!winlevel
!Instantly Win Level
|Level is won upon exit of the pause screen
|Level is won upon exit of the pause screen
|style="background:black"| ||style="background:yellow"|<tt>win</tt> '''(2)'''
|align=center|N/A||style="background:lightcoral"|<tt>win</tt> '''(2)'''
|-
|-
!loselevel!!Instantly Lose Level
!loselevel
!Instantly Lose Level
|Level is lost upon exit of the pause screen
|Level is lost upon exit of the pause screen
|style="background:black"| ||style="background:yellow"|<tt>lose</tt> '''(2)'''
|align=center|N/A||style="background:lightcoral"|<tt>lose</tt> '''(2)'''
|-
|-
!bighead!!Big Head Enabled/Disabled
!bighead
!Big Head Enabled/Disabled
|Everybody's head is 4 times its normal size
|Everybody's head is 4 times its normal size
|NO||<tt>chr_big_head=1; '''/''' chr_big_head= 0;<br>chr_big_head_amount=4;</tt>
|align=center|NO||<tt>chr_big_head=1; '''/''' chr_big_head=0;<br>chr_big_head_amount=4;</tt>
|-
|-
!minime!!Mini Mode Enabled/Disabled
!minime
|style="background:lime"|Player's size is 0.25 times normal
!Mini Mode Enabled/Disabled
|NO||style="background:fuchsia"|<tt>chr_mini_me= 1; '''/''' chr_mini_me= ;<br>chr_mini_me_amount=0.25;</tt>
|style="background:palegreen"|Player's size is 0.25 times normal
|align=center|NO||style="background:lightskyblue"|<tt>chr_mini_me=1; '''/''' chr_mini_me=0;<br>chr_mini_me_amount=0.25;</tt>
|-
|-
!superammo!!Super Ammo Mode Enabled/Disabled
!superammo
|style="background:lime"|Player's guns are always full with ammo
!Super Ammo Mode Enabled/Disabled
|NO||style="background:black"|
|style="background:palegreen"|Player's guns are always full with ammo
|align=center|NO||style="background:darkgray"|
|-
|-
!thedayismine!!Developer Mode Enabled/Disabled
!thedayismine
|[[Developer Mode]] (requires [[Daodan DLL]] to enable in Windows)
!Developer Mode Enabled/Disabled
|YES||style="background:black"|
|Toggles [[Developer Mode]] (requires Daodan DLL to enable in Windows)
|align=center|YES||style="background:darkgray"|
|-
|-
!reservoirdogs!!Last Man Standing Enabled/Disabled
!reservoirdogs
!Last Man Standing Enabled/Disabled
|AIs fight amongst themselves
|AIs fight amongst themselves
|YES||style="background:black"|
|align=center|YES||style="background:darkgray"|
|-
|-
!roughjustice!!Gatling Guns Enabled/Disabled
!roughjustice
|style="background:lime"|Player's guns fire X times faster
!Gatling Guns Enabled/Disabled
|YES||style="background:black"|
|style="background:palegreen"|Player's guns fire X times faster
|align=center|YES||style="background:darkgray"|
|-
|-
!chenille!!Daodan Power Enabled/Disabled
!chenille
|style="background:lime"|Player gets permanent Daodan glow and boss shield
!Daodan Power Enabled/Disabled
|NO||style="background:lime"|<tt>chr_super(0, 1); chr_super(0, 0);</tt> '''(2)'''<br><tt>chr_boss_shield(0);</tt>
|style="background:palegreen"|Player gets permanent Daodan glow and boss shield/supershield (see [[#Overpower|tip]])
|align=center|NO||style="background:palegreen"|<tt>chr_super(0, 1); chr_super(0, 0);</tt> '''(2)'''<br><tt>chr_boss_shield(0);</tt>
|-
|-
!behemoth!!Godzilla Mode Enabled/Disabled
!behemoth
|style="background:lime"|Player is (roughly) double-sized
!Godzilla Mode Enabled/Disabled
|NO||style="background:fuchsia"|<tt>chr_mini_me=1; '''/''' chr_mini_me=0;<br>chr_mini_me_amount=2;</tt>
|style="background:palegreen"|Player is (roughly) double-sized
|align=center|NO||style="background:lightskyblue"|<tt>chr_mini_me=1; '''/''' chr_mini_me=0;<br>chr_mini_me_amount=2;</tt>
|-
|-
!elderrune!!Regeneration Enabled/Disabled
!elderrune
|style="background:fuchsia"|Konoko regenerates at the rate of 1 HP/sec
!Regeneration Enabled/Disabled
|YES||style="background:black"|
|style="background:lightskyblue"|Konoko regenerates at the rate of 1 HP/sec
|align=center|YES||style="background:darkgray"|
|-
|-
!moonshadow!!Phase Cloak Enabled/Disabled
!moonshadow
|style="background:lime"|Player gets a permanent Phase Cloak
!Phase Cloak Enabled/Disabled
|NO||style="background:yellow"|<tt>give_powerup(invis, -1);<br>give_powerup(invis, 1);</tt> '''(3)'''
|style="background:palegreen"|Player gets a permanent Phase Cloak
|align=center|NO||style="background:lightcoral"|<tt>give_powerup(invis, -1);<br>give_powerup(invis, 1);</tt> '''(3)'''
|-
|-
!munitionfrenzy!!Weapons Locker Created
!munitionfrenzy
|style="background:lime"|All weapons appear at the player's feet for 15 secs
!Weapons Locker Created
|style="background:black"| ||style="background:black"|
|style="background:palegreen"|All weapons appear at the player's feet for 15 secs
|align=center|N/A||style="background:darkgray"|
|-
|-
!fistsoflegend!!Fists Of Legend Enabled/Disabled
!fistsoflegend
|style="background:fuchsia"|Konoko's combat moves knock enemies back
!Fists Of Legend Enabled/Disabled
|NO||style="background:black"|
|style="background:lightskyblue"|Konoko's combat moves knock enemies back
|align=center|NO||style="background:darkgray"|
|-
|-
!killmequick!!Ultra Mode Enabled/Disabled
!killmequick
|AI don't pause between combos (a little tougher)
!Ultra Mode Enabled/Disabled
|YES||style="background:yellow"|<tt>chr_ultra_mode</tt> '''(4)'''
|AIs don't pause between combos (a little tougher)
|align=center|YES||style="background:lightcoral"|<tt>chr_ultra_mode</tt> '''(4)'''
|-
|-
!carousel!!Slow Motion Enabled/Disabled
!carousel
!Slow Motion Enabled/Disabled
|Permanent slow motion
|Permanent slow motion
|NO||style="background:yellow"|<tt>slowmo</tt> '''(5)'''
|align=center|NO||style="background:lightcoral"|<tt>slowmo</tt> '''(5)'''
|}
|}


===Legend===
===Legend===
====Effect column====
{|
{|
!colspan="2"|Effect description
!style="background:palegreen"|Green
|cheat applies to any character that you <tt>chr_focus</tt> to (via scripting). When you <tt>chr_focus</tt> to another, the effect stays with the old one.
|-
|-
!style="background:lime"|Lime
!style="background:lightskyblue"|Blue
|cheat applies to any character you <tt>chr_focus</tt> to (''via'' scripting). When you <tt>chr_focus</tt> to another, the effect stays with the old one.
|-
!style="background:fuchsia"|Fuchsia
|cheat applies to Konoko even if you <tt>chr_focus</tt> to another character
|cheat applies to Konoko even if you <tt>chr_focus</tt> to another character
|-
|-
Line 111: Line 137:
|cheat isn't player-character-specific
|cheat isn't player-character-specific
|-
|-
!colspan="2"|Scripting equivalent
|}
|-
 
!style="background:black;color:white"|Black
====Scripting equivalent column====
{|
!style="background:darkgray"|Gray
|no equivalent available
|no equivalent available
|-
|-
Line 119: Line 147:
|exact equivalent and that's it
|exact equivalent and that's it
|-
|-
!style="background:fuchsia"|Fuchsia
!style="background:lightskyblue"|Blue
|script only works for Konoko, use <tt>chr_focus</tt> and cheats for other characters
|script only works for Konoko, use <tt>chr_focus</tt> and cheats for other characters
|-
|-
!style="background:lime"|Lime
!style="background:palegreen"|Green
|script given works for Konoko, but other characters (whether you <tt>chr_focus</tt> to them or not) can be done too
|script given works for Konoko, but other characters (whether you <tt>chr_focus</tt> to them or not) can be done too
|-
|-
!style="background:yellow"|Yellow
!style="background:lightcoral"|Red
|no exact equivalent, extra work required
|no exact equivalent, extra work required
|}
|}
===Tips to gamers===
====Overpower====
'''[[chenille]]''' gives you the visual effect of Daodan overpower and a defensive shield, but your combat moves don't deal extra damage. To achieve Daodan overpower mode and stay in it forever, use '''elderrune''' and then use a hypo at full health. Overpower drains at the rate of 1 hit point per second, which is exactly compensated by '''elderrune'''. You're essentially frozen in ''real'' overpower as long as you don't get hurt. You must get down to normal health to take another hypo.


===Tips to scripters===
===Tips to scripters===
====Scripting equivalents====
====Scripting equivalents====
{|
{|
!style="background:lime"|(1)
!style="background:palegreen"|(1)
|Use the <tt>chr_invincible</tt> and <tt>chr_unstoppable</tt> modifiers for generic characters.
|Use the <tt>chr_invincible</tt> and <tt>chr_unstoppable</tt> modifiers for generic characters.
|-
|-
!style="background:lime"|(2)
!style="background:palegreen"|(2)
|The generic <tt>chr_super</tt> modifier is the only way. Only a few characters (Konoko, Muro) have Daodan glow particles.<br>As for the boss shield, <tt>chr_boss_shield</tt> can only ''give'' it to a character (no way to take it away)
|The generic <tt>chr_super</tt> modifier is the only way. Only a few characters (Konoko, Muro) have Daodan glow particles.<br>As for the boss shield, <tt>chr_boss_shield</tt> can only ''give'' it to a character (no way to take it away)
|-
|-
!style="background:yellow"|(1)
!style="background:palegreen"|(3)
|Entering an incorrect class/ONCC name will cause Oni to crash.
|-
!style="background:lightcoral"|(1)
|You can use either of the generic <tt>give_powerup</tt> and <tt>chr_givepowerup</tt> modifiers.
|You can use either of the generic <tt>give_powerup</tt> and <tt>chr_givepowerup</tt> modifiers.
|}
|}
Line 145: Line 180:
**The third argument is the character's ID (0 by default)
**The third argument is the character's ID (0 by default)
*<tt>chr_givepowerup</tt> usage :
*<tt>chr_givepowerup</tt> usage :
**first argument is the character's name or script ID (compulsory)
**first argument is the character's name or script ID (required)
*problem with reproducing the '''fatloot''' effect :
*problem with reproducing the '''fatloot''' effect :
**'''fatloot''' fills up hypos, ammos and cells to a maximum of 6
**'''fatloot''' fills up hypos, ammos and cells to a maximum of 6
Line 153: Line 188:
**''then'' use e.g. <tt>chr_givepowerup(0, hypo, 6)</tt> etc.
**''then'' use e.g. <tt>chr_givepowerup(0, hypo, 6)</tt> etc.
{|
{|
!style="background:yellow"|(2)
!style="background:lightcoral"|(2)
|The engine does not actually call <tt>win</tt> or <tt>lose</tt> here.
|The engine does not actually call <tt>win</tt> or <tt>lose</tt> here.
|}
|}
*So you can not gain 2 custom cheats by redefining <tt>win</tt> and <tt>lose</tt>.
*So you can not gain 2 custom cheats by redefining <tt>win</tt> and <tt>lose</tt>.
{|
{|
!style="background:yellow"|(3)
!style="background:lightcoral"|(3)
|You can use either of the generic <tt>give_powerup</tt> and <tt>chr_givepowerup</tt> modifiers (see above).
|You can use either of the generic <tt>give_powerup</tt> and <tt>chr_givepowerup</tt> modifiers (see above).
|}
|}
Line 169: Line 204:
**''then'' use e.g. <tt>chr_givepowerup(0, invis, -1)</tt>
**''then'' use e.g. <tt>chr_givepowerup(0, invis, -1)</tt>
{|
{|
!style="background:yellow"|(4)
!style="background:lightcoral"|(4)
|You must use the generic <tt>chr_ultra_mode</tt> modifier on every character you want to be "ultra".
|You must use the generic <tt>chr_ultra_mode</tt> modifier on every character you want to be "ultra".
|}
|}
*it doesn't seem to have any visible effect though, so don't bother :)
*it doesn't seem to have any visible effect though, so don't bother :)
{|
{|
!style="background:yellow"|(5)
!style="background:lightcoral"|(5)
|You can use the <tt>slowmo</tt> command, or play with <tt>draw_every_frame</tt> and <tt>draw_every_frame_multiple</tt>.
|You can use the <tt>slowmo</tt> command, or play with <tt>draw_every_frame</tt> and <tt>draw_every_frame_multiple</tt>.
|}
|}
Line 188: Line 223:
*Other cheats like '''fatloot''', '''chenille''', '''munitionfrenzy''' and '''moonshadow''' can only be made useless, not detected.
*Other cheats like '''fatloot''', '''chenille''', '''munitionfrenzy''' and '''moonshadow''' can only be made useless, not detected.


===Tips to gamers===
==PlayStation 2==
====Overpower====
The PS2 version of the game does not need to be beaten in order to unlock cheats. To enter a cheat, start playing the game, press the SELECT button and highlight the HELP button. Then press one of the following button sequences (you'll hear a sound if you did it correctly). You'll notice that the first 6 inputs are always the same "master code" of L2, L1, L2, , , .
*'''chenille''' gives you the visual effect of Daodan overpower, but your combat moves don't deal extra damage.
 
*To ''really'' stay in Daodan overpower forever, use '''elderrune''', then use a hypo at full health.
Compared to the PC cheat code table above with its 22 cheats, there are only 11 cheat codes below. Missing are carousel, canttouchthis, chenille, elderrune, glassworld, killmequick, loselevel, munitionfrenzy, reservoirdogs, roughjustice and thedayismine. That last absence means no Developer Mode (though it's not like you could use the developer console anyway). However, some Dev Mode features such as camera controls are actually available if you have the means to patch the game. See [[Oni (PlayStation 2)#Patches]] for more info on that as well as a skip-movies patch.
*Overpower drains at the rate of 1 hitpoint per second, which is exactly compensated by '''elderrune'''.
*You're then virtually frozen in ''real'' overpower, as long as you don't get hurt. You must get past normal health to take another hypo.


==PlayStation 2==
{| border="1" cellpadding="5" cellspacing="0" style="margin-left:auto; margin-right:auto; text-align:center;"
While playing the game, press the SELECT button and highlight the HELP button. Then enter one of the following (you'll hear a sound if you did it correctly):
{| border="1" cellpadding="5" cellspacing="0" style="margin-left:auto; margin-right:auto;"
|-style="background:aqua;"
|-style="background:aqua;"
!Effect!!Input Sequence
!Effect
!Input Sequence
!PC Equivalent
|-
|-
!Change The Character||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L2, L2, L2, L2...'''<br>(Hit the L2 button until you've selected a character)
|Change The Character||L2, L1, L2, , , , L2, L2, L2, L2...<br>(continue hitting L2 to cycle characters)||shapeshifter
|-
|-
!One Shot One Kill||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L3, R3, CIRCLE, SQUARE'''
|One Shot One Kill||L2, L1, L2, , , , L3, R3, , ▢||touchofdeath
|-
|-
!Unlimited Health||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''R3, L3, R3, CIRCLE'''
|Unlimited Health||L2, L1, L2, , , , R3, L3, R3, ◯||liveforever
|-
|-
!Extra Powerful Punches And Kicks||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''R3, L3, CIRCLE, SQUARE'''
|Extra Powerful Punches And Kicks||L2, L1, L2, , , , R3, L3, , ▢||fistsoflegend
|-
|-
!Small Characters||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L3, R3, SQUARE, CIRCLE'''
|Small Konoko||L2, L1, L2, , , , L3, R3, , ◯||minime
|-
|-
!Unlimited Phase Cloak||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L1, R3, L2, L3'''
|Unlimited Phase Cloak||L2, L1, L2, , , , L1, R3, L2, L3||moonshadow
|-
|-
!Big Head Mode||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''START, SQUARE, CIRCLE, START'''
|Big Head Mode||L2, L1, L2, , , , START, , , START||bighead
|-
|-
!Unlimited Ammo||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L2, L2, L1, L3'''
|Unlimited Ammo||L2, L1, L2, , , , L2, L2, L1, L3||superammo
|-
|-
!Huge Characters||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''R3, SQUARE, CIRCLE, L3'''
|Huge Konoko||L2, L1, L2, , , , R3, , , L3||behemoth
|-
|-
!Hard Mode||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''R3, L3, CIRCLE, SQUARE'''
|Maximum Ammo/Hypos||L2, L1, L2, , , , , , , R3||fatloot
|-
|-
!Instant Level Completion||L2, L1, L2, SQUARE, CIRCLE, SQUARE, '''L3, R3, L2, L1'''
|Instant Level Completion||L2, L1, L2, , , , L3, R3, L2, L1||winlevel
|}
|}


[[Category:Oni Support]][[Category:Modding tutorials]]
[[Category:Oni Support]][[Category:Modding tutorials]]