Quantcast

Jump to content

» «
Photo

[SA] Ped group weapon skill

4 replies to this topic
Kane49
  • Kane49

    The Actual Balla OG / a.k.a. ~iiCriminnaaL

  • Members
  • Joined: 06 Jun 2017
  • None

#1

Posted A week ago

Is there a way to increase weapon skill of a chosen ped type or maybe ped group? I want to increase the weapon skill of FBI agents to hitman skill (just like weapon_skill_to 2 in main.scm), but I'm not sure if it's possible in main.scm. I'd like to know if there's a way for it, at least as cleo script lines. (if it's not possible to be done in main.scm)


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#2

Posted A week ago

how do you want to switch weapon skill fbi or swat to 2
you must make an adress to the memory
or a script that tracks fbi actors and imitates the properties
and after that, there are hidden scripts for the police and they are not in main scm
I think you mean atack rate?


Kane49
  • Kane49

    The Actual Balla OG / a.k.a. ~iiCriminnaaL

  • Members
  • Joined: 06 Jun 2017
  • None

#3

Posted A week ago

I don't mean attack rate. I have a cleo script that changes FBI's weaps to Micro Uzi, so I want to make them carry wield Micro Uzis instead of single.

 

Anyone have a cleo script for it? (or the needed lines/sources)


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#4

Posted A week ago

I do not know what's going on, but if you want them to have both weapons, you have opcode
081A: set_actor $ ACTOR_SMOKE weapon_skill_to 2


guru_guru
  • guru_guru

    pajaro culiao

  • Members
  • Joined: 22 Jul 2017
  • Chile

#5

Posted A week ago Edited by guru_guru, A week ago.

this should do it 

SCRIPT_START
NOP
{
    CONST_INT FBI_ID 286
    LVAR_INT ped ped_model offset counter 
    
    main:
    WHILE IS_PC_VERSION
        WAIT 0        
            READ_MEMORY (0xB74490, 4, FALSE) (offset)
            offset += 0x4
            READ_MEMORY (offset, 4, FALSE) (offset)
            counter = 0

            WHILE counter < 35584
                READ_MEMORY (offset, 1, FALSE) (ped)
                offset += 0x1

                IF ped >= 0x00
                AND ped < 0x80
                    ped += counter
                    GET_CHAR_MODEL (ped) , (ped_model)

                    IF ped_model = FBI_ID
                        SET_CHAR_WEAPON_SKILL (ped, 2)
                    ENDIF
                    
                ENDIF
                counter += 0x100 
            ENDWHILE
    ENDWHILE
}
SCRIPT_END




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users