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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Ruthless Killa

Drive By's

Recommended Posts

Ruthless Killa

I was playing around in Los Santos today and I've realized something that could make the Ghettos of LS more real. I was wondering if it could be possible to code Ballas, Grove Street, etc to perform random drive by's throughout East Los Santos, Ganton etc.

 

Now what I mean by this is a code that would make a car full of gang members drive around until they find rivals. When they find the rivals they would then start shooting at the gang members.

 

Now I know sometimes when gang members are being chased by the Police they shoot at the officers. Would it be possible to take the code of gang members shooting out their cars and put it into a code that would make them peform drive by's on gang members walking around?

Share this post


Link to post
Share on other sites
RIPER

hi.

there This Mod Helps to open Main.scm file and see difference. i did it for once and discovered syns and changed them.(GTA Garage is currently down confused.gif )

 

Edited by RIPER

Share this post


Link to post
Share on other sites
Infamous Ob

Damn. If you pull that code off and get it to work. You the man. What If you just replaced the Cop's code with the Grove gang? Would that work?

Share this post


Link to post
Share on other sites
Pointblank651

I have been trying to get something of this sort to work. I was searching for either the coding for the drive by car during gang wars or the one that happens when you owe money in las ventures and they send a car after you.

 

And one know where to locate these or how to make this modification possible?

Share this post


Link to post
Share on other sites
ZAZ

 

I have been trying to get something of this sort to work. I was searching for either the coding for the drive by car during gang wars or the one that happens when you owe money in las ventures and they send a car after you.

 

And one know where to locate these or how to make this modification possible?

The Hood Life mod dont have a driveby feature

 

The opcode for driveby is

 

0713: action_sequence [email protected] do_driveby_on $PLAYER_ACTOR -1  0.0  0.0  0.0  5000.0  4  1  40

 

 

first parameter ([email protected]) is the actor which make driveby, needs to sit in a car and have a weapon

second parameter ($PLAYER_ACTOR) is the target-actor, with entry -1 it have no effect

third parameter (-1) is target-car, could also be the variable name of a car,

e.g.

 

00D9: $cjcar = actor $PLAYER_ACTOR car0713: action_sequence [email protected] do_driveby_on -1 $cjcar  0.0  0.0  0.0  5000.0  4  1  40

 

4., 5., 6. param are target-coords to let the actor shoot to a specified point

e.g.

 

0713: action_sequence [email protected] do_driveby_on -1 -1  2507.65 -1681.24  12.8469  5000.0  8  1  100

 

 

 

Try the script for sannybuilder:

If no mission is activ, the script search for a random car in traffic and replace it with savanna,

2 actors inthere, a driver and one in driveby action to CJ

the car chase CJ and stops near him and follows again if distance is bigger then 17.0

 

 

 

004F: create_thread @GDRBY_1

 

 

 

:GDRBY_103A4: name_thread "GDRB"  :GDRBY_20001: wait  0 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false @GDRBY_2077E: get_active_interior_to $Active_Interiorif and0038:   $ONMISSION ==  0  // integer values0038:   $ACTIVE_INTERIOR ==  0  // integer values004D: jump_if_false @GDRBY_204C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -100.0 50.0  0.004C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset  100.0  200.0  0.0053E: [email protected] = get_random_car_with_actors -1 in_area [email protected] [email protected] [email protected] [email protected]: if  08039:   NOT   [email protected] == -1  // integer values004D: jump_if_false @GDRBY_20407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] offset  0.0  0.0  0.00174: [email protected] = car [email protected] z_angle:GDRBY_30247: request_model #VWMYCR0247: request_model #BMYDRUG0247: request_model #SAVANNA0247: request_model #MP5LNG:GDRBY_50001: wait 0 msif and0248:   model #VWMYCR available0248:   model #BMYDRUG available0248:   model #SAVANNA available0248:   model #MP5LNG available004D: jump_if_false @GDRBY_500A5: [email protected] = create_car #SAVANNA at [email protected] [email protected] [email protected]: set_car [email protected] z_angle_to [email protected]: set_car [email protected] health_to  3000053F: set_car [email protected] tires_vulnerable  000A6: destroy_car [email protected]: [email protected] = create_actor  7 #VWMYCR in_car [email protected] driverseat01C8: [email protected] = create_actor  7 #BMYDRUG in_car [email protected] passenger_seat  00223: set_actor [email protected] health_to  30000223: set_actor [email protected] health_to  30000446: toggle_actor [email protected] immune_to_headshots 00446: toggle_actor [email protected] immune_to_headshots 00187: [email protected] = create_marker_above_actor [email protected]: unknown_set_car [email protected] to_ignore_traffic_lights  200A8: set_car [email protected] to_psycho_driver02AC: set_car [email protected] immunities  1  1  1  1  10249: release_model #VWMYCR0249: release_model #BMYDRUG0249: release_model #SAVANNA01B2: give_actor [email protected] weapon  29 ammo  99999  // Load the weapon model before using this02E2: set_actor [email protected] weapon_accuracy_to  1000713: action_sequence [email protected] do_driveby_on $PLAYER_ACTOR -1  0.0  0.0  0.0  5000.0  4  1  4000AF: set_car [email protected] driver_behaviour_to  200AD: set_car [email protected] max_speed_to  15.003CC: car [email protected] add_to_stuck_car_check  2.0 =  50000006: [email protected] =  0  // integer values0006: [email protected] =  0  // integer values0006: [email protected] =  0  // integer values:GDRBY_120001: wait  0 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false @GDRBY_25077E: get_active_interior_to $Active_Interiorif and0038:   $ACTIVE_INTERIOR ==  0  // integer values0038:   $ONMISSION ==  0  // integer values8119:   NOT   car [email protected] wrecked81F4:   NOT   car [email protected] flipped004D: jump_if_false @GDRBY_25if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values0039:   [email protected] ==  2  // integer values004D: jump_if_false @GDRBY_1700D6: if  003CE:   car [email protected] stuck004D: jump_if_false @GDRBY_13if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values004D: jump_if_false @GDRBY_1306C7: unknown_action_sequence [email protected] [email protected]  14  500//rückwärtskreisel0001: wait  500 ms00AF: set_car [email protected] driver_behaviour_to  200AD: set_car [email protected] max_speed_to  50.00006: [email protected] =  2  // integer values:GDRBY_1300D6: if  00039:   [email protected] ==  0  // integer values004D: jump_if_false @GDRBY_14if or001B:    10000 > [email protected]  // integer values0202:   actor $PLAYER_ACTOR near_car [email protected] radius  70.0  70.0 unknown  0004D: jump_if_false @GDRBY_2502AC: set_car [email protected] immunities  0  0  0  0  00006: [email protected] =  1  // integer values:GDRBY_1400D6: if  00202:   actor $PLAYER_ACTOR near_car [email protected] radius  15.0  15.0 unknown  0004D: jump_if_false @GDRBY_15if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values004D: jump_if_false @GDRBY_1700D6: if  080DF:   NOT   actor $PLAYER_ACTOR driving 004D: jump_if_false @GDRBY_1700AD: set_car [email protected] max_speed_to  0.00006: [email protected] =  2  // integer values0002: jump @GDRBY_17:GDRBY_1500D6: if  00202:   actor $PLAYER_ACTOR near_car [email protected] radius  17.0  17.0 unknown  0004D: jump_if_false @GDRBY_16if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  2  // integer values004D: jump_if_false @GDRBY_1700AF: set_car [email protected] driver_behaviour_to  200AD: set_car [email protected] max_speed_to  50.00006: [email protected] =  1  // integer values0002: jump @GDRBY_17:GDRBY_16if or0039:   [email protected] ==  1  // integer values0039:   [email protected] ==  2  // integer values004D: jump_if_false @GDRBY_17if or001B:    10000 > [email protected]  // integer values0202:   actor $PLAYER_ACTOR near_car [email protected] radius  50.0  50.0 unknown  0004D: jump_if_false @GDRBY_2500AF: set_car [email protected] driver_behaviour_to  200AD: set_car [email protected] max_speed_to  50.00006: [email protected] =  0  // integer values:GDRBY_17if and8118:   NOT   actor [email protected] dead8118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_19if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values0039:   [email protected] ==  2  // integer values004D: jump_if_false @GDRBY_19if and00DB:   actor [email protected] in_car [email protected]:   actor [email protected] in_car [email protected]: jump_if_false @GDRBY_190002: jump @GDRBY_12:GDRBY_1900D6: if  08118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_210001: wait  250 ms00D6: if  000DB:   actor [email protected] in_car [email protected]: jump_if_false @GDRBY_2000AD: set_car [email protected] max_speed_to  0.00633: AS_actor [email protected] exit_vehicle0001: wait  1000 ms:GDRBY_20if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values0039:   [email protected] ==  2  // integer values0039:   [email protected] ==  4  // integer values004D: jump_if_false @GDRBY_21if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  2  // integer values004D: jump_if_false @GDRBY_2100D6: if  08118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_2101B2: give_actor [email protected] weapon  29 ammo  99999  // Load the weapon model before using this02E2: set_actor [email protected] weapon_accuracy_to  5005E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR0446: toggle_actor [email protected] immune_to_headshots 10006: [email protected] =  3  // integer values000A: [email protected] +=  1 ;; integer values0002: jump @GDRBY_12:GDRBY_2100D6: if  08118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_230001: wait  250 ms00D6: if  000DB:   actor [email protected] in_car [email protected]: jump_if_false @GDRBY_2200AD: set_car [email protected] max_speed_to  0.00633: AS_actor [email protected] exit_vehicle0001: wait  1000 ms:GDRBY_22if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values0039:   [email protected] ==  2  // integer values0039:   [email protected] ==  3  // integer values004D: jump_if_false @GDRBY_23if or0039:   [email protected] ==  0  // integer values0039:   [email protected] ==  1  // integer values004D: jump_if_false @GDRBY_2300D6: if  08118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_2305E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR0446: toggle_actor [email protected] immune_to_headshots 10006: [email protected] =  4  // integer values000A: [email protected] +=  1 ;; integer values0002: jump @GDRBY_12:GDRBY_23if or8118:   NOT   actor [email protected] dead8118:   NOT   actor [email protected] dead004D: jump_if_false @GDRBY_250002: jump @GDRBY_12:GDRBY_2503CD: car [email protected] remove_from_stuck_car_check0249: release_model #MP5LNG0164: disable_marker [email protected]: remove_references_to_actor [email protected]  // Like turning an actor into a random pedestrian01C2: remove_references_to_actor [email protected]  // Like turning an actor into a random pedestrian02AC: set_car [email protected] immunities  0  0  0  0  001C3: remove_references_to_car [email protected]  // Like turning a car into any random car0002: jump @GDRBY_2

 

Share this post


Link to post
Share on other sites
nuttybutty

Damn that I'm not full american/Raised in America. But what I understand this is like adding other stuff in Main.scm.

 

You just find the other threads and add the first one by the others.

 

 

004F: create_thread @GDRBY_1

 

 

And making it as cops do, by getting out and shoot, and get back into car and continue chasing is the other op. code ?

 

 

GDRBY_103A4: name_thread "GDRB"  :GDRBY_20001: wait  0 ms00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false @GDRBY_2077E: get_active_interior_to $Active_Interiorif and0038:   $ONMISSION ==  0  // integer values0038:   $ACTIVE_INTERIOR ==  0  // integer values004D: jump_if_false @GDRBY_204C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset -100.0 50.0  0.004C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset  100.0  200.0  0.0

 

 

And the other stuff included in the post. So, in short words;

I add the:

 

004F: create_thread @GDRBY_1

 

With the other 004Fs.

 

Then I search for MISSION 0 and go above that, and add the Giant text script you wrote. Sounds easy. Respond as quickly as you can, this thread seems dead to me though.

Share this post


Link to post
Share on other sites
Surigangsta

can someone upload it as SCM PLS biggrin.gif i realy want this !!!!!!!!!!!!!! but dunno how to put it in scm myself

 

Share this post


Link to post
Share on other sites
Great Saiyaman

excellent code ZAZ, it works real good

 

user posted image

Share this post


Link to post
Share on other sites
beast^-^

Where do i put the code in main.scm?

 

EDIT: I understand that the drive-byers shoot CJ now, right? Well, is there a way to make them shoot OGF members?

Share this post


Link to post
Share on other sites
Great Saiyaman

you put

004F: create_thread @GDRBY_1

with the other create_threads and the other long code before mission 0

Share this post


Link to post
Share on other sites
beast^-^

 

you put
004F: create_thread @GDRBY_1

with the other create_threads and the other long code before mission 0

When i do that, it gives me an error when compiling.

 

EDIT: Can you upload your working main.scm?

Edited by beast^-^

Share this post


Link to post
Share on other sites
Great Saiyaman
you put
004F: create_thread @GDRBY_1

with the other create_threads and the other long code before mission 0

When i do that, it gives me an error when compiling.

 

EDIT: Can you upload your working main.scm?

i cant, i have all my other scripts in it, you will have to send me your main.scm and script.img

Share this post


Link to post
Share on other sites
beast^-^
you put
004F: create_thread @GDRBY_1

with the other create_threads and the other long code before mission 0

When i do that, it gives me an error when compiling.

 

EDIT: Can you upload your working main.scm?

i cant, i have all my other scripts in it, you will have to send me your main.scm and script.img

How do i send them to you? Do you have MSN?

Share this post


Link to post
Share on other sites
Great Saiyaman

well.. if u look at my profile u would know

Share this post


Link to post
Share on other sites
beast^-^

I'll add you.

Share this post


Link to post
Share on other sites
ninjaazuma

Hi, I have a question,

I make a mission for GTA SA and the goal, it's to go in the zone 51 in the car with friend.

I'm the driverseat and my friend the passenger and I have 5 stars (police).

When he is on foot, he shoots on the police but when he enter in the car, he don't shoot, he not move.

 

 

And, I have see your script:

 

0713: action_sequence [email protected] do_driveby_on $PLAYER_ACTOR -1 0.0 0.0 0.0 5000.0 4 1 40

 

 

 

but I don't know how I can use it in this situation because the cop are not a "reference" (they are create by game and not by me) and the "driveby_on", I don't no the reference

 

I wanted to see with the turret, but, with other actors than me, he is not in turret, maybe I have bad use this code

 

I want to know if it's possible to do that, the actor attack police on car (on foot, he can, but on car ... ?)

 

 

Thank very munch

Share this post


Link to post
Share on other sites
beast^-^

Please, if someone just could help me put this code in my main.scm?

I really wan't this on my game. sad.gif

Share this post


Link to post
Share on other sites
beast^-^

Can anyone help me? I add the codes to the right places, but it just gives me some missing/invalid parameter errors, when compiling..? sad.gif

Share this post


Link to post
Share on other sites
beast^-^

Anybody? confused.gif

Share this post


Link to post
Share on other sites
Great Saiyaman

take the hint no one will do it, and dont triple post

Share this post


Link to post
Share on other sites
beast^-^
take the hint no one will do it, and dont triple post

If you don't have anything to say relating to the mod, then just stfu.

Share this post


Link to post
Share on other sites
Monkeyman3232
take the hint no one will do it, and dont triple post

If you don't have anything to say relating to the mod, then just stfu.

Didnt he say add him over email or MSN? If know one can do it 4 u then forget about, i want this code, i cant do it, i dont nag about it, neither should anyone else

Share this post


Link to post
Share on other sites
Great Saiyaman

the only way i will do it is if u upload the main.scm+img.script in a zip file

Share this post


Link to post
Share on other sites
beast^-^
the only way i will do it is if u upload the main.scm+img.script in a zip file

I can do that, but where should i upload them?

Share this post


Link to post
Share on other sites
Great Saiyaman
the only way i will do it is if u upload the main.scm+img.script in a zip file

I can do that, but where should i upload them?

i dont know filefront?

Share this post


Link to post
Share on other sites
beast^-^

Umm.. Can it be a .rar file?

Share this post


Link to post
Share on other sites
Great Saiyaman
Umm.. Can it be a .rar file?

yer..

Share this post


Link to post
Share on other sites
beast^-^

Removed

Share this post


Link to post
Share on other sites
Monkeyman3232

So did u get wat u want?

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.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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