IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Why do copcars spawn in their respective cities?

 LSPD in LS, SFPD in SF, LVPD in LV
 
swapnil2809  
Posted: Thursday, Jun 21 2012, 19:56
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



Need some help here.
Why do copcars spawn in their respective cities, why does a LSPD copcar not spawn in SF or LV. How is this controlled by SA.
If I need some of my modded car to spawn only in any particular city, what should I edit??
Not sure if someone asked this before, but couldnt find such a topic.
PMYahoo
  Top
 

 
spaceeinstein  
Posted: Thursday, Jun 21 2012, 20:07
Quote Post


巧克力
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




map.zon. Only works for cop cars though.

This post has been edited by spaceeinstein on Thursday, Jun 21 2012, 20:10
Users WebsitePM
  Top
 

 
swapnil2809  
Posted: Thursday, Jun 21 2012, 20:17
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



Thanks for the info spaceeinstein!!
So it means i cannot add a car which will spawn only in LS sad.gif
PMYahoo
  Top
 

 
OrionSR  
Posted: Thursday, Jun 21 2012, 23:53
Quote Post


Chain Game Development Team
Group Icon
Group: Members
Joined: May 23, 2007

Member Award




You could try setting some zones in LS to type 13 SHOPPING_BUSY, which isn't used in a normal game, and modify the the appropriate ped and car groups to include your vehicle.
PM
  Top
 

 
Deji  
Posted: Friday, Jun 22 2012, 11:22
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



Cop spawning id hardcoded. A simple array of model IDs, with the current 'island' used as an index.
Users WebsitePM
  Top
 

 
swapnil2809  
Posted: Monday, Jun 25 2012, 18:29
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



You said "cop spawnning".
Can I add some random vehicle and have it spawned only in any of the 3 cities or rural SA.

Also OrionSR, didnt get you exactly, can you describe a bit more!
PMYahoo
  Top
 

 
swapnil2809  
Posted: Sunday, Jul 1 2012, 15:51
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



Please help!!
Someone reply.
PMYahoo
  Top
 

 
arijitsen  
Posted: Sunday, Jul 1 2012, 16:08
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



QUOTE (swapnil2809 @ Sunday, Jul 1 2012, 15:51)
Please help!!
Someone reply.

You can Make some cars spawn only in cities you choose but then you will have to change the cargrp.dat ,Popcycle.dat ,pedgrp.dat & you'll also have to edit the main.scm file such that the car you wish should not spawn anywhere else .I tried it with turismo and made it spawn only in Los Santos and it worked (atleast for now) .I searched other places for turismo but I didnt find I think it will work .Just check it out if any doubts You can ask me.... nervous.gif
Users WebsitePM
  Top
 

 
swapnil2809  
Posted: Sunday, Jul 1 2012, 19:33
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



Editing main.scm. Hmm
Can it be not done by CLEO??
PMYahoo
  Top
 

 
OrionSR  
Posted: Sunday, Jul 1 2012, 20:53
Quote Post


Chain Game Development Team
Group Icon
Group: Members
Joined: May 23, 2007

Member Award




Here's an idea the might work with a little editing of cagrp.dat and a CLEO script. Add your vehicles to an appropriate car group, then check CJ's town number and disable the appropriate models as he moves from city to city with a cleo script. The relevant codes are listed below.

Keep in mind that car groups can only support 23 models; Causal Rich and Casual Average are already too full, which is why the Phoenix doesn't not spawn in traffic without some modifications.

CODE
04A3:   $CURRENT_TOWN_NUMBER == 1 // $ == any
0842: $CURRENT_TOWN_NUMBER = player $PLAYER_CHAR town_number

0732: random_car_generator_disable_model #SAVANNA
0733: random_car_generator_enable_model #SAVANNA
0734: reset_random_car_generator_models


It is possible to alter the car groups with CLEO memory writes. I can try to find the memory addresses if this is really important for sharing your mod or something. But it'd be easier to test with an altered cargrp.dat first.

This post has been edited by OrionSR on Sunday, Jul 1 2012, 20:56
PM
  Top
 

 
swapnil2809  
Posted: Tuesday, Jul 3 2012, 19:30
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



I should try this.
PMYahoo
  Top
 

 
OrionSR  
Posted: Wednesday, Jul 4 2012, 06:47
Quote Post


Chain Game Development Team
Group Icon
Group: Members
Joined: May 23, 2007

Member Award




If you get it working and want to change the car groups with CLEO the structure starts at 0xC0ED38. Each group is 46 bytes long and consists of 23 words. Each word is the vehicle ID for the cars in the group (Linerunner = 403).
PM
  Top
 

 
Aimee520  
Posted: Wednesday, Jul 4 2012, 07:48
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 4, 2012

XXXXX



I tried it with turismo and made it spawn only in Los Santos and it worked.I searched other places for turismo but I didnt find I think it will work . tounge.gif user posted image
PM
  Top
 

 
swapnil2809  
Posted: Monday, Jul 9 2012, 18:05
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



Hi All!!
Too bad, I tried a few things but could not get this right!!
If I may post this as a request now, can someone create a mod like this confused.gif
PMYahoo
  Top
 

 
swapnil2809  
Posted: Tuesday, Dec 4 2012, 19:04
Quote Post


The Engineer
Group Icon
Group: Members
Joined: Dec 11, 2006

ia.gif

XXXXX



This is a bump, but I got one question, how to have a ped spawn only in 1 city, and can that ped be assigned to a particular vehicle, ie only that ped drives this vehicle.
PMYahoo
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG