UnrealOni/Documentation: Difference between revisions

Cheat codes
m (Cheat codes (notes))
(Cheat codes)
Line 69: Line 69:


===Cheat codes===
===Cheat codes===
[[Image:UnrealOni_cheat_codes_get_max_length.png|right|thumb|Find longest cheat]]
[[Image:UnrealOni_cheat_codes_detector.png|right|thumb|Detect cheats]]
[[Image:UnrealOni_cheat_codes_carousel.png|right|thumb|carousel cheat]]
Unreal has a Cheat code class but that doesn't ship with cooked games.
Unreal has a Cheat code class but that doesn't ship with cooked games.
: https://www.youtube.com/watch?v=hM_MPrEN7t8
: https://www.youtube.com/watch?v=hM_MPrEN7t8
Line 78: Line 82:
The letters will be stored in a string which we will keep at a maximum length of the longest cheat. The string is then compared against an array of cheat codes.
The letters will be stored in a string which we will keep at a maximum length of the longest cheat. The string is then compared against an array of cheat codes.


The string is cleared as soon as the game gets ''unpaused'' again.
The string is cleared as soon as a cheat is found. A case select a.k.a. switch node can handle the different cheat functions.
8,018

edits