EVENT ACTIVATECHEAT

From EDukeWiki
Jump to navigation Jump to search

This event is called every time a cheat code is entered (see Cheatkeys, Definecheat, Cheat_phase). The gamevar RETURN is set to the cheat ID number.

You can modify RETURN to change the cheat that was entered, or you can completely disable the cheat by setting RETURN to -1.

At this time, RETURN values are ignored when the event is called for cheat #26 because it is used for debugging by the developers.

Return Values

0 - cornholio
1 - stuff
2 - scotty###
3 - coords
4 - view
5 - time
6 - unlock
7 - cashman
8 - items
9 - rate
10 - skill#
11 - beta
12 - hyper
13 - monsters
14 - <RESERVED>
15 - <RESERVED>
16 - todd
17 - showmap
18 - kroz
19 - allen
20 - clip
21 - weapons
22 - inventory
23 - keys
24 - debug
25 - <RESERVED>
26 - cgs