Help with code | Ajuda com código

    Compartilhe
    avatar
    davis60
    Mensagens Nível 2
    Mensagens Nível 2

    Mensagens : 57
    Reputação : 1
    Desde : 11/07/2014
    Idade : 18
    Link : davis60lf2.page4.me/

    Help with code | Ajuda com código

    Mensagem por davis60 em Ter 26 Ago 2014, 12:00

    I am creating a cleo mod. People walk in rain with umbrella new version. Got the model to replace gun_cane.
    Bugs:
    Only one ped at a time have the umbrella.
    Game crashes after some time after raining.
    ----------------------
    Estou criando um mod cleo. As pessoas andam
    na chuva com nova versão guarda-chuva. Tem o
    modelo para substituir gun_cane.
    Bugs:
    Apenas um ped de cada vez tem o guarda-chuva.
    Jogo trava depois de algum tempo após chover.




    CODE:

    // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
    {$CLEO .CS}

    //-------------MAIN---------------
    0000: NOP
    Model.Load(#GUN_CANE)
    038B: load_requested_models

    :UMBRELLA_28
    wait 2000

    :UMBRELLA_33
    wait 0
    if
    Player.Defined($PLAYER_CHAR)
    else_jump @UMBRELLA_28
    09E8: 10@ = actor $PLAYER_ACTOR active_interior
    if and
    $ONMISSION == 0
    10@ == 0
    else_jump @UMBRELLA_28
    0A8D: 11@ = read_memory 13112096 size 2 virtual_protect 0
    if or
    11@ == 8
    11@ == 16
    else_jump @UMBRELLA_544
    Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
    0A3E: unknown_get_actor_in_sphere 1@ 2@ 3@ radius 20.0 20.0 2.0 handle_as 4@
    if
    056D: actor 4@ defined
    else_jump @UMBRELLA_33
    if and
    not Actor.Driving(4@)
    not Actor.Stopped(4@)
    not Actor.Animation(4@) == "WALK_ROCKET"
    else_jump @UMBRELLA_544
    if or
    Actor.Model(4@) == #BMYDRUG
    Actor.Model(4@) == #WMYDRUG
    Actor.Model(4@) == #LAEMT1
    Actor.Model(4@) == #LVEMT1
    Actor.Model(4@) == #SFEMT1
    Actor.Model(4@) == #LAFD1
    Actor.Model(4@) == #LVFD1
    else_jump @UMBRELLA_295
    jump @UMBRELLA_33

    :UMBRELLA_295
    if or
    Actor.Model(4@) == #SFFD1
    Actor.Model(4@) == #LAPD1
    Actor.Model(4@) == #SFPD1
    Actor.Model(4@) == #LVPD1
    Actor.Model(4@) == #CSHER
    Actor.Model(4@) == #LAPDM1
    Actor.Model(4@) == #DSHER
    else_jump @UMBRELLA_369
    jump @UMBRELLA_33

    :UMBRELLA_369
    if and
    Actor.Model(4@) == #SWAT
    Actor.Model(4@) == #FBI
    Actor.Model(4@) == #ARMY
    else_jump @UMBRELLA_911
    jump @UMBRELLA_33

    :UMBRELLA_911
    31@ = Actor.Health(4@)
    jump @UMBRELLA_411

    :UMBRELLA_411
    Actor.StorePos(4@, 7@, 8@, 9@)
    6@ = Object.Create(#GUN_CANE, 7@, 8@, 9@)
    070A: AS_actor 4@ attach_to_object 6@ offset 0.065 0.03 0.0 on_bone 6 16 perform_animation "NULL" IFP_file "NULL" time -1
    wait 80
    05D8: AS_assign_scmpath to_actor 4@ flags 4 0
    wait 50
    0812: AS_actor 4@ perform_animation "WALK_ROCKET" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
    jump @UMBRELLA_297

    :UMBRELLA_297
    if
    not Actor.Animation($PLAYER_ACTOR) == "EV_STET"
    jf @UMBRELLA_492
    if
    not Actor.Animation($PLAYER_ACTOR) == "EV_DIVE"
    jf @UMBRELLA_492
    if
    not Actor.Animation($PLAYER_ACTOR) == "COWER"
    jf @UMBRELLA_492
    if
    not Actor.Animation($PLAYER_ACTOR) == "HANDSUP"
    jf @UMBRELLA_492
    32@ = Actor.Health(4@)
    if
    003B: 32@ > 31@ // (int)
    jf @UMBRELLA_492
    wait 0
    jump @UMBRELLA_412

    :UMBRELLA_492
    Object.RemoveReferences(6@)
    jump @UMBRELLA_544

    :UMBRELLA_412
    0812: AS_actor 4@ perform_animation "WALK_ROCKET" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1
    jump @UMBRELLA_297


    :UMBRELLA_544
    jump @UMBRELLA_28
    avatar
    Junior_Djjr
    Scripter CLEO - Avançado
    Scripter CLEO - Avançado

    Título : Não quero acreditar, quero saber.
    Mensagens : 21614
    Reputação : 633
    Desde : 03/05/2012
    Idade : 21
    Localização : Ibitinga - SP
    Link : www.MixMods.com.br

    Re: Help with code | Ajuda com código

    Mensagem por Junior_Djjr em Ter 26 Ago 2014, 16:48

    you're not creating, this code is a decompiled code...


    ____________________
    avatar
    davis60
    Mensagens Nível 2
    Mensagens Nível 2

    Mensagens : 57
    Reputação : 1
    Desde : 11/07/2014
    Idade : 18
    Link : davis60lf2.page4.me/

    Re: Help with code | Ajuda com código

    Mensagem por davis60 em Ter 26 Ago 2014, 21:56

    There was a previous version of this mod. And I am remaking it. I am getting some bugs, so please help.
    avatar
    Junior_Djjr
    Scripter CLEO - Avançado
    Scripter CLEO - Avançado

    Título : Não quero acreditar, quero saber.
    Mensagens : 21614
    Reputação : 633
    Desde : 03/05/2012
    Idade : 21
    Localização : Ibitinga - SP
    Link : www.MixMods.com.br

    Re: Help with code | Ajuda com código

    Mensagem por Junior_Djjr em Ter 26 Ago 2014, 22:51

    lean to create cleo scripts, then create the script...
    don't "remake" anything, this code of you are editing is a trash

    ...and, years ago i created a mod like this, much bugs, i know of this is difficult to create


    ____________________
    avatar
    davis60
    Mensagens Nível 2
    Mensagens Nível 2

    Mensagens : 57
    Reputação : 1
    Desde : 11/07/2014
    Idade : 18
    Link : davis60lf2.page4.me/

    Re: Help with code | Ajuda com código

    Mensagem por davis60 em Ter 26 Ago 2014, 23:39

    Okay, I will make this again.

    Conteúdo patrocinado

    Re: Help with code | Ajuda com código

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Seg 26 Jun 2017, 04:13