19,452
edits
m (→Macintosh/PC: updated scripting tips) |
(picked new colors for cheat table that don't make me feel like I'm going blind; some table markup corrections and improvements) |
||
(22 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
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 vanilla Oni's replayability (in other words, before installing mods with the [[Anniversary Edition]]). | |||
==PC== | |||
When playing the 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="background:aqua;" | |-style="background:aqua;" | ||
!Input sequence | |||
!Confirmation message | |||
!Effect | |||
!Persists on level load | |||
!Scripting equivalent | |||
!Effect | |||
!Persists on level load | |||
|- | |- | ||
!shapeshifter !! Change Characters Enabled/Disabled | !shapeshifter !! Change Characters Enabled/Disabled | ||
|style="background: | |style="background:palegreen"|While playing, press F8 to cycle forwards or Shift+F8 to go backwards | ||
|YES || style="background: | |align=center|YES || style="background:palegreen"|<tt>chr_set_class(0, ONCC_name);</tt> '''(3)''' | ||
|- | |- | ||
!liveforever | !liveforever | ||
|style="background: | !Invincibility Enabled/Disabled | ||
|NO||style="background: | |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 | !touchofdeath | ||
|style="background: | !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 | !canttouchthis | ||
|style="background: | !Unstoppable Enabled/Disabled | ||
|NO||style="background: | |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 | !fatloot | ||
|style="background: | !Fat Loot Received | ||
| | |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 | !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; | |align=center|YES||<tt>p3_furniture_breakable=1; '''/''' p3_furniture_breakable=0;</tt> | ||
|- | |- | ||
!winlevel | !winlevel | ||
!Instantly Win Level | |||
|Level is won upon exit of the pause screen | |Level is won upon exit of the pause screen | ||
|style="background: | |align=center|N/A||style="background:lightcoral"|<tt>win</tt> '''(2)''' | ||
|- | |- | ||
!loselevel | !loselevel | ||
!Instantly Lose Level | |||
|Level is lost upon exit of the pause screen | |Level is lost upon exit of the pause screen | ||
|style="background: | |align=center|N/A||style="background:lightcoral"|<tt>lose</tt> '''(2)''' | ||
|- | |- | ||
!bighead | !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 | !minime | ||
|style="background: | !Mini Mode Enabled/Disabled | ||
|NO||style="background: | |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 | !superammo | ||
|style="background: | !Super Ammo Mode Enabled/Disabled | ||
|NO||style="background: | |style="background:palegreen"|Player's guns are always full with ammo | ||
|align=center|NO||style="background:darkgray"| | |||
|- | |- | ||
!thedayismine | !thedayismine | ||
|[[Developer Mode]] ( | !Developer Mode Enabled/Disabled | ||
|YES||style="background: | |Toggles [[Developer Mode]] (requires Daodan DLL to enable in Windows) | ||
|align=center|YES||style="background:darkgray"| | |||
|- | |- | ||
!reservoirdogs | !reservoirdogs | ||
| | !Last Man Standing Enabled/Disabled | ||
|YES||style="background: | |AIs fight amongst themselves | ||
|align=center|YES||style="background:darkgray"| | |||
|- | |- | ||
!roughjustice | !roughjustice | ||
|style="background: | !Gatling Guns Enabled/Disabled | ||
|YES||style="background: | |style="background:palegreen"|Player's guns fire X times faster | ||
|align=center|YES||style="background:darkgray"| | |||
|- | |- | ||
!chenille | !chenille | ||
|style="background: | !Daodan Power Enabled/Disabled | ||
|NO||style="background: | |style="background:palegreen"|Player gets permanent Daodan glow and [[boss shield]] | ||
|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 | !behemoth | ||
|style="background: | !Godzilla Mode Enabled/Disabled | ||
|NO||style="background: | |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 | !elderrune | ||
|style="background: | !Regeneration Enabled/Disabled | ||
|YES||style="background: | |style="background:lightskyblue"|Konoko regenerates at the rate of 1 HP/sec | ||
|align=center|YES||style="background:darkgray"| | |||
|- | |- | ||
!moonshadow | !moonshadow | ||
|style="background: | !Phase Cloak Enabled/Disabled | ||
|NO||style="background: | |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 | !munitionfrenzy | ||
|style="background: | !Weapons Locker Created | ||
| | |style="background:palegreen"|All weapons appear at the player's feet for 15 secs | ||
|align=center|N/A||style="background:darkgray"| | |||
|- | |- | ||
!fistsoflegend | !fistsoflegend | ||
|style="background: | !Fists Of Legend Enabled/Disabled | ||
|NO||style="background: | |style="background:lightskyblue"|Konoko's combat moves knock enemies back | ||
|align=center|NO||style="background:darkgray"| | |||
|- | |- | ||
!killmequick | !killmequick | ||
| | !Ultra Mode Enabled/Disabled | ||
|YES||style="background: | |AIs don't pause between combos (a little tougher) | ||
|align=center|YES||style="background:lightcoral"|<tt>chr_ultra_mode</tt> '''(4)''' | |||
|- | |- | ||
!carousel | !carousel | ||
!Slow Motion Enabled/Disabled | |||
|Permanent slow motion | |Permanent slow motion | ||
|NO||style="background: | |align=center|NO||style="background:lightcoral"|<tt>slowmo</tt> '''(5)''' | ||
|} | |} | ||
=== | |||
===Legend=== | |||
{| | {| | ||
!colspan="2"|Effect description | !colspan="2"|Effect description | ||
|- | |- | ||
!style="background: | !style="background:palegreen"|Green | ||
|cheat applies to any character you <tt>chr_focus</tt> to ( | |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: | !style="background:lightskyblue"|Blue | ||
|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 152: | Line 140: | ||
!colspan="2"|Scripting equivalent | !colspan="2"|Scripting equivalent | ||
|- | |- | ||
!style="background: | !style="background:darkgray"|Gray | ||
|no equivalent available | |no equivalent available | ||
|- | |- | ||
Line 158: | Line 146: | ||
|exact equivalent and that's it | |exact equivalent and that's it | ||
|- | |- | ||
!style="background: | !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: | !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: | !style="background:lightcoral"|Red | ||
|no exact equivalent, extra work required | |no exact equivalent, extra work required | ||
|} | |} | ||
Line 171: | Line 159: | ||
====Scripting equivalents==== | ====Scripting equivalents==== | ||
{| | {| | ||
!style="background: | !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: | !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: | !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 184: | Line 175: | ||
**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 ( | **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 192: | Line 183: | ||
**''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: | !style="background:lightcoral"|(2) | ||
|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>. | |||
{| | |||
!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 203: | Line 199: | ||
**''then'' use e.g. <tt>chr_givepowerup(0, invis, -1)</tt> | **''then'' use e.g. <tt>chr_givepowerup(0, invis, -1)</tt> | ||
{| | {| | ||
!style="background: | !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: | !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 227: | Line 223: | ||
*To ''really'' stay in Daodan overpower forever, use '''elderrune''', then use a hypo at full health. | *To ''really'' stay in Daodan overpower forever, use '''elderrune''', then use a hypo at full health. | ||
*Overpower drains at the rate of 1 hitpoint per second, which is exactly compensated by '''elderrune'''. | *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 | *You're then virtually frozen in ''real'' overpower, as long as you don't get hurt. You must get down to normal health to take another hypo. | ||
==PlayStation 2== | |||
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, ▢, ◯, ▢. | |||
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 no-movies patch. | |||
{| border="1" cellpadding="5" cellspacing="0" style="margin-left:auto; margin-right:auto; text-align:center;" | |||
|-style="background:aqua;" | |||
!Effect | |||
!Input Sequence | |||
!PC Equivalent | |||
|- | |||
|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, ▢, ◯, ▢, L3, R3, ◯, ▢||touchofdeath | |||
|- | |||
|Unlimited Health||L2, L1, L2, ▢, ◯, ▢, R3, L3, R3, ◯||liveforever | |||
|- | |||
|Extra Powerful Punches And Kicks||L2, L1, L2, ▢, ◯, ▢, R3, L3, ◯, ▢||fistsoflegend | |||
|- | |||
|Small Konoko||L2, L1, L2, ▢, ◯, ▢, L3, R3, ▢, ◯||minime | |||
|- | |||
|Unlimited Phase Cloak||L2, L1, L2, ▢, ◯, ▢, L1, R3, L2, L3||moonshadow | |||
|- | |||
|Big Head Mode||L2, L1, L2, ▢, ◯, ▢, START, ▢, ◯, START||bighead | |||
|- | |||
|Unlimited Ammo||L2, L1, L2, ▢, ◯, ▢, L2, L2, L1, L3||superammo | |||
|- | |||
|Huge Konoko||L2, L1, L2, ▢, ◯, ▢, R3, ▢, ◯, L3||behemoth | |||
|- | |||
|Maximum Ammo/Hypos||L2, L1, L2, ▢, ◯, ▢, ◯, ◯, ◯, R3||fatloot | |||
|- | |||
|Instant Level Completion||L2, L1, L2, ▢, ◯, ▢, L3, R3, L2, L1||winlevel | |||
|} | |||
[[Category:Oni Support]][[Category:Modding tutorials]] | |||
[[ |