Cheats: Difference between revisions

263 bytes added ,  3 December 2007
m
→‎Macintosh/PC: winlevel & loselevel
m (→‎Macintosh/PC: updated scripting tips)
m (→‎Macintosh/PC: winlevel & loselevel)
Line 75: Line 75:
!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"| ||<tt>win</tt>
|style="background:black"| ||style="background:yellow"|<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"| ||<tt>lose</tt>
|style="background:black"| ||style="background:yellow"|<tt>lose</tt> '''(2)'''
|-
|-
!bighead!!Big Head Enabled/Disabled
!bighead!!Big Head Enabled/Disabled
Line 119: Line 119:
!moonshadow!!Phase Cloak Enabled/Disabled
!moonshadow!!Phase Cloak Enabled/Disabled
|style="background:lime"|Player gets a permanent Phase Cloak
|style="background:lime"|Player gets a permanent Phase Cloak
|NO||style="background:yellow"|<tt>give_powerup(invis, -1);<br>give_powerup(invis, 1);</tt> '''(2)'''
|NO||style="background:yellow"|<tt>give_powerup(invis, -1);<br>give_powerup(invis, 1);</tt> '''(3)'''
|-
|-
!munitionfrenzy!!Weapons Locker Created
!munitionfrenzy!!Weapons Locker Created
Line 131: Line 131:
!killmequick!!Ultra Mode Enabled/Disabled
!killmequick!!Ultra Mode Enabled/Disabled
|AI don't pause between combos (a little tougher)
|AI don't pause between combos (a little tougher)
|YES||style="background:yellow"|<tt>chr_ultra_mode</tt> '''(3)'''
|YES||style="background:yellow"|<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> '''(4)'''
|NO||style="background:yellow"|<tt>slowmo</tt> '''(5)'''
|}
|}
===Color code===
===Color code===
Line 193: Line 193:
{|
{|
!style="background:yellow"|(2)
!style="background:yellow"|(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:yellow"|(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 208:
**''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"|(3)
!style="background:yellow"|(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"|(4)
!style="background:yellow"|(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>.
|}
|}