Есть вопрос по поводу переработки cleo скрипта

eowildor

Известный
Автор темы
25
2
В старой теме нашел один скрипт, позволяющий зависать в воздухе на вертолете, но есть одно НО.
Этот скрипт конфликтует с чем-то, и в тот момент, когда ты садишься на пассажирку - тебя крашит.
Библиотека cleo, sampfuncs установлена последней версии.
Вопрос в том, с чем может быть конфликт и можно ли убрать две функции и оставить только чит-код "klk" с зависанием?


magni.cs:
0000: NOP

:NONAME_2
wait 0
0AFA:
else_jump @NONAME_2
7@ = 0
hex
 34 0B 0E 09 2F 68 65 6C 69 68 65 6C 70 01 D8 FF
 FF FF 43 0B
end

:NONAME_42
wait 0
if
04A9:   actor $PLAYER_ACTOR driving_heli
else_jump @NONAME_373
if
0ADC:   test_cheat "go"
else_jump @NONAME_319
0AB6: store_target_marker_coords_to 1@ 2@ 4@ // IF and SET
0@ = Actor.CurrentCar($PLAYER_ACTOR)
Car.StorePos(0@, 6@, 5@, 3@)
if
86BD:   not no_obstacles_between 1@ 2@ 3@ and 6@ 5@ 3@ solid 1 car 0 actor 0 object 1 particle 1
else_jump @NONAME_220

:NONAME_153
wait 10
hex
 72 0C 04 57 04 01
end
Car.StorePos(0@, 6@, 5@, 3@)
06BD:   no_obstacles_between 1@ 2@ 3@ and 6@ 5@ 3@ solid 1 car 0 actor 0 object 1 particle 1
else_jump @NONAME_153
hex
 72 0C 04 57
end
0004: 768@s = 1536@  // Note: the incorrect math opcode was used here
0000: NOP
hex
 20 41
end
0087: 5@ = 3@ // (float)
3@ += 4.0
04A2: set_heli 0@ fly_to 1@ 2@ 3@ altitude_between 5@ and 3@
0ACD: show_text_highpriority "AutoPilot Active!" time 3000

:NONAME_292
wait 0
0AB1: call_scm_func @NONAME_509 2 1@ 2@ 
else_jump @NONAME_292

:NONAME_319
if
0ADC:   test_cheat "klk"
else_jump @NONAME_373
0@ = Actor.CurrentCar($PLAYER_ACTOR)

:NONAME_345
wait 40
Car.SetSpeedInstantly(0@, 0.0)
gosub @NONAME_624
else_jump @NONAME_345

:NONAME_373
if
0ADC:   test_cheat "gg"
else_jump @NONAME_436
0@ = 0

:NONAME_397
0AB1: call_scm_func @NONAME_659 1 0@ 
wait 1000
0@ += 1
  0@ > 2
else_jump @NONAME_397

:NONAME_436
if and
0AB0:   key_pressed 17
0AB0:   key_pressed 96
else_jump @NONAME_502
0AB1: call_scm_func @NONAME_708 0 

:NONAME_465
wait 0
if and
8AB0:   not key_pressed 17
8AB0:   not key_pressed 96
else_jump @NONAME_495
jump @NONAME_502

:NONAME_495
jump @NONAME_465

:NONAME_502
jump @NONAME_42

:NONAME_509
if or
00EC:   actor $PLAYER_ACTOR sphere 0 near_point 0@ 1@ radius 20.0 20.0
0AB0:   key_pressed 98
else_jump @NONAME_617
0ACD: show_text_highpriority "AutoPilot Off!" time 2500
hex
 72 0C 04 57 04 00
end
2@ = Actor.CurrentCar($PLAYER_ACTOR)
072A: put_actor $PLAYER_ACTOR into_car 2@ driverseat
Player.CanMove($PLAYER_ACTOR) = False
wait 50
Player.CanMove($PLAYER_ACTOR) = True
0485:   return_true
jump @NONAME_619

:NONAME_617
059A:   return_false
0AB2: ret 0 #

:NONAME_624
if or
0AB0:   key_pressed 98
0ADC:   test_cheat "klk"
else_jump @NONAME_655
0485:   return_true
jump @NONAME_657

:NONAME_655
059A:   return_false

:NONAME_657
return

:NONAME_659
2@ = Actor.CurrentCar($PLAYER_ACTOR)
0432: 23@ = get_actor_handle_from_car 2@ passenger_seat 0@
hex
 2B 0B 03 17 00 03 18 00 F9 0A 0E 09 2F 65 6A 65
 63 74 20 25 64 03
end
0018:    // Note: the incorrect math opcode was used here
0AB2: ret 0 #

:NONAME_708
0AC8: 1@ = allocate_memory_size 128
0AD3: 1@ = format "Передний правый %cЗадний левый%cЗадний правый %c" 10 10 10 
hex
 3B 0B 04 11 0E 06 C4 E5 F1 E0 ED F2
end
0103:   actor stopped_in_car
040E:
hex
 CE EA E5 E9 0E 07 C7 E0 EA F0 FB F2 01 00
end
0ACD: show_text_highpriority "Activated!" time 1000

:NONAME_832
wait 0
if
hex
 3C 0B 04 11
end
0103:   actor stopped_in_car
0303: show_text_4numbers_highpriority GXT
hex
 04 00
end
else_jump @NONAME_963
if
  1@ == 1
else_jump @NONAME_945

:NONAME_877
wait 0
if
0AB0:   key_pressed 17
else_jump @NONAME_916
0AB1: call_scm_func @NONAME_659 1 3@ 
jump @NONAME_927

:NONAME_916
0AB0:   key_pressed 96
else_jump @NONAME_877

:NONAME_927
0ACD: show_text_highpriority "End!" time 1000
jump @NONAME_956

:NONAME_945
0ACD: show_text_highpriority "Off!" time 1000

:NONAME_956
jump @NONAME_970
jump @NONAME_832

:NONAME_970
hex
 A4 0B 04 11
end
0AB2: ret 0 #
 

Refraktor

Известный
136
73
 

eowildor

Известный
Автор темы
25
2
Несомненно, этот плагин полезен, но это не то, что мне надо. Спасибо