// This file was decompiled using sascm.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "ANTICSAW"
0662: NOP "XZYTRO SAYS HI"
0662: NOP "FROM UGBASE.EU"
:GET_INFO_FROM_INI_FILE
wait 0
if
0AAB: file_exists "CLEO\anticsaw.ini"
then
0AF0: 1@ = get_int_from_ini_file "cleo\anticsaw.ini" section "KEY" key "KEY1"
0AF0: 2@ = get_int_from_ini_file "cleo\anticsaw.ini" section "KEY" key "KEY2"
jump @MAIN
else
0ACD: show_text_highpriority "~R~ERROR: ~B~File ~R~not found : '~B~anticsaw.ini~R~', Script Aborted." 2500
004E: end_thread
end
:MAIN
repeat
wait 0
until 031D: actor $PLAYER_ACTOR hit_by_weapon 9
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $car closest_ped_to $target
if and
02D8: actor $target current_weapon == 9
0611: actor $target performing_animation "csaw_part"
0AB0: key_pressed 1@
0AB0: key_pressed 2@
then
04C4: store_coords_to $posx $posy $posz from_actor $target with_offset 0.0 0.0 5.0
0AB1: @TELEPORT 4 ACTOR $target TO $posx $posy $posz WITHOUT_RESET
jump @MAIN
else
01C2: remove_references_to_actor $target
jump @MAIN
end
:TELEPORT
0A96: 4@ = actor 0@ struct
4@ += 20
0A8D: 4@ = read_memory 4@ size 4 virtual_protect 0
4@ += 48 // X
0A8C: write_memory 4@ size 4 value $posx virtual_protect 0 // X
4@ += 4 // Y
0A8C: write_memory 4@ size 4 value $posy virtual_protect 0 // Y
4@ += 4 // Z
0A8C: write_memory 4@ size 4 value $posz virtual_protect 0 // Z
0AB2: ret 0