CLEO Help Anti chainsaw xzytro crashing

CLEO related
Status
Not open for further replies.

SWGamer

Active member
Joined
Feb 19, 2014
Messages
85
Reaction score
0
So Xzytro tried to fix the bug but he tried his best but fail :sweet_jesus:
So maybe there could be a bug and u can help me find it.
Here the cleo codes

And also there is a ini and its attached

// 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
    print "~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
 

Attachments

  • misfunctioning antichainsaw.rar
    2.4 KB · Views: 62

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
:computer_guy: Hmm i think i made a problem here :

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

by forgetting to add Actor.putat. But i'm not sure.  :imoverit: Idk how to use 0ab1 anyway.
 

SAMPHACKER

Active member
Joined
Apr 9, 2014
Messages
90
Reaction score
0
what does anti-chainsaw do?

sorry for a totally out of topic question.. but I'm excited to know as the name sounds interesting and it may be of use to me as well..
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
I made a chainsaw gm a while ago, (i don't really remeber how  :face_palm:) i'll try tomorrow again, as i need someone to help me test it.
 
Status
Not open for further replies.
Top