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. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. 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. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

      1. Guides & Strategies
      2. Help & Support
    11. 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. DYOM
      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

Sign in to follow this  
TheHeggy

Adding car spawn locations

Recommended Posts

TheHeggy

I thought I might add a spawn location in front of CJ's house so there's always a car there (maybe the SWAT tank wink.gif ), but when I open the main.scm file the format for generating parked cars seems to be different. Here's what I'm seeing:

 

 

014B: $2335 = init_parked_car_generator  417 -1 -1  1 alarm  0 door_lock  0  0  10000 at  383.178  2538.891  16.53 angle  180.0014C: set_parked_car_generator $2335 cars_to_generate_to  0

 

 

Now, shouldn't there be something in there that defines what car to spawn? If I remember correctly, in Vice City there was a "#CAR_NAME" in there, and that was how the car was defined. So how do you tell it which car to spawn with this new code?

Edited by TheHeggy

Share this post


Link to post
Share on other sites
Hammer83

417 is the model name from vehicules.ide

Share this post


Link to post
Share on other sites
TheHeggy

Ah thank you very much smile.gif I knew it had to be something simple.

 

Apologies if this was already asked before... Search is turned off so there's bound to be some n00b questions...

Share this post


Link to post
Share on other sites
kingpug

Nice idea, but I want to know:

 

Is it hard to edit the main.scm?

You got a list of the car numbers?

 

Well because I want to make that spawn point also, but never even attempted editing the main.scm, and I want to keep the main.scm I have which opens up all cities.

 

Sorry to highjack your thread but its a good idea, could you maybe add that spawn point to the opened up main.scm made by Craig ?..thanks if you can rolleyes.gif

Share this post


Link to post
Share on other sites
gtasanandreasmaster
Nice idea, but I want to know:

 

Is it hard to edit the main.scm?

You got a list of the car numbers?

 

Well because I want to make that spawn point also, but never even attempted editing the main.scm, and I want to keep the main.scm I have which opens up all cities.

 

Sorry to highjack your thread but its a good idea, could you maybe add that spawn point to the opened up main.scm made by Craig ?..thanks if you can rolleyes.gif

yes it is fairly easy to do main.scm modding after about an hour you will get the hang of it

and yes you can still keep that everything open scm just edit that one

Share this post


Link to post
Share on other sites
TheHeggy

Sure, once I figure it out for the normal scm I'll do it for that one too. I just need to find out the player position coordinates though... Steve-M's tool might work but I can't find the damn thing...

Share this post


Link to post
Share on other sites
gtasanandreasmaster

which one playerpos?

 

EDIT:

 

playerpos dont work confused.gif

Edited by gtasanandreasmaster

Share this post


Link to post
Share on other sites
TheHeggy

Ack, guess the edit I made didn't go through.

 

I found Steve-M's program but it's not able to work with San Andreas wink.gif Found another one though on gtagaming.com... Got my player position and I'm in the process of editing the scm. Let's see if this works...

Share this post


Link to post
Share on other sites
gtasanandreasmaster
Ack, guess the edit I made didn't go through.

 

I found Steve-M's program but it's not able to work with San Andreas wink.gif Found another one though on gtagaming.com... Got my player position and I'm in the process of editing the scm. Let's see if this works...

can you plz post a link to it

Share this post


Link to post
Share on other sites
TheHeggy

Here ya go:

 

http://www.gtagaming.com/pafiledb.php?action=file&id=954

 

Edit: Woot, it worked I put a red and blue BF Injection in CJ's alley biggrin.gif It's facing the wrong way but that's easy to change... If you have a link to that other SCM I'll be happy to change it for you. Just tell me what car you want and where.

Edited by TheHeggy

Share this post


Link to post
Share on other sites
gtasanandreasmaster

thankz man

 

oh and is the player position correct then

Share this post


Link to post
Share on other sites
TheHeggy

Yep the player position is 100% correct. My vehicle showed up exactly where it should have been.

 

Edit: Woah... I went back in to change the vehicle orientation and it seems that either the mission editor or the game itself changed my coding.

 

I put in:

 

014B: $cj_alley = init_parked_car_generator  424 -1 -1  1 alarm  0 door_lock  0  0  10000 at  2481.145 -1699.303  13.52679 angle  90.0014C: set_parked_car_generator $cj_alley cars_to_generate_to  101

 

 

And after compiling the file and running the game once it now says:

 

014B: $10949 = init_parked_car_generator  424 -1 -1  1 alarm  0 door_lock  0  0  10000 at  2481.145 -1699.303  13.52679 angle  90.0014C: set_parked_car_generator $10949 cars_to_generate_to  101

 

 

I've never seen this happen before... Maybe it's always happened and I just haven't done SCM editing in a loooong time wink.gif

Edited by TheHeggy

Share this post


Link to post
Share on other sites
Aeros

Stupid question here .. what do you use to open up main.scm? Id do a search but as Heggy said, its down.

Share this post


Link to post
Share on other sites
TheHeggy

With this program:

http://www.janco.si/gtasezana/programi/SA-MB033.zip

 

When you download it, open SASCM.ini located in whatever folder you unzipped the mission builder to. At the end of that file (below everything else), add the following text:

 

 

0A4A=2,%1h% %2h% 0A4B=0,

 

Share this post


Link to post
Share on other sites
Aeros

Thanks alot mate .. but it doesnt seem to be downloading. Says a link couldnt be established. Any other places I can get it from?

 

Edit again : Found a mirror to the one you aimed me at .. cheers.

Edited by Aeros

Share this post


Link to post
Share on other sites
Craig Kostelecky

In case other links go down, I've been hosting this for the past month or so. I've even updated the SASCM.ini to include the new opcodes. And I've updated the variables.ini to include a few more variable names.

 

Download

Share this post


Link to post
Share on other sites
TheHeggy

Do you mind if I link to that in my car spawn tutorial?

Share this post


Link to post
Share on other sites
Knife

When I try to click on the link IE crashes wow.gif

Share this post


Link to post
Share on other sites
mageezer

one last question, what's this "cars_to_generate_to" business? And why did you put "101" there instead of the "0" in the first example?

Share this post


Link to post
Share on other sites
kingpug

Ah nevermind I got it working now. devil.gif

Edited by kingpug

Share this post


Link to post
Share on other sites
TheHeggy
one last question, what's this "cars_to_generate_to" business? And why did you put "101" there instead of the "0" in the first example?

101 tells the game that the vehicles needs to show up EVERY time you come around that location. Anything lower than that and it reduces the chances of it appearing. Something like 51 should make the car show up about half of the time...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.