Можете перевести скрипт CLEO в Lua?

Статус
В этой теме нельзя размещать новые ответы.

MrCold

Активный
Автор темы
364
118
Хочу это CLEO перевести на Lua, можете мне в этом помочь? Буду очень признателен:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "$PLAYER_ACTOR"
0662: printstring "]OP[GOD-FLY.CS MADE FOR PROJECT ]OP[CODE.EXE"
0662: printstring "WWW.YOUTUBE.COM/OPCODEXE"

:$PLAYER_ACTOR_93
wait 0
0ADC:   test_cheat "FLY"
else_jump @$PLAYER_ACTOR_93
018C: play_sound 1052 at 0.0 0.0 0.0
13@ = 3.0
Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
0992: set_player $PLAYER_ACTOR weapons_scrollable 0
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 10.0
04ED: load_animation "DEALER_IDLE"
04ED: load_animation "FALL_SKYDIVE"
04ED: load_animation "LKUP_LOOP"
04ED: load_animation "PAULNMAC"
04ED: load_animation "WANK_LOOP"
0ACD: show_text_highpriority " ~R~]OP[GOD_FLY ~W~ BY OPCODE.EXE ~G~ON" time 3000

:$PLAYER_ACTOR_319
wait 0
if and
   Player.Defined($PLAYER_ACTOR)
00E1:   player 0 pressed_key 5
else_jump @$PLAYER_ACTOR_362
13@ += 1.0
jump @$PLAYER_ACTOR_2184

:$PLAYER_ACTOR_362
if and
00E1:   player 0 pressed_key 7
   Player.Defined($PLAYER_ACTOR)
else_jump @$PLAYER_ACTOR_401
13@ -= 1.0
jump @$PLAYER_ACTOR_2184

:$PLAYER_ACTOR_401
if
0AB0:   key_pressed 32
else_jump @$PLAYER_ACTOR_426
13@ = 2.0

:$PLAYER_ACTOR_426
wait 0
if
0AB0:   key_pressed 16
else_jump @$PLAYER_ACTOR_770
0812: AS_actor $PLAYER_ACTOR perform_animation "LKUP_LOOP" IFP "ON_LOOKERS" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 80.0
14@ = 0.5
Actor.StorePos($PLAYER_ACTOR, 20@, 21@, 22@)
068D: get_camera_position_to 24@ 25@ 26@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
006B: 20@ *= 14@ // (float)
006B: 21@ *= 14@ // (float)
006B: 22@ *= 14@ // (float)
005B: 22@ += 14@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
2@ += 80.0
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 2@
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_770
if
0AB0:   key_pressed 87
else_jump @$PLAYER_ACTOR_968
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 55.0 0.0
0063: 3@ -= 0@ // (float)
0063: 4@ -= 1@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 0.5
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_968
if
0AB0:   key_pressed 65
else_jump @$PLAYER_ACTOR_1191
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset -55.0 0.0 0.0
0063: 3@ -= 0@ // (float)
0063: 4@ -= 1@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 0.5
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426
0662: printstring "ACTOR-WHIRLING BY FYP"

:$PLAYER_ACTOR_1191
if
0AB0:   key_pressed 82
else_jump @$PLAYER_ACTOR_1411
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 15@
if
056D:   actor 15@ defined
else_jump @$PLAYER_ACTOR_426
Actor.StorePos(15@, 0@, 1@, 2@)
4@ = Actor.Angle($PLAYER_ACTOR)
4@ += 4.5
if
  4@ > 359.0
else_jump @$PLAYER_ACTOR_1296
4@ += -359.0

:$PLAYER_ACTOR_1296
02F6: 5@ = sine 4@ // (float)
02F7: 6@ = cosine 4@ // (float)
7@ = 3.4
006B: 7@ *= 5@ // (float)
005B: 7@ += 0@ // (float)
8@ = 3.4
006B: 8@ *= 6@ // (float)
005B: 8@ += 1@ // (float)
0087: 9@ = 2@ // (float)
9@ -= 1.0
Actor.PutAt($PLAYER_ACTOR, 7@, 8@, 9@)
Actor.Angle($PLAYER_ACTOR) = 4@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_1411
if
0AB0:   key_pressed 67
else_jump @$PLAYER_ACTOR_1613
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 15@
if
056D:   actor 15@ defined
else_jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_1453
wait 0
if
0AB0:   key_pressed 67
else_jump @$PLAYER_ACTOR_426
Actor.StorePos($PLAYER_ACTOR, 2@, 3@, 4@)
Actor.StorePos(15@, 5@, 6@, 7@)
0063: 2@ -= 5@ // (float)
0063: 3@ -= 6@ // (float)
0604: get_Z_angle_for_point 2@ 3@ store_to 7@
7@ += 180.0
Actor.Angle($PLAYER_ACTOR) = 7@
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 0.3
0812: AS_actor $PLAYER_ACTOR perform_animation "WANK_LOOP" IFP "PAULNMAC" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
jump @$PLAYER_ACTOR_1453

:$PLAYER_ACTOR_1613
if
0AB0:   key_pressed 4
else_jump @$PLAYER_ACTOR_1756
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 -30.0
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_1756
if
0AB0:   key_pressed 83
else_jump @$PLAYER_ACTOR_1954
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 -55.0 0.0
0063: 3@ -= 0@ // (float)
0063: 4@ -= 1@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 0.5
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_1954
if
0AB0:   key_pressed 68
else_jump @$PLAYER_ACTOR_2152
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 55.0 0.0 0.0
0063: 3@ -= 0@ // (float)
0063: 4@ -= 1@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 3@ 4@ 0.5
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
jump @$PLAYER_ACTOR_426

:$PLAYER_ACTOR_2152
if
0AB0:   key_pressed 17
else_jump @$PLAYER_ACTOR_2184
0687: clear_actor $PLAYER_ACTOR task
wait 500
jump @$PLAYER_ACTOR_2741

:$PLAYER_ACTOR_2184
if and
   Player.Defined($PLAYER_ACTOR)
00E1:   player 0 pressed_key 6
else_jump @$PLAYER_ACTOR_2518
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
0812: AS_actor $PLAYER_ACTOR perform_animation "FALL_SKYDIVE" IFP "PARACHUTE" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
Actor.StorePos($PLAYER_ACTOR, 20@, 21@, 22@)
068D: get_camera_position_to 24@ 25@ 26@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
006B: 20@ *= 13@ // (float)
006B: 21@ *= 13@ // (float)
006B: 22@ *= 13@ // (float)
005B: 22@ += 13@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 1@ 2@
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1
jump @$PLAYER_ACTOR_2661

:$PLAYER_ACTOR_2518
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 0.5
0812: AS_actor $PLAYER_ACTOR perform_animation "DEALER_IDLE" IFP "DEALER" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
068D: get_camera_position_to 1@ 2@ 3@
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
0604: get_Z_angle_for_point 4@ 5@ store_to 7@
Actor.Angle($PLAYER_ACTOR) = 7@
Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 1

:$PLAYER_ACTOR_2661
0ADC:   test_cheat "FLY"
else_jump @$PLAYER_ACTOR_319
0687: clear_actor $PLAYER_ACTOR task
0687: clear_actor $PLAYER_ACTOR task
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
0992: set_player $PLAYER_ACTOR weapons_scrollable 1
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 0
018C: play_sound 1052 at 0.0 0.0 0.0
jump @$PLAYER_ACTOR_93

:$PLAYER_ACTOR_2741
if
0AB0:   key_pressed 17
else_jump @$PLAYER_ACTOR_3022
0812: AS_actor $PLAYER_ACTOR perform_animation "LKUP_LOOP" IFP "ON_LOOKERS" framedelta 2.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 10.0
14@ = 0.5
Actor.StorePos($PLAYER_ACTOR, 20@, 21@, 22@)
068D: get_camera_position_to 24@ 25@ 26@
0063: 20@ -= 24@ // (float)
0063: 21@ -= 25@ // (float)
0063: 22@ -= 26@ // (float)
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
006B: 20@ *= 14@ // (float)
006B: 21@ *= 14@ // (float)
006B: 22@ *= 14@ // (float)
005B: 22@ += 14@ // (float)
005B: 0@ += 20@ // (float)
005B: 1@ += 21@ // (float)
005B: 2@ += 22@ // (float)
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0063: 0@ -= 3@ // (float)
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
2@ += 10.0
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0@ 1@ 2@
wait 500
jump @$PLAYER_ACTOR_2184

:$PLAYER_ACTOR_3022
wait 0
0ADC:   test_cheat "FLY"
else_jump @$PLAYER_ACTOR_2741
0687: clear_actor $PLAYER_ACTOR task
0687: clear_actor $PLAYER_ACTOR task
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
0992: set_player $PLAYER_ACTOR weapons_scrollable 1
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer 0
018C: play_sound 1052 at 0.0 0.0 0.0
0ACD: show_text_highpriority "~R~]OP[GOD_FLY ~W~ BY OPCODE.EXE ~G~OFF" time 3000
jump @$PLAYER_ACTOR_93
0662: printstring "]OP[GOD-FLY.CS MADE BY OPCODEXE"
0662: printstring "WWW.YOUTUBE.COM/OPCODEXE"
 
Статус
В этой теме нельзя размещать новые ответы.