Académique Documents
Professionnel Documents
Culture Documents
csa}
thread 'CHEATS'
wait 1000
var
11@ : Integer
12@ : Integer
end
11@ = 0
12@ = 0
while true
wait 0
40@ = 0
while 40@ < 1500
wait 100
0DDD: 0@ = get_mutex_var 0
if and
0@ == 0
Player.Defined($PLAYER_CHAR)
Player.Controllable($PLAYER_CHAR)
80E1: not key_pressed 3 5
00E1: key_pressed 3 4
00E1: key_pressed 3 6
then
continue
else
40@ = 0
end
end
0DDC: set_mutex_var 0 to 1
Player.CanMove($PLAYER_CHAR) = false
0575: set_actor $PLAYER_ACTOR pinned_position 1
Camera.SetBehindPlayer()
08D4: 10@ = create_panel_with_title 'CHT' position 240.0 100.0 width 150.0 c
olumns 1 interactive 1 background 1 alignment 0
gosub @update_column
090E: set_panel 10@ active_row 11@
wait 1500
while true
wait 100
// player checks
if or
0117: player $PLAYER_CHAR wasted
0741: actor $PLAYER_ACTOR busted
then
break
end
// row switch
if and
00E1: key_pressed 3 4
80E1: not key_pressed 3 6
then
if
11@ > 0
then
11@ -= 1
else
11@ = 11
end
090E: set_panel 10@ active_row
wait 200
end
if and
00E1: key_pressed 3 6
80E1: not key_pressed 3 4
then
if
11@ < 11
then
11@ += 1
else
11@ = 0
end
090E: set_panel 10@ active_row
wait 200
end
// column switch
if
00E1: key_pressed 3 2
then
if
12@ > 0
then
12@ -= 1
else
12@ = 8
end
gosub @update_column
090E: set_panel 10@ active_row
wait 200
end
// close
if and
00E1: key_pressed 3 4
00E1: key_pressed 3 6
80E1: not key_pressed 3 5
then
break
end
// use cheat
if
00E1: key_pressed 3 8
then
if
12@ < 8
then
12@ += 1
else
12@ = 0
end
gosub @update_column
090E: set_panel 10@ active_row
wait 200
end
if and
00E1: key_pressed 3 5
11@
11@
11@
11@
end
if
12@ == 3
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_36' 'CHT_37' 'CHT_38'
'CHT_39' 'CHT_40' 'CHT_41' 'CHT_42' 'CHT_43' 'CHT_44' 'CHT_45' 'CHT_46' 'CHT_47'
end
if
12@ == 4
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_48' 'CHT_49' 'CHT_50'
'CHT_51' 'CHT_52' 'CHT_53' 'CHT_54' 'CHT_55' 'CHT_56' 'CHT_57' 'CHT_58' 'CHT_59
'
end
if
12@ == 5
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_60' 'CHT_61' 'CHT_62'
'CHT_63' 'CHT_64' 'CHT_65' 'CHT_66' 'CHT_67' 'CHT_68' 'CHT_69' 'CHT_70' 'CHT_71
'
end
if
12@ == 6
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_72' 'CHT_73' 'CHT_74'
'CHT_75' 'CHT_76' 'CHT_77' 'CHT_78' 'CHT_79' 'CHT_80' 'CHT_81' 'CHT_82' 'CHT_83
'
end
if
12@ == 7
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_84' 'CHT_85' 'CHT_86'
'CHT_87' 'CHT_88' 'CHT_89' 'CHT_90' 'CHT_91' 'CHT_92' 'CHT_93' 'CHT_94' 'CHT_95
'
end
if
12@ == 8
then
08DB: set_panel 10@ column 0 header 'DUMMY' data 'CHT_96' 'CHT_97' 'CHT_18'
'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18' 'CHT_18
'
end
return
:earr_cheat_funcs
hex
"_ZN6CCheat17m_aCheatFunctionsE" 00
end