Página 1 de 1

making Drug dealers perform animations

Enviado: 13 Mar 2019, 03:45
por thalilmythos
If i wanted to make a drug dealer perform an animation, how would i go about it, i want to try to:

-Store an actor who is a dealer in the streets.
-Make him do an animation.

However, it seems that the dealer thread is hardcoded and i can't get the actor to perform the animation, so how should i go around disabling the "dealer" thread in the actor?

I know how to store an actor and all, i just need to know this in a cleo.

I use Sanny builder.

Re: making Drug dealers perform animations

Enviado: 13 Mar 2019, 05:24
por Junior_Djjr
It is working...
Imagem

Código: Selecionar tudo

{$CLEO}
0000:

while true
    wait 0

    068D: get_camera_position_to [email protected] [email protected] [email protected]
    if 0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 50.0 find_next false pass_deads true
    then
        repeat

            00A0: store_actor [email protected] position_to [email protected] [email protected] [email protected]
            016F: create_particle 1 rotation_factor 0.0 size 2.0 intensity 255 flags 0 0 0 at [email protected] [email protected] [email protected]

        until 8AE1: not [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 50.0 find_next true pass_deads true
    end
end
Never use wait inside repeat...until.

Re: making Drug dealers perform animations

Enviado: 13 Mar 2019, 17:15
por thalilmythos
I know, i think you missunderstood me, i don't want to know how to store him, i want to know, how to make the dealer actor perform an animation by opcode, because if you try  to make him perform any animation, the actor will try for about a msecond, then, go back to being a dealer, 0605 doesn't work 0812 neither, anyway none of the animation opcodes work on actors who are dealers from the streets.

Re: making Drug dealers perform animations

Enviado: 14 Mar 2019, 10:44
por Junior_Djjr
thalilmythos escreveu:
13 Mar 2019, 17:15
I know, i think you missunderstood me, i don't want to know how to store him, i want to know, how to make the dealer actor perform an animation by opcode, because if you try to make him perform any animation, the actor will try for about a msecond, then, go back to being a dealer, 0605 doesn't work 0812 neither, anyway none of the animation opcodes work on actors who are dealers from the streets.
Can he stop being a dealer forever? I think it's easy to remove the script from him, but then it would be necessary to reput the script again, so I don't know a good way.

Re: making Drug dealers perform animations

Enviado: 14 Mar 2019, 21:27
por thalilmythos
Yeah, it can, i want to make a script which allows me to rob them when approaching them from the back, aiming a gun to their head.

Make cj tell him to give him the money,

Make the dealer perform the "handsup" animation OR turn around and shoot

Have carl perform some animation that ressembles taking the money from the wallet or something, i'll find it in gta3.img ifp's

and then have the dealer run away, OR turn around and shoot.

So we can be Robbing drug dealers instead of allways killing them to get the money

for some variation.

At first however i was editing this: https://www.mixmods.com.br/2011/12/mort ... scoco.html

And i allready got a version that mixes the Bat execution and the normal execution into one script, improves the camera movement and put's the actor in place to prevent it from moving, however YOU CANNOT DO IT ON DEALERS.

I just want to know, how to remove the dealer script, then i'll worry about the rest

Re: making Drug dealers perform animations

Enviado: 15 Mar 2019, 20:44
por Junior_Djjr
This seems harder than I imagined, ped doesn't save information about the script on it, and you definitely need to have control over the particular given script, something that is not as easy to achieve as it is dynamic and multiplies the each ped.

Re: making Drug dealers perform animations

Enviado: 16 Mar 2019, 19:08
por thalilmythos
What about, recreating the ped?

I tried
storing coords
storing angle
storing health
storing model
storing pedtype
storing current weapon
and giving the actor the usual dealer's money 0 - 2000 randomly

then making it appear with all these characteristics
and since it happened in about 1 frame, it wasn't noticable, what i noticed tho... was that he appears at about a meter Up from the ground then falls, so it's too obvious, how can i make the ped appear allready in the ground?

Re: making Drug dealers perform animations

Enviado: 16 Mar 2019, 19:49
por Junior_Djjr
thalilmythos escreveu:
16 Mar 2019, 19:08
was that he appears at about a meter Up from the ground then falls, so it's too obvious, how can i make the ped appear allready in the ground?
Use Z coord -100.0.
But you can also create, and then use the opcode to put actor in some coord without offset (no_offset variation).
This is caused by the offset. The game adds a offset by default, so you can also fix it just decreasing the Z value. But I prefer to re-put the coord, it's safer I think, but this is yet more safer: f16-utilidades/t180-teleportar-algo-sem ... mper-acoes