Jump to content

smokes problem


arielnmz

Recommended Posts

hey.. I need help... whenever I use this:

 

 

00AA: store_car 0@ position_to 33@ 32@ 31@ 0AB1: call_scm_func @ANMZTRB_1646 6 33@ 32@ 31@ 10.0 30@ 29@ 28@ 27@ 26@  095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.1 0AB1: call_scm_func @ANMZTRB_1646 6 33@ 32@ 31@ 9.0 30@ 29@ 28@ 27@ 26@ 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 3.0 last_factor 0.1 0AB1: call_scm_func @ANMZTRB_1646 6 33@ 32@ 31@ 8.0 30@ 29@ 28@ 27@ 26@ 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 5.0 last_factor 0.1 0AB1: call_scm_func @ANMZTRB_1646 6 33@ 32@ 31@ 7.0 30@ 29@ 28@ 27@ 26@ 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 10.0 last_factor 0.1

 

 

I only get 0-1 out of the 4 smokes I summon...

 

 

but if I use this:

 

 

0407: store_coords_to 33@ 32@ 31@ from_car 0@ with_offset 0.0 10.0 0.0 095C: create_smoke_at 33@ 32@ 31@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.10407: store_coords_to 33@ 32@ 31@ from_car 0@ with_offset 0.0 9.0 0.0 095C: create_smoke_at 33@ 32@ 31@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.10407: store_coords_to 33@ 32@ 31@ from_car 0@ with_offset 0.0 8.0 0.0 095C: create_smoke_at 33@ 32@ 31@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.10407: store_coords_to 33@ 32@ 31@ from_car 0@ with_offset 0.0 7.0 0.0 095C: create_smoke_at 33@ 32@ 31@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.1

 

 

I get all the smokes I want... why???? what can I do if I NEED to use the first code instead of the second one...

Link to comment
Share on other sites

 

I get all the smokes I want... why???? what can I do if I NEED to use the first code instead of the second one...

what is 0AB1: doing with the values? show the whole script

Link to comment
Share on other sites

its a function i made... it takes the origin XYZ (33@ 32@ 31@) and returns the coords (28@ 27@ 26@) for the given distance (10.0), Z angle (30@) and yaw (29@)....

 

like a point 10.0 meters after the origin on the given Z angle and yaw... works fine, but the smoke is having trouble appearing...

 

but thanks I've solved it...

Link to comment
Share on other sites

 

its a function i made... it takes the origin XYZ (33@ 32@ 31@) and returns the coords (28@ 27@ 26@) for the given distance (10.0), Z angle (30@) and yaw (29@)....

 

like a point 10.0 meters after the origin on the given Z angle and yaw... works fine, but the smoke is having trouble appearing...

 

but thanks I've solved it...

I assume that the result coords 28@ 27@ 26@ let the smoke appear anywhere

To post the whole script is mostly the best way to solve a problem.

Link to comment
Share on other sites

well... there is anything but that code and the function... which is this:

 

 

:OffsetDesdePuntoConAngulo{Params-OrigenX       0@-OrigenY       1@-OrigenZ       2@-Distancia     3@-AnguloZ       4@-InclinacionY  5@}02F6: 33@ = sine 4@ // (float) 02F7: 32@ = cosine 4@ // (float) 02F6: 31@ = sine 5@ // (float)006B: 33@ *= 3@ // (float) 006B: 32@ *= 3@ // (float) 006B: 31@ *= 3@ // (float) 005B: 0@ += 33@ // (float)005B: 1@ += 32@ // (float)005B: 2@ += 31@ // (float)0AB2: ret 3 0@ 1@ 2@

 

 

Edit: I tested it using coronas instead of smokes and they seem to appear where they should be... dont know why smokes have problems appearing... and actually, I solved it putting some operation opocodes after the functions... look here:

 

 

0AB1: call_scm_func @ANMZTRB_1927 6 33@ 32@ 31@ 28@ 30@ 29@ 28@ 27@ 26@ 0087: 28@ = 28@ // (float) 0087: 27@ = 27@ // (float) 0087: 26@ = 26@ // (float) 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 1.0 last_factor 0.01 00AA: store_car 0@ position_to 33@ 32@ 31@ 0AB1: call_scm_func @ANMZTRB_1825 6 28@ 27@ 26@ 33@ 32@ 31@ 25@ 24@ 23@ 005B: 28@ += 25@ // (float) 005B: 27@ += 24@ // (float) 005B: 26@ += 23@ // (float) 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 3.0 last_factor 0.01 00AA: store_car 0@ position_to 33@ 32@ 31@ 0AB1: call_scm_func @ANMZTRB_1825 6 28@ 27@ 26@ 33@ 32@ 31@ 25@ 24@ 23@ 005B: 28@ += 25@ // (float) 005B: 27@ += 24@ // (float) 005B: 26@ += 23@ // (float) 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 5.0 last_factor 0.01 00AA: store_car 0@ position_to 33@ 32@ 31@ 0AB1: call_scm_func @ANMZTRB_1825 6 28@ 27@ 26@ 33@ 32@ 31@ 25@ 24@ 23@ 005B: 28@ += 25@ // (float) 005B: 27@ += 24@ // (float) 005B: 26@ += 23@ // (float) 095C: create_smoke_at 28@ 27@ 26@ velocity 0.0 0.0 0.0 RGBA 1.0 1.0 1.0 1.0 size 10.0 last_factor 0.01

 

 

I dont have the words to explan the second function, but what it escentially does, is get a point, 1m after the origin, towards the position of the car.... if i put the function right before the smoke opcode, it doesnt seem to work well....

Edited by arielnmz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.