Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

How do I add car components?


GivingItAllUpInHere

Recommended Posts

GivingItAllUpInHere

I want to know how do I install car mods to a car without adding the car component object to the DEFINE OBJECT part? like:

 

DEFINE OBJECT spl_b_bbr_m

 

I can install car mods but only if I define them like above,how did R* do it? I tried looking through the CARMOD1 external script but no luck,alot of arrays...

 

And I figured out what some unknown opcodes do that was declared as

"Unknown Action Sequence" These are for GTA SA

 

05BA: Make_actor $actor stop_for $time ms (Makes actor stop for $time ms)

 

05BB: Unknown $actor @1 @2 (Unknown,if both @1 and @2 are 0,the player falls on his back,with some values he walks...)

 

05BC: Make_actor $actor jump (Makes the actor jump)

 

05BD: Make_actor $actor catch_breath_for $time ms (The actor catches his breath for $time ms)

 

05BE: Kill_actor $actor (Kill the actor. NOTE: OPCODE 0321 doesn't kill the actor)

 

05BF: Make_actor $actor1 look_at_actor $actor2 for $time ms (Actor1 looks at actor2 for $time ms)

 

05C0: Make_actor $actor look_at_car $car for $time ms (Actor looks at car for $time ms)

 

05C1: Unknown

 

05C2: Make_actor $actor give_hand_gesture (Actor raised right hand,like saying "Go Away!")

 

05C3: Make_actor $actor back_away (Actor back away like he was pushed)

 

05C4: Make_actor $actor surrender_for $time ms (Actor raises arms in the air for $time,like if you point a gun to a ped)

 

05C5: Make_actor $actor take_cover_for $time ms (Actor ducks and puts his arms on his head for $time ms,"Taking Cover")

 

05C6: Unknown (Never used in the original mission script)

 

05C7: Make_actor $actor buy_something (Actor buys something,can't really see what he does)

 

05C8: Make_actor $actor look_around (Actor looks around)

 

05C9: Make_actor $actor lean_forward_and_look_around_for $time ms (Actor leans a bit forward and looks around for $time)

 

-----------------------------------------------------------------------------------------------------------------------------

05CA: Make_actor $actor enter_car $car in_passenger_seat $Pass time_limit $time ms (Puts actor into a passenger seat)

 

$Pass is the passenger seat number:

 

0=Front right seat

1=Rear left seat

2=Rear right seat

 

$time is the time limit for the actor to get into the car,if the actor is still not in the car after this time limit,the

 

actor gets instantly put into the car.

-----------------------------------------------------------------------------------------------------------------------------

 

-----------------------------------------------------------------------------------------------------------------------------

05CB: Put_actor $actor into_car $car driverseat_time_limit $time ms (Puts actor into a driverseat)

 

$time is the time limit for the actor to get into the car,if the actor is still not in the car after this time limit,the

 

actor gets instantly put into the car.

-----------------------------------------------------------------------------------------------------------------------------

 

05CC: Unknown (Never used in the original mission script)

 

05CD: Unknown R* used it as $actor $car (Doesn't seem to do anything)

 

05CE: Never Used

 

05CF: $actor $car $X $Y $Z (seems to run away from $car,follows ped paths,what's the $X $Y $Z for?)

 

05D0: Never Used

 

05D1: Unknown (Got quite a few parameters)

 

-----------------------------------------------------------------------------------------------------------------------------

05D2: Put_actor $actor into_Car $car and_drive_anywhere_at_speed $speed with_driving_type $type (Makes actor get into a car

 

and then he drives anywhere

 

$type is the driving type: he wants to,follows roads)

 

0=Actor stops at traffic lights,avoids cars etc.

1=The same as 0, there might be a difference,I don't know

2=Actor ignores traffic lights and avoids cars

3=Actor ignores traffic lights and doesn't avoid cars,drives right into them

4=Actor ignores traffic lights but avoids cars,doesn't overtake them,if a car stops infront of him he also stops

-----------------------------------------------------------------------------------------------------------------------------

 

-----------------------------------------------------------------------------------------------------------------------------

05D3: Make_actor $actor go_to_point $X $Y $Z style $style time_limit $time ms (Makes actor go to a certain point (x,y,z)

 

$style is the walk or run style,need to experiment,R* mostly used 4 and sometimes 6 (both is running)

$time is the time limit for the actor to go the the certain point,if the actor is not at the point after $time then the actor

 

gets instantly put at the point

-----------------------------------------------------------------------------------------------------------------------------

 

-----------------------------------------------------------------------------------------------------------------------------

05D4: Make_actor $actor turn_to_Zangle $Zangle (Makes actor turn to $Zangle)

 

This opcode turns the actor slower than opcode 0173: set_actor $PLAYER_ACTOR z_angle_to 262.0

This opcode is more realistic in turning the actor

-----------------------------------------------------------------------------------------------------------------------------

 

05D5: Never Used

 

05DE: Make_actor $actor walk_to_anywhere (Actor walks to anywhere he wants,he makes sure it is safe before he crosses a road)

 

05E2: Make_actor $actor1 kill $actor2 (Actor1 kills actor2,if actor1 has a weapon he uses it)

 

-----------------------------------------------------------------------------------------------------------------------------

0657: With_car $car open_body_part $part and_freeze (Opens a certain part of a car)

 

$part is the bodypart of the car:

 

0=hood

1=trunk

2=front left door

3=front right door

4=rear left door

5=rear right door

-----------------------------------------------------------------------------------------------------------------------------

 

That's what I have got.

Edited by GivingItAllUpInHere
Link to post
Share on other sites
spaceeinstein
Damn, you could've looked in the SA Opcdes topic since you rediscovered half of the opcodes in that list. Nice finds on many of the other ones.
Link to post
Share on other sites

 

05CA: Make_actor $actor enter_car $car in_passenger_seat $Pass time_limit $time ms

 

Yeah, great. Thats it, what I searched inlove.gifcookie.gifcookie.gif

I tried

01D4: actor $PLAYER_ACTOR go_to_car @1 and_enter_it_as_a_passenger

because it is shown in the SA database, but I only got crashes

 

05CA: Make_actor $PLAYER_ACTOR enter_car @1 in_passenger_seat $2 time_limit $10000 ms

 

But pity, CJ only enter the front passenger_seat once with and once

without enter-animation, each how to set the seat param.

And it seems, when there is a driver in the car, only without enter-animation.

Link to post
Share on other sites
GivingItAllUpInHere

It will always have an animation, unless the timit limit passes where the actor will be put instantly into the car (no animation).

 

In this:

 

05CA: Make_actor $PLAYER_ACTOR enter_car $10999 in_passenger_seat 0 time_limit 5000 ms

 

the actor (CJ) will have 5 seconds to enter the car in the front passenger seat,after 5 seconds when he is still not in the car he is instantly placed into to the car,if you want to put him instantly into the rear left passenger seat use:

 

05CA: Make_actor $PLAYER_ACTOR enter_car $10999 in_passenger_seat 1 time_limit 0 ms

 

If you want the actor to take as long as he wants,use -1 in the time limit.

 

But I still need to know how did R* install car mods to cars... whatsthat.gif

 

I found a list of carmods the the GTA SA directory (carmods.dat) but I can only use them when I add them to the DEFINE list,which is using memory (i think) R* didn't add them to the define,anyone knows what they did?

Link to post
Share on other sites

 

05CA: Make_actor $PLAYER_ACTOR enter_car $10999 in_passenger_seat 0 time_limit 5000 ms

 

 

Thanks for answer

Did You test it with $player actor ? I tried seat 0,1,2,3,4 and got the results which I described. And by the time param without $, I got a crash.

 

The car components ?

I have no experience with this stuff.

I know the "Transfender Fix"

and this great thread

Link to post
Share on other sites
GivingItAllUpInHere

Sure,thx for that topic.Btw a car normally only have 3 passenger seats so you would mostly use seats 0 - 2 (In an ambulance seat 1 and 2 is at the back). I tested this with $PLAYER_ACTOR and it worked 100% At the $time parameter you don't have to have a $ (then you're using a variable there) It worked correctly by me by just using a normal value like 2500 or 10000 Just like the 0001: wait 2500 ms opcode

Link to post
Share on other sites

Sorry to me for the lax link blush.gif

I ment this topic

________________________________________________

 

This works fine:

 

05CA: unknown_action_sequence $PLAYER_ACTOR @1 8000  2

 

The position of seat and time in Your typing is changed.

This works too:

 

05CA: Make_actor $PLAYER_ACTOR enter_car @1 in_passenger_seat 8000 time_limit 2 ms

 

Edited by ZAZ
Link to post
Share on other sites
spaceeinstein
You have to download the latest Sascm.ini. Keep the old one if you want to do some modding unless you know what was changed.
Link to post
Share on other sites

 

You have to download the latest Sascm.ini. Keep the old one if you want to do some modding unless you know what was changed.

Thanks for th tip cookie.gif

Link to post
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.