{$CLEO .cm}
{$USE audio}

34@ = Actor.EmulateFromPlayer(0)
if 
  is_australian_game 
goto_if_false @MAIN_LOOP
create_random_char 35@ = create_random_actor_at 0.0 0.0 0.0

:MAIN_LOOP
wait 0
if 
  not does_char_exist 35@
goto_if_false @Noname_241
cleo_call @Noname_10340 2 409 1 // Part of the original but commented out; Calling to unknown stuff and has "unpredictable behaviour" -gemini. (CLEO_CALL WriteGlobalVar 0 (409, 0)() //desativa)
//cleo_call @Noname_10340 0 409 0 //TEST. ORIGINAL VALUE IS ABOVE.
gosub @Noname_8906
load_special_character 'SLENDER' as 7

:Noname_95
if 
  not has_special_character_loaded 7
goto_if_false @Noname_121
wait 0
goto @Noname_95

:Noname_121
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 0.0 6.0 0.0
35@ = Actor.Create(PedType.Mission1, 296, 134@, 139@, -100.0)
set_char_visible 35@ visibility 0
Actor.SetImmunities(35@, True, True, True, True, True)
Actor.Health(35@) = 99999
// FIX Target IV compat: Target IV draws health sprite = health / (maxHealth/8).
// Max health defaults to 100, so 99999 HP gave sprite id ~8000 -> crash. Match max health (ped+0x544) to current health.
0A96: 155@ = actor 35@ struct
155@ += 1348
write_memory 155@ size 4 value 99999.0 virtual_protect 0
Actor.SetWalkStyle(35@, "PLAYER")
force_weather_now 9
write_memory 5488573 size 4 value -1869574000 virtual_protect 1 //STOP GAME CLOCK: 4 x NOP (0x90909090) at 0x53BFBD
write_memory 5488577 size 1 value 144 virtual_protect 1 //STOP GAME CLOCK: 5th NOP at 0x53BFC1
goto @Noname_3296

:Noname_241
task_turn_char_to_face_char 35@ rotate_to_actor 34@
task_look_at_char 35@ look_at_actor 34@ -1
if 
  106@ == 0
goto_if_false @Noname_361

:Noname_277
if 
cleo_call @Noname_10215 2 34@ 35@ 
goto_if_false @Noname_354
wait 0
if 
  37@ <> 2
goto_if_false @Noname_340
gosub @Noname_9671
goto @Noname_347

:Noname_340
gosub @Noname_9796

:Noname_347
goto @Noname_277

:Noname_354
106@ = 1

:Noname_361
if 
  106@ == 1
goto_if_false @Noname_1042
if 
cleo_call @Noname_10215 2 34@ 35@ 
goto_if_false @Noname_757
set_char_visible 35@ visibility 1
if 
  is_int_lvar_greater_than_int_lvar TIMERA > 41@
goto_if_false @Noname_750
set_lvar_int_to_lvar_int 133@ = 41@
133@ /= 3
Camera.Shake(133@)
damage_char 34@ decrease_health_by 4 affect_armour 0
if 
  39@ == 0
goto_if_false @Noname_553
38@ = Audiostream.Load("cleo\musica\chiado.mp3")
Audiostream.PerformAction(38@, AudioStreamState.Play)
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0        //Source; READ_MEMORY 0xB5FCCC 4 FALSE fVolume //Read SFX Volume Address
Audiostream.Volume(38@) = 0.0
Audiostream.Loop(38@, 1)
39@ = 1

:Noname_553
154@ += 0.04
Audiostream.Volume(38@) = 154@
if 
  is_float_lvar_greater_than_float_lvar 154@ > 153@
goto_if_false @Noname_606
set_lvar_float_to_lvar_float 154@ = 153@
set_lvar_float_to_lvar_float 153@ = 154@

:Noname_606
TIMERA = 0
if and
  30.0 > 152@
  152@ > 10.0
  48@ == 0
goto_if_false @Noname_729
47@ = Audiostream.Load("cleo\musica\jumpscare.mp3")
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0            //Source; READ_MEMORY 0xB5FCCC 4 FALSE fVolume //Read SFX Volume Address
153@ *= 2.0
Audiostream.PerformAction(47@, AudioStreamState.Play)
Audiostream.Volume(47@) = 153@
48@ = 1

:Noname_729
48@ = 1
TIMERB = 0
50@ = 0

:Noname_750
goto @Noname_1042

:Noname_757
if 
  50@ == 0
goto_if_false @Noname_801
if 
  TIMERB > 7000
goto_if_false @Noname_801
50@ = 1

:Noname_801
if 
  50@ == 1
goto_if_false @Noname_868
if 
  TIMERB > 900
goto_if_false @Noname_868
49@ = Actor.Health(34@)
49@ += 1
Actor.Health(34@) = 49@
TIMERB = 0

:Noname_868
154@ -= 0.05
if 
  0.0 >= 154@
goto_if_false @Noname_909
154@ = 0.0

:Noname_909
Audiostream.Volume(38@) = 154@
if 
  TIMERA > 3000
goto_if_false @Noname_1042
set_char_visible 35@ visibility 0
106@ = 0
TIMERA = 0
if 
  37@ <> 2
goto_if_false @Noname_989
gosub @Noname_9671
goto @Noname_996

:Noname_989
gosub @Noname_9796

:Noname_996
37@ += 1
if 
  37@ > 2
goto_if_false @Noname_1028
37@ = 0

:Noname_1028
48@ = 0
goto @MAIN_LOOP

:Noname_1042
switch_start 40@ total_jumps 9 default_jump 0 @Noname_2320 jumps 0 @NOTE_0 1 @NOTE_1 2 @NOTE_2 3 @NOTE_3 4 @NOTE_4 5 @NOTE_5 6 @NOTE_6
switch_continued 7 @NOTE_7 8 @NOTE_8 -1 @Noname_2320 -1 @Noname_2320 -1 @Noname_2320 -1 @Noname_2320 -1 @Noname_2320 -1 @Noname_2320 -1 @Noname_2320

:NOTE_0
149@ = 86.0
150@ = -86.0
41@ = 200
goto @Noname_2320

:NOTE_1
149@ = 78.0
150@ = -78.0
41@ = 175
if 
  128@ == 0
goto_if_false @Noname_1371
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0
153@ /= 2.0
153@ *= 3.0
42@ = Audiostream.Load("cleo\musica\pagina1.mp3")

:Noname_1315
if 
  not has_mission_audio_loaded 42@
goto_if_false @Noname_1342
wait 0
goto @Noname_1315

:Noname_1342
Audiostream.PerformAction(42@, AudioStreamState.Play)
Audiostream.Loop(42@, 1)
Audiostream.Volume(42@) = 153@
128@ = 1

:Noname_1371
goto @Noname_2320

:NOTE_2
149@ = 70.0
150@ = -70.0
41@ = 150
goto @Noname_2320

:NOTE_3
149@ = 62.0
150@ = -62.0
41@ = 125
Audiostream.PerformAction(42@, AudioStreamState.Stop)
Audiostream.Release(42@)
if 
  129@ == 0
goto_if_false @Noname_1590
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0
153@ /= 2.0
153@ *= 3.0
43@ = Audiostream.Load("cleo\musica\pagina3.mp3")

:Noname_1534
if 
  not has_mission_audio_loaded 43@
goto_if_false @Noname_1561
wait 0
goto @Noname_1534

:Noname_1561
Audiostream.PerformAction(43@, AudioStreamState.Play)
Audiostream.Loop(43@, 1)
Audiostream.Volume(43@) = 153@
129@ = 1

:Noname_1590
goto @Noname_2320

:NOTE_4
149@ = 44.0
150@ = -44.0
41@ = 100
goto @Noname_2320

:NOTE_5
149@ = 34.0
150@ = -34.0
41@ = 75
Audiostream.PerformAction(43@, AudioStreamState.Stop)
Audiostream.Release(43@)
if 
  130@ == 0
goto_if_false @Noname_1890
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0 //Read SFX Volume Address
153@ /= 2.0
153@ *= 3.0
44@ = Audiostream.Load("cleo\musica\pagina5.mp3")

:Noname_1752
if 
  not has_mission_audio_loaded 44@
goto_if_false @Noname_1779
wait 0
goto @Noname_1752

:Noname_1779
Audiostream.PerformAction(44@, AudioStreamState.Play)
Audiostream.Loop(44@, 1)
Audiostream.Volume(44@) = 153@
unload_special_character 7
Actor.DestroyInstantly(35@)
load_special_character 'STENTA' as 7

:Noname_1823
if 
  not has_special_character_loaded 7
goto_if_false @Noname_1849
wait 0
goto @Noname_1823

:Noname_1849
35@ = Actor.Create(PedType.Mission1, 296, 134@, 139@, -100.0)
Actor.SetWalkStyle(35@, "PLAYER")
130@ = 1

:Noname_1890
goto @Noname_2320

:NOTE_6
149@ = 26.0
150@ = -26.0
41@ = 50
goto @Noname_2320

:NOTE_7
149@ = 18.0
150@ = -18.0
41@ = 25
Audiostream.PerformAction(44@, AudioStreamState.Stop)
Audiostream.Release(44@)
if 
  131@ == 0
goto_if_false @Noname_2108
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0
153@ /= 2.0
153@ *= 3.0
45@ = Audiostream.Load("cleo\musica\pagina7.mp3")

:Noname_2052
if 
  not has_mission_audio_loaded 45@
goto_if_false @Noname_2079
wait 0
goto @Noname_2052

:Noname_2079
Audiostream.PerformAction(45@, AudioStreamState.Play)
Audiostream.Loop(45@, 1)
Audiostream.Volume(45@) = 153@
131@ = 1

:Noname_2108
goto @Noname_2320

:NOTE_8 //End - A.k.A Noname_2115 - The "Cleanup Code"
Player.CanMove(0, False)
set_char_visible 35@ visibility 1
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 35@ with_offset 0.0 5.0 0.7
Camera.SetPosition(134@, 139@, 144@, 0.0, 0.0, 0.0)
Camera.OnPed(35@, 15, 2)
wait 5500
unload_special_character 7
Actor.RemoveReferences(35@)
Actor.DestroyWithFade(35@)
wait 4000
Audiostream.PerformAction(45@, AudioStreamState.Stop)
Audiostream.Release(45@)
Player.CanMove(0, True)
Camera.Restore
Audiostream.PerformAction(38@, AudioStreamState.Stop)
Audiostream.Release(38@)
write_memory 5488573 size 4 value -15773976 virtual_protect 1 //Freeze/Unfreeze Time (WRITE_MEMORY 0x53BFBD 4 0xFF0F4EE8 TRUE)
write_memory 5488577 size 1 value 255 virtual_protect 1 //Freeze/Unfreeze Time (WRITE_MEMORY 0x53BFC1 1 0xFF TRUE)

// ---GEMINI CLEANUP CODE START ---
display_hud 1 //Start of cleanup code from here - gemini
display_radar 1 // Gemini Cleanup Code.
if
  does_char_exist 35@ // This check might be redundant if Actor.DestroyWithFade(35@) works - gemini.
then
  Actor.DestroyInstantly(35@) // Use this if DestroyWithFade isn't enough, or replace DestroyWithFade - gemini.
end
if
  has_special_character_loaded 7 // Redundant if unload_special_character 7 already called above -gemini.
then
  unload_special_character 7 // Redundant if unload_special_character 7 already called above -gemini.
end

// --- STRONGER WEATHER RESET ---
//force_weather_now -1 // Reset weather to dynamic/default -gemini.
Camera.Restore_WithJumpCut // Ensure camera is fully reset

//---UNLOAD NOTE ---
0249: (11801) //NEW 6/29/2025 - Unload the note moodel to see if it helps maybe?

// --- Player State Restoration ---
Player.CanMove(0, True) // Ensure player can move
Actor.SetImmunities(34@, False, False, False, False, False) // Remove any immunities

// --- SIGNAL MISSION COMPLETION TO HANDLER SCRIPT (Slenderman.cs)---
write_memory 9874336 size 1 value 1 virtual_protect 0 // Signal to handler script to prevent slenderman from respawning. Set flag to 1 (mission completed)

cleo_call @Noname_10340 2 409 0 // Part of the original but commented out; Calling to unknown stuff and has "unpredictable behaviour" -gemini. (CLEO_CALL WriteGlobalVar 0 (409, 0)() //desativa)
do_fade 1 time 800
// --- IMPORTANT: This line MUST be DELETED or KEPT COMMENTED OUT (FOR SLENDERMAN TO NOT RESPAWN SINCE HE'S BROKEN UPON REVISIT ANYWAY!) ---
// stream_custom_script "slenderman.cs" //Part of the original mod port. Commented out.
wait 1000 //Added as suggestion by gemini later on to see if giving the cleanup code time to settle down would help but no.
terminate_this_script // End the mission script
goto @Noname_2320 //Commented out at one point but was originally here from the port. Gemini said could cause recursive script loop because its after terminate_this_script.

:Noname_2320
137@, 142@, 147@ = Actor.StorePos(34@)
136@, 141@, 146@ = Actor.StorePos(35@)
get_distance_between_coords_2d 151@ = distance_between_XY -1597.4 -2132.9 and_XY 137@ 142@
get_distance_between_coords_2d 152@ = distance_between_XY 136@ 141@ and_XY 137@ 142@
if 
  not Actor.Dead(34@)
goto_if_false @Noname_2545
if 
  51@ == 0
goto_if_false @Noname_2441
138@, 143@, 148@ = Actor.StorePos(34@)
51@ = 1

:Noname_2441
if 
  51@ == 1
goto_if_false @Noname_2466
52@ += 1

:Noname_2466
if 
  52@ > 600
goto_if_false @Noname_2545
if 
    //locate_char_any_means_2d 34@ 138@ 143@ 148@ 5.0 5.0 //Gemini suggested tweak. Original mod value below.
   locate_char_any_means_2d 34@ sphere 0 near_point 138@ 143@ radius 148@ 5.0
goto_if_false @Noname_2531
51@ = 2
goto @Noname_2545

:Noname_2531
51@ = 0
52@ = 0

:Noname_2545
if 
  Actor.Driving(34@)
goto_if_false @Noname_2574
damage_char 34@ decrease_health_by 1 affect_armour 0
set_radio_channel 12

:Noname_2574
if or
  151@ > 520.0
  is_player_using_jetpack 0
  51@ == 2
goto_if_false @Noname_2615
damage_char 34@ decrease_health_by 1 affect_armour 0

:Noname_2615
if 
  is_player_targetting_char 0 aiming_at_actor 35@
goto_if_false @Noname_2650
damage_char 34@ decrease_health_by 2 affect_armour 0
task_say 34@ speak_from_audio_table 346

:Noname_2650
if or
  not is_char_health_greater 34@ health > 5
  11.0 > 152@
goto_if_false @Noname_3289
Actor.Health(34@) = 5
display_hud 0
display_radar 0
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 35@ with_offset 0.0 4.0 1.0
Camera.SetPosition(134@, 139@, 144@, 0.0, 0.0, 0.0)
Camera.OnPed(35@, 15, 2)
switch_start 40@ total_jumps 7 default_jump 0 @Noname_2953 jumps 1 @Noname_2820 2 @Noname_2839 3 @Noname_2858 4 @Noname_2877 5 @Noname_2896 6 @Noname_2915 7 @Noname_2934

:Noname_2820
Audiostream.PerformAction(42@, AudioStreamState.Stop)
Audiostream.Release(42@)
goto @Noname_2953

:Noname_2839
Audiostream.PerformAction(42@, AudioStreamState.Stop)
Audiostream.Release(42@)
goto @Noname_2953

:Noname_2858
Audiostream.PerformAction(43@, AudioStreamState.Stop)
Audiostream.Release(43@)
goto @Noname_2953

:Noname_2877
Audiostream.PerformAction(43@, AudioStreamState.Stop)
Audiostream.Release(43@)
goto @Noname_2953

:Noname_2896
Audiostream.PerformAction(44@, AudioStreamState.Stop)
Audiostream.Release(44@)
goto @Noname_2953

:Noname_2915
Audiostream.PerformAction(44@, AudioStreamState.Stop)
Audiostream.Release(44@)
goto @Noname_2953

:Noname_2934
Audiostream.PerformAction(45@, AudioStreamState.Stop)
Audiostream.Release(45@)
goto @Noname_2953

:Noname_2953
Audiostream.PerformAction(38@, AudioStreamState.Stop)
Audiostream.Release(38@)
Audiostream.PerformAction(47@, AudioStreamState.Stop)
Audiostream.Release(47@)
46@ = Audiostream.Load("cleo\musica\derrota.mp3")
Audiostream.PerformAction(46@, AudioStreamState.Play)
read_memory 153@ = read_memory 11926732 size 4 virtual_protect 0
153@ /= 2.0
153@ *= 3.0
Audiostream.Volume(46@) = 153@
set_char_visible 35@ visibility 1
Player.CanMove(0, False)
wait 2000
do_fade 0 time 8000
TIMERA = 0
133@ = 0

:Noname_3095
if 
  TIMERA < 8500
goto_if_false @Noname_3137
wait 0
Camera.Shake(133@)
133@ += 1
goto @Noname_3095

:Noname_3137
Player.CanMove(0, True)
task_die 34@

:Noname_3148
if 
  Actor.Dead(34@)
goto_if_false @Noname_3175
wait 0
goto @Noname_3148

:Noname_3175
unload_special_character 7
if 
  does_char_exist 35@
goto_if_false @Noname_3205
Actor.RemoveReferences(35@)
Actor.DestroyInstantly(35@)

:Noname_3205 //Cleanup 2 (?)
display_hud 1
display_radar 1
write_memory 5488573 size 4 value -15773976 virtual_protect 1 //Game Clock/Time Manipulation (0x53BFBD)
write_memory 5488577 size 1 value 255 virtual_protect 1 //Game Clock/Time Manipulation (0x53BFC1)
set_weather_to_appropriate_type_now
//---UNLOAD NOTE ---
0249: (11801) //NEW 6/29/2025 - Unload the note moodel to see if it helps maybe? 
Camera.Restore_WithJumpCut
cleo_call @Noname_10340 2 409 0 // Part of original; commented out; Calling to unknown stuff and has "unpredictable behaviour" -gemini. (CLEO_CALL WriteGlobalVar 0 (409, 0)() //desativa)
do_fade 1 time 800
//stream_custom_script "slenderman.cs" //Commented out as a gemini suggestion because "IT was a recursive loop" causing slenderman to appear again (albeit bugged) in the cabin upon re-visit at 00:00
terminate_this_script 

:Noname_3289
gosub @LOCALES

:Noname_3296
goto @MAIN_LOOP

:LOCALES
if or
  54@ == 1
  55@ == 1
  56@ == 1
  57@ == 1
  58@ == 1
  59@ == 1
  60@ == 1
  61@ == 1
goto_if_false @Noname_3574
if 
  107@ == 0
goto_if_false @Noname_3574
if 
  63@ == 0
goto_if_false @Noname_3446
85@ = Object.Create(11801, -1637.199, -2232.711, 31.47656)
Object.Angle(85@) = 90.0
63@ = 1

:Noname_3446
if 
  locate_char_any_means_3d 34@ sphere 63@ in_sphere -1637.199 -2232.911 31.47656 radius 0.8 0.8 0.8
goto_if_false @Noname_3574
if 
  is_button_pressed 0 pressed_key 11 //Was originally "key 6" (right click), swapped for conversation positive (Y key).
goto_if_false @Noname_3574
40@ += 1
107@ = 1
Object.Destroy(85@)
print_formatted_now "%i/8" time 4000 40@ 

:Noname_3546
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_3574
wait 0
goto @Noname_3546

:Noname_3574
if or
  54@ == 2
  55@ == 2
  56@ == 2
  57@ == 2
  58@ == 2
  59@ == 2
  60@ == 2
  61@ == 2
goto_if_false @Noname_3842
if 
  108@ == 0
goto_if_false @Noname_3842
if 
  64@ == 0
goto_if_false @Noname_3717
86@ = Object.Create(11801, -1641.05, -2361.807, 47.36443)
Object.Angle(86@) = 95.0
64@ = 1

:Noname_3717
if 
  locate_char_any_means_3d 34@ sphere 64@ in_sphere -1641.05 -2361.807 47.36443 radius 0.8 0.8 0.8
goto_if_false @Noname_3842
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_3842
40@ += 1
108@ = 1
Object.Destroy(86@)
print_help_formatted "%i/8" 40@ 

:Noname_3814
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_3842
wait 0
goto @Noname_3814

:Noname_3842
if or
  54@ == 3
  55@ == 3
  56@ == 3
  57@ == 3
  58@ == 3
  59@ == 3
  60@ == 3
  61@ == 3
goto_if_false @Noname_4110
if 
  109@ == 0
goto_if_false @Noname_4110
if 
  65@ == 0
goto_if_false @Noname_3985
87@ = Object.Create(11801, -1498.773, -2360.54, 14.23295)
Object.Angle(87@) = 105.0
65@ = 1

:Noname_3985
if 
  locate_char_any_means_3d 34@ sphere 65@ in_sphere -1498.773 -2360.54 14.23295 radius 0.8 0.8 0.8
goto_if_false @Noname_4110
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4110
40@ += 1
109@ = 1
Object.Destroy(87@)
print_help_formatted "%i/8" 40@ 

:Noname_4082
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4110
wait 0
goto @Noname_4082

:Noname_4110
if or
  54@ == 4
  55@ == 4
  56@ == 4
  57@ == 4
  58@ == 4
  59@ == 4
  60@ == 4
  61@ == 4
goto_if_false @Noname_4368
if 
  110@ == 0
goto_if_false @Noname_4368
if 
  66@ == 0
goto_if_false @Noname_4243
88@ = Object.Create(11801, -1306.584, -2394.814, 23.45733)
66@ = 1

:Noname_4243
if 
  locate_char_any_means_3d 34@ sphere 66@ in_sphere -1306.584 -2394.814 24.05733 radius 0.8 0.8 0.8
goto_if_false @Noname_4368
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4368
40@ += 1
110@ = 1
Object.Destroy(88@)
print_help_formatted "%i/8" 40@ 

:Noname_4340
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4368
wait 0
goto @Noname_4340

:Noname_4368
if or
  54@ == 5
  55@ == 5
  56@ == 5
  57@ == 5
  58@ == 5
  59@ == 5
  60@ == 5
  61@ == 5
goto_if_false @Noname_4636
if 
  111@ == 0
goto_if_false @Noname_4636
if 
  67@ == 0
goto_if_false @Noname_4511
89@ = Object.Create(11801, -1287.951, -2508.655, 17.64584)
Object.Angle(89@) = 245.0
67@ = 1

:Noname_4511
if 
  locate_char_any_means_3d 34@ sphere 67@ in_sphere -1287.951 -2508.655 17.64584 radius 0.8 0.8 0.8
goto_if_false @Noname_4636
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4636
40@ += 1
111@ = 1
Object.Destroy(89@)
print_help_formatted "%i/8" 40@ 

:Noname_4608
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4636
wait 0
goto @Noname_4608

:Noname_4636
if or
  54@ == 6
  55@ == 6
  56@ == 6
  57@ == 6
  58@ == 6
  59@ == 6
  60@ == 6
  61@ == 6
goto_if_false @Noname_4904
if 
  112@ == 0
goto_if_false @Noname_4904
if 
  68@ == 0
goto_if_false @Noname_4779
90@ = Object.Create(11801, -1589.963, -2570.902, 29.68776)
Object.Angle(90@) = 245.0
68@ = 1

:Noname_4779
if 
  locate_char_any_means_3d 34@ sphere 68@ in_sphere -1589.963 -2570.902 29.68776 radius 0.8 0.8 0.8
goto_if_false @Noname_4904
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4904
40@ += 1
112@ = 1
Object.Destroy(90@)
print_help_formatted "%i/8" 40@ 

:Noname_4876
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_4904
wait 0
goto @Noname_4876

:Noname_4904
if or
  54@ == 7
  55@ == 7
  56@ == 7
  57@ == 7
  58@ == 7
  59@ == 7
  60@ == 7
  61@ == 7
goto_if_false @Noname_5172
if 
  113@ == 0
goto_if_false @Noname_5172
if 
  69@ == 0
goto_if_false @Noname_5047
91@ = Object.Create(11801, -1694.338, -2491.582, 21.07524)
Object.Angle(91@) = 270.0
69@ = 1

:Noname_5047
if 
  locate_char_any_means_3d 34@ sphere 69@ in_sphere -1694.338 -2491.582 21.07524 radius 0.8 0.8 0.8
goto_if_false @Noname_5172
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5172
40@ += 1
113@ = 1
Object.Destroy(91@)
print_help_formatted "%i/8" 40@ 

:Noname_5144
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5172
wait 0
goto @Noname_5144

:Noname_5172
if or
  54@ == 8
  55@ == 8
  56@ == 8
  57@ == 8
  58@ == 8
  59@ == 8
  60@ == 8
  61@ == 8
goto_if_false @Noname_5430
if 
  114@ == 0
goto_if_false @Noname_5430
if 
  70@ == 0
goto_if_false @Noname_5305
92@ = Object.Create(11801, -1855.45, -2309.685, 46.47278)
70@ = 1

:Noname_5305
if 
  locate_char_any_means_3d 34@ sphere 70@ in_sphere -1855.45 -2309.685 46.47278 radius 0.8 0.8 0.8
goto_if_false @Noname_5430
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5430
40@ += 1
114@ = 1
Object.Destroy(92@)
print_help_formatted "%i/8" 40@ 

:Noname_5402
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5430
wait 0
goto @Noname_5402

:Noname_5430
if or
  54@ == 9
  55@ == 9
  56@ == 9
  57@ == 9
  58@ == 9
  59@ == 9
  60@ == 9
  61@ == 9
goto_if_false @Noname_5698
if 
  115@ == 0
goto_if_false @Noname_5698
if 
  71@ == 0
goto_if_false @Noname_5573
93@ = Object.Create(11801, -1944.346, -2132.078, 75.17209)
Object.Angle(93@) = 135.0
71@ = 1

:Noname_5573
if 
  locate_char_any_means_3d 34@ sphere 71@ in_sphere -1944.346 -2132.078 75.17209 radius 0.8 0.8 0.8
goto_if_false @Noname_5698
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5698
40@ += 1
115@ = 1
Object.Destroy(93@)
print_help_formatted "%i/8" 40@ 

:Noname_5670
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5698
wait 0
goto @Noname_5670

:Noname_5698
if or
  54@ == 10
  55@ == 10
  56@ == 10
  57@ == 10
  58@ == 10
  59@ == 10
  60@ == 10
  61@ == 10
goto_if_false @Noname_5966
if 
  107@ == 0
goto_if_false @Noname_5966
if 
  72@ == 0
goto_if_false @Noname_5841
94@ = Object.Create(11801, -2013.825, -2005.977, 81.30711)
Object.Angle(94@) = 280.0
72@ = 1

:Noname_5841
if 
  locate_char_any_means_3d 34@ sphere 72@ in_sphere -2013.825 -2005.977 81.30711 radius 0.8 0.8 0.8
goto_if_false @Noname_5966
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5966
40@ += 1
107@ = 1
Object.Destroy(94@)
print_help_formatted "%i/8" 40@ 

:Noname_5938
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_5966
wait 0
goto @Noname_5938

:Noname_5966
if or
  54@ == 11
  55@ == 11
  56@ == 11
  57@ == 11
  58@ == 11
  59@ == 11
  60@ == 11
  61@ == 11
goto_if_false @Noname_6234
if 
  117@ == 0
goto_if_false @Noname_6234
if 
  73@ == 0
goto_if_false @Noname_6109
95@ = Object.Create(11801, -1913.329, -1892.702, 86.22109)
Object.Angle(95@) = 135.0
73@ = 1

:Noname_6109
if 
  locate_char_any_means_3d 34@ sphere 73@ in_sphere -1913.329 -1892.702 86.22109 radius 0.8 0.8 0.8
goto_if_false @Noname_6234
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6234
40@ += 1
117@ = 1
Object.Destroy(95@)
print_help_formatted "%i/8" 40@ 

:Noname_6206
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6234
wait 0
goto @Noname_6206

:Noname_6234
if or
  54@ == 12
  55@ == 12
  56@ == 12
  57@ == 12
  58@ == 12
  59@ == 12
  60@ == 12
  61@ == 12
goto_if_false @Noname_6502
if 
  118@ == 0
goto_if_false @Noname_6502
if 
  74@ == 0
goto_if_false @Noname_6377
96@ = Object.Create(11801, -1746.543, -1881.785, 94.44156)
Object.Angle(96@) = 45.0
74@ = 1

:Noname_6377
if 
  locate_char_any_means_3d 34@ sphere 74@ in_sphere -1746.543 -1881.785 94.44156 radius 0.8 0.8 0.8
goto_if_false @Noname_6502
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6502
40@ += 1
118@ = 1
Object.Destroy(96@)
print_help_formatted "%i/8" 40@ 

:Noname_6474
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6502
wait 0
goto @Noname_6474

:Noname_6502
if or
  54@ == 13
  55@ == 13
  56@ == 13
  57@ == 13
  58@ == 13
  59@ == 13
  60@ == 13
  61@ == 13
goto_if_false @Noname_6760
if 
  119@ == 0
goto_if_false @Noname_6760
if 
  75@ == 0
goto_if_false @Noname_6635
97@ = Object.Create(11801, -1587.272, -1872.188, 84.21436)
75@ = 1

:Noname_6635
if 
  locate_char_any_means_3d 34@ sphere 75@ in_sphere -1587.272 -1872.188 84.21436 radius 0.8 0.8 0.8
goto_if_false @Noname_6760
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6760
40@ += 1
119@ = 1
Object.Destroy(97@)
print_help_formatted "%i/8" 40@ 

:Noname_6732
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_6760
wait 0
goto @Noname_6732

:Noname_6760
if or
  54@ == 14
  55@ == 14
  56@ == 14
  57@ == 14
  58@ == 14
  59@ == 14
  60@ == 14
  61@ == 14
goto_if_false @Noname_7028
if 
  120@ == 0
goto_if_false @Noname_7028
if 
  76@ == 0
goto_if_false @Noname_6903
98@ = Object.Create(11801, -1731.53, -1967.052, 95.91431)
Object.Angle(98@) = 29.63177
76@ = 1

:Noname_6903
if 
  locate_char_any_means_3d 34@ sphere 76@ in_sphere -1731.53 -1967.052 95.91431 radius 0.8 0.8 0.8
goto_if_false @Noname_7028
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7028
40@ += 1
120@ = 1
Object.Destroy(98@)
print_help_formatted "%i/8" 40@ 

:Noname_7000
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7028
wait 0
goto @Noname_7000

:Noname_7028
if or
  54@ == 15
  55@ == 15
  56@ == 15
  57@ == 15
  58@ == 15
  59@ == 15
  60@ == 15
  61@ == 15
goto_if_false @Noname_7296
if 
  121@ == 0
goto_if_false @Noname_7296
if 
  77@ == 0
goto_if_false @Noname_7171
99@ = Object.Create(11801, -1479.341, -1879.673, 54.09831)
Object.Angle(99@) = 276.2158
77@ = 1

:Noname_7171
if 
  locate_char_any_means_3d 34@ sphere 63@ in_sphere -1479.341 -1879.673 54.09831 radius 0.8 0.8 0.8
goto_if_false @Noname_7296
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7296
40@ += 1
121@ = 1
Object.Destroy(99@)
print_help_formatted "%i/8" 40@ 

:Noname_7268
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7296
wait 0
goto @Noname_7268

:Noname_7296
if or
  54@ == 16
  55@ == 16
  56@ == 16
  57@ == 16
  58@ == 16
  59@ == 16
  60@ == 16
  61@ == 16
goto_if_false @Noname_7564
if 
  122@ == 0
goto_if_false @Noname_7564
if 
  78@ == 0
goto_if_false @Noname_7439
100@ = Object.Create(11801, -1373.575, -1924.999, 21.33813)
Object.Angle(100@) = 339.5802
78@ = 1

:Noname_7439
if 
  locate_char_any_means_3d 34@ sphere 63@ in_sphere -1373.575 -1924.999 21.33813 radius 0.8 0.8 0.8
goto_if_false @Noname_7564
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7564
40@ += 1
122@ = 1
Object.Destroy(100@)
print_help_formatted "%i/8" 40@ 

:Noname_7536
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7564
wait 0
goto @Noname_7536

:Noname_7564
if or
  54@ == 17
  55@ == 17
  56@ == 17
  57@ == 17
  58@ == 17
  59@ == 17
  60@ == 17
  61@ == 17
goto_if_false @Noname_7832
if 
  123@ == 0
goto_if_false @Noname_7832
if 
  79@ == 0
goto_if_false @Noname_7707
101@ = Object.Create(11801, -1574.461, -2085.995, 40.92689)
Object.Angle(101@) = 87.77917
79@ = 1

:Noname_7707
if 
  locate_char_any_means_3d 34@ sphere 63@ in_sphere -1574.461 -2085.995 40.92689 radius 0.8 0.8 0.8
goto_if_false @Noname_7832
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7832
40@ += 1
123@ = 1
Object.Destroy(101@)
print_help_formatted "%i/8" 40@ 

:Noname_7804
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_7832
wait 0
goto @Noname_7804

:Noname_7832
if or
  54@ == 18
  55@ == 18
  56@ == 18
  57@ == 18
  58@ == 18
  59@ == 18
  60@ == 18
  61@ == 18
goto_if_false @Noname_8100
if 
  124@ == 0
goto_if_false @Noname_8100
if 
  80@ == 0
goto_if_false @Noname_7975
102@ = Object.Create(11801, -1413.543, -2192.406, 20.95844)
Object.Angle(102@) = 85.5054
80@ = 1

:Noname_7975
if 
  locate_char_any_means_3d 34@ sphere 80@ in_sphere -1413.543 -2192.406 20.95844 radius 0.8 0.8 0.8
goto_if_false @Noname_8100
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8100
40@ += 1
124@ = 1
Object.Destroy(102@)
print_help_formatted "%i/8" 40@ 

:Noname_8072
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8100
wait 0
goto @Noname_8072

:Noname_8100
if or
  54@ == 19
  55@ == 19
  56@ == 19
  57@ == 19
  58@ == 19
  59@ == 19
  60@ == 19
  61@ == 19
goto_if_false @Noname_8368
if 
  125@ == 0
goto_if_false @Noname_8368
if 
  81@ == 0
goto_if_false @Noname_8243
103@ = Object.Create(11801, -1354.82, -2104.977, 30.55909)
Object.Angle(103@) = 331.3137
81@ = 1

:Noname_8243
if 
  locate_char_any_means_3d 34@ sphere 81@ in_sphere -1354.82 -2104.977 30.55909 radius 0.8 0.8 0.8
goto_if_false @Noname_8368
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8368
40@ += 1
125@ = 1
Object.Destroy(103@)
print_help_formatted "%i/8" 40@ 

:Noname_8340
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8368
wait 0
goto @Noname_8340

:Noname_8368
if or
  54@ == 20
  55@ == 20
  56@ == 20
  57@ == 20
  58@ == 20
  59@ == 20
  60@ == 20
  61@ == 20
goto_if_false @Noname_8636
if 
  126@ == 0
goto_if_false @Noname_8636
if 
  82@ == 0
goto_if_false @Noname_8511
104@ = Object.Create(11801, -1225.616, -2160.739, 26.52688)
Object.Angle(104@) = 14.81659
82@ = 1

:Noname_8511
if 
  locate_char_any_means_3d 34@ sphere 82@ in_sphere -1225.616 -2160.739 26.52688 radius 0.8 0.8 0.8
goto_if_false @Noname_8636
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8636
40@ += 1
126@ = 1
Object.Destroy(104@)
print_help_formatted "%i/8" 40@ 

:Noname_8608
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8636
wait 0
goto @Noname_8608

:Noname_8636
if or
  54@ == 21
  55@ == 21
  56@ == 21
  57@ == 21
  58@ == 21
  59@ == 21
  60@ == 21
  61@ == 21
goto_if_false @Noname_8904
if 
  127@ == 0
goto_if_false @Noname_8904
if 
  83@ == 0
goto_if_false @Noname_8779
105@ = Object.Create(11801, -1826.554, -2170.396, 78.49445)
Object.Angle(105@) = 315.9413
83@ = 1

:Noname_8779
if 
  locate_char_any_means_3d 34@ sphere 83@ in_sphere -1826.554 -2170.396 78.49445 radius 0.8 0.8 0.8
goto_if_false @Noname_8904
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8904
40@ += 1
127@ = 1
Object.Destroy(105@)
print_help_formatted "%i/8" 40@ 

:Noname_8876
if 
  is_button_pressed 0 pressed_key 11
goto_if_false @Noname_8904
wait 0
goto @Noname_8876

:Noname_8904
return 

:Noname_8906
wait 0
if or
  is_int_lvar_equal_to_int_lvar 54@ == 55@
  is_int_lvar_equal_to_int_lvar 54@ == 56@
  is_int_lvar_equal_to_int_lvar 54@ == 57@
  is_int_lvar_equal_to_int_lvar 54@ == 58@
  is_int_lvar_equal_to_int_lvar 54@ == 59@
  is_int_lvar_equal_to_int_lvar 54@ == 60@
  is_int_lvar_equal_to_int_lvar 54@ == 61@
goto_if_false @Noname_9056
generate_random_int_in_range 54@ = random_int_in_ranges 1 22
generate_random_int_in_range 55@ = random_int_in_ranges 1 22
generate_random_int_in_range 56@ = random_int_in_ranges 1 22
generate_random_int_in_range 57@ = random_int_in_ranges 1 22
generate_random_int_in_range 58@ = random_int_in_ranges 1 22
generate_random_int_in_range 59@ = random_int_in_ranges 1 22
generate_random_int_in_range 60@ = random_int_in_ranges 1 22
generate_random_int_in_range 61@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9056
if or
  is_int_lvar_equal_to_int_lvar 55@ == 54@
  is_int_lvar_equal_to_int_lvar 55@ == 56@
  is_int_lvar_equal_to_int_lvar 55@ == 57@
  is_int_lvar_equal_to_int_lvar 55@ == 58@
  is_int_lvar_equal_to_int_lvar 55@ == 59@
  is_int_lvar_equal_to_int_lvar 55@ == 60@
  is_int_lvar_equal_to_int_lvar 55@ == 61@
goto_if_false @Noname_9139
generate_random_int_in_range 55@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9139
if or
  is_int_lvar_equal_to_int_lvar 56@ == 54@
  is_int_lvar_equal_to_int_lvar 56@ == 55@
  is_int_lvar_equal_to_int_lvar 56@ == 57@
  is_int_lvar_equal_to_int_lvar 56@ == 58@
  is_int_lvar_equal_to_int_lvar 56@ == 59@
  is_int_lvar_equal_to_int_lvar 56@ == 60@
  is_int_lvar_equal_to_int_lvar 56@ == 61@
goto_if_false @Noname_9222
generate_random_int_in_range 56@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9222
if or
  is_int_lvar_equal_to_int_lvar 57@ == 54@
  is_int_lvar_equal_to_int_lvar 57@ == 55@
  is_int_lvar_equal_to_int_lvar 57@ == 56@
  is_int_lvar_equal_to_int_lvar 57@ == 58@
  is_int_lvar_equal_to_int_lvar 57@ == 59@
  is_int_lvar_equal_to_int_lvar 57@ == 60@
  is_int_lvar_equal_to_int_lvar 57@ == 61@
goto_if_false @Noname_9305
generate_random_int_in_range 57@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9305
if or
  is_int_lvar_equal_to_int_lvar 58@ == 54@
  is_int_lvar_equal_to_int_lvar 58@ == 55@
  is_int_lvar_equal_to_int_lvar 58@ == 56@
  is_int_lvar_equal_to_int_lvar 58@ == 57@
  is_int_lvar_equal_to_int_lvar 58@ == 59@
  is_int_lvar_equal_to_int_lvar 58@ == 60@
  is_int_lvar_equal_to_int_lvar 58@ == 61@
goto_if_false @Noname_9388
generate_random_int_in_range 58@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9388
if or
  is_int_lvar_equal_to_int_lvar 59@ == 54@
  is_int_lvar_equal_to_int_lvar 59@ == 55@
  is_int_lvar_equal_to_int_lvar 59@ == 56@
  is_int_lvar_equal_to_int_lvar 59@ == 57@
  is_int_lvar_equal_to_int_lvar 59@ == 58@
  is_int_lvar_equal_to_int_lvar 59@ == 60@
  is_int_lvar_equal_to_int_lvar 59@ == 61@
goto_if_false @Noname_9471
generate_random_int_in_range 59@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9471
if or
  is_int_lvar_equal_to_int_lvar 60@ == 54@
  is_int_lvar_equal_to_int_lvar 60@ == 55@
  is_int_lvar_equal_to_int_lvar 60@ == 56@
  is_int_lvar_equal_to_int_lvar 60@ == 57@
  is_int_lvar_equal_to_int_lvar 60@ == 58@
  is_int_lvar_equal_to_int_lvar 60@ == 59@
  is_int_lvar_equal_to_int_lvar 60@ == 61@
goto_if_false @Noname_9554
generate_random_int_in_range 60@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9554
if or
  is_int_lvar_equal_to_int_lvar 61@ == 54@
  is_int_lvar_equal_to_int_lvar 61@ == 55@
  is_int_lvar_equal_to_int_lvar 61@ == 56@
  is_int_lvar_equal_to_int_lvar 61@ == 57@
  is_int_lvar_equal_to_int_lvar 61@ == 58@
  is_int_lvar_equal_to_int_lvar 61@ == 59@
  is_int_lvar_equal_to_int_lvar 61@ == 60@
goto_if_false @Noname_9637
generate_random_int_in_range 61@ = random_int_in_ranges 1 22
goto @Noname_8906

:Noname_9637
Model.Load(11801)

:Noname_9642
if 
  not Model.Available(11801) //Check if paper model is available/loaded.
goto_if_false @Noname_9669
wait 0
goto @Noname_9642

:Noname_9669
return 

:Noname_9671
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 0.0 0.0 0.0
134@ -= 50.0
139@ -= 50.0
set_lvar_float_to_lvar_float 135@ = 134@
set_lvar_float_to_lvar_float 140@ = 139@
135@ += 100.0
140@ += 100.0
generate_random_float_in_range 136@ = random_float_in_ranges 134@ 135@
generate_random_float_in_range 141@ = random_float_in_ranges 139@ 140@
Actor.PutAt(35@, 136@, 141@, -100.0)
return 

:Noname_9796
generate_random_int_in_range 36@ = random_int_in_ranges 0 8
switch_start 36@ total_jumps 8 default_jump 0 @Noname_10197 jumps 0 @Noname_9933 1 @Noname_9967 2 @Noname_9999 3 @Noname_10033 4 @Noname_10065 5 @Noname_10097 6 @Noname_10131
switch_continued 7 @Noname_10165 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197 -1 @Noname_10197

:Noname_9933
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 150@ 0.0 0.0
goto @Noname_10197

:Noname_9967
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 150@ 150@ 0.0
goto @Noname_10197

:Noname_9999
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 0.0 150@ 0.0
goto @Noname_10197

:Noname_10033
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 149@ 150@ 0.0
goto @Noname_10197

:Noname_10065
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 150@ 149@ 0.0
goto @Noname_10197

:Noname_10097
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 0.0 149@ 0.0
goto @Noname_10197

:Noname_10131
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 149@ 0.0 0.0
goto @Noname_10197

:Noname_10165
get_offset_from_char_in_world_coords 134@ 139@ 144@ from_actor 34@ with_offset 149@ 149@ 0.0
goto @Noname_10197

:Noname_10197 //ENDSWITCH
Actor.PutAt(35@, 134@, 139@, -100.0)
return 

:Noname_10215
//LVAR_INT scplayer slenderman          //These are in the SCM source code here but not present in the port?
//LVAR_FLOAT x[2] y[2] z[2] distncia   //These are in the SCM source code here but not present in the port?
2@, 4@, 6@ = Actor.StorePos(1@)
3@, 5@, 7@ = Actor.StorePos(0@)
get_distance_between_coords_2d 8@ = distance_between_XY 2@ 4@ and_XY 3@ 5@
if or
  1.0 >= 6@
  17.0 > 8@
goto_if_false @Noname_10300
  is_pc_version 
goto @Noname_10335

:Noname_10300
if and
  is_char_on_screen 1@
  has_char_spotted_char 1@ spotted_actor 0@
goto_if_false @Noname_10333
  is_pc_version 
goto @Noname_10335

:Noname_10333
  is_australian_game 

:Noname_10335
cleo_return 0 

:Noname_10340
//read_memory 2@ = read_memory 4623710 size 4 virtual_protect 0 // This is the value what the CLEO port shipped with.
read_memory 2@ = read_memory 0x00468D5E size 4 virtual_protect 0 // This is the value of the original slenderman.cm source from github. It does not specify what it is.
set_lvar_int_to_lvar_int 3@ = 0@
3@ *= 4
add_int_lvar_to_int_lvar 2@ += 3@
write_memory 2@ size 4 value 1@ virtual_protect 0
cleo_return 0 
terminate_this_script 
