Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,171 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

comet1440

Presidential Motorcade Game Idea

Recommended Posts

comet1440

Hey whats up I have a cool idea for a mini game or just a mod. I want to recreate a presidential motorcade in San Andreas. A full motorcade with everything, the police the 2 limos the numerous secret service suvs and etc. and as a mission I wanna play as a secret service agent riding in the motorcade protecting the president and have the motorcade come under attack and have to protect him. Or I just want to ride in a motorcade and have it escort me to where I want etc. sounds fun right? I have tried to think this out and so far I have concluded that all the vehicle models are already in the game (police car, stretch limo, and the fbi rancher could be the secret secret service trucks) however I am new to modding and I have read the all the tutorials in this forum and attempted to create this mod but it has proven to be a very daunting task so i'm sure some of you experienced and intelligent modders here can help/teach/assist me with this I would be very grateful smile.gif

Share this post


Link to post
Share on other sites
Dutchy3010

You have to try yourself and show us a code, else you probably won't get any help. If you are not planning to make it yourself, please use the request topic.

 

We are here to help with problems, not to provide you a code. smile.gif

Share this post


Link to post
Share on other sites
comet1440

I wanna make it myself It's just that i'm a beginner and I don't fully understand all the technical gargle yet. can someone get me started off with some code? and is there any mod out there like this already?

Edited by comet1440

Share this post


Link to post
Share on other sites
TheSiggi

I assume that you know how to code.....

 

you should thinlk of a accurate concept how the mission should look like

 

 

then I would use many checks and terms to make the mission very firm

 

like:

 

 

00A0: store_actor $PLAYER_ACTOR position_to $TERM2_X1 $TERM2_Y1 $TERM2_Z1 . . .if00EE:   actor $PRESIDENT 0 near_point $TERM2_X1 $TERM2_Y1 radius 75.0 75.0 in_carjf  @anylabel

 

 

to show specific texts like

 

 

The convoy with the presidents car is approaching .... get ready to shoot him while exiting the car....you find a sniperrifle ontop of the hotel roof on your right...so....MOVE UR BLOODY ASS UP THERE!!!!

 

and stuff like that....hey thats a good idea

Edited by The_Siggi

Share this post


Link to post
Share on other sites
comet1440

ok thanks for your help, hmmm I need more help though I don't understand how to get all the vehicles to follow each other closely and how to put npcs in them and control what they do. Can someone elaborate?

Share this post


Link to post
Share on other sites
TheSiggi

 

07F8: car [email protected] follow_car [email protected] radius 27.0 

 

 

the only thing that could be hard is to make two copbikes driving next to each other constantly

 

if you don't know how to make something try to find some codes in programs>IDE programes> opcode search in the toolbar of sannybuilder

Edited by The_Siggi

Share this post


Link to post
Share on other sites
TheSiggi

if you want to make the script a bit more complex you could create one police maverick and one or two newshelis which follow the convoy

0727: set_heli [email protected] behavior_to_police_heli_and_follow_actor $PLAYER_ACTOR follow_car -1 radius 20.0 

 

 

and make the polmaves follow CJ after the kill

 0724: heli [email protected] follow_and_attack_player $PLAYER_CHAR radius 50.0 

 

 

if you need any help...just post the part you have problems with here

 

greets and good luck

Share this post


Link to post
Share on other sites
comet1440

hey whats up I'm currently still in the process of figuring out how to write the code for this mod but so far its too complicated/hard for me. Would any experienced modder here be willing to make this mod for me in exchange for money? I just really want to bring this mod to reality. If you are interested in this job offer pm me.

 

 

Note to mods: i'm not trying to use the forums to solicit people but this is a good place to ask what I am asking.

Edited by comet1440

Share this post


Link to post
Share on other sites
comet1440

ok im working on the mod i have a question: How do I make an fbi rancher spawn with the blue police light on? right now when I spawn it the blue light is off.

Share this post


Link to post
Share on other sites
Dutchy3010

 

0397: enable_car [email protected] siren 1 

 

 

Reading tutorials isn't enough, like many people think. Of course you have to read them, but after that you have to try the examples. Then you have to try and create something with those codes yourself. Change some things. Experiment with it.

Before asking a question, please use the "opcode search tool" in Sannybuilder. You can open it with CTRL+ALT+2 or Tools > Ide Tools > Opcode Search. This one could be found pretty easy when typing "siren"...

Share this post


Link to post
Share on other sites
comet1440

140 views and only 2 ppl tried to help me? icon13.gificon13.gificon13.gif

Share this post


Link to post
Share on other sites
TheSiggi

If you got some small problems.....just ask whether sombody can help you to improve your script

 

but as Dutchy said:

 

 

  You have to try yourself and show us a code, else you probably won't get any help. If you are not planning to make it yourself, please use the request topic.

 

We are here to help with problems, not to provide you a code. smile.gif

 

 

and

 

Would any experienced modder here be willing to make this mod for me in exchange for money? I just really want to bring this mod to reality. If you are interested in this job offer pm me.

 

 

thats boring.....to find out how to code something bigger like this is realy funny and interresting....of course it's barren if you get stuck....but somebody will help you...thats for sure wink.gif

Share this post


Link to post
Share on other sites
the hubster

SAMP had (has? havn't played in years) a great fun multiplayer version of this idea called protect the prime minister.

Share this post


Link to post
Share on other sites
comet1440

Someone make this mod for me!!! right now!!!

Share this post


Link to post
Share on other sites
TheSiggi

No.....try it yourself....you'll see it's quite funny and not that hard as you might think....

 

try to make easier mission scripts and use some tutorials....

Share this post


Link to post
Share on other sites
TheSiggi

Yep.

 

Read some tutorials and try to create some easy scripts like spawning an actor, arm him and make him shoot CJ in specific terms ( like in-sphere or if-CJ-shoots at him...etc.)

 

then try to make it abit harder:

 

create cars which drive to a specific point and create markers and all that stuff that could be usefull for your script

 

The following is something like a 'blueprint' of easy missions, which I've written when I started learning mission scripts to make it more understandeble ( I used opcodes I found in ZAZs Mission Coding tutorial for the MissionBuilder)

 

 

1st. of all you need a mission starter.cs:

 

 

:Missionstarter_103A4: name_thread 'MSTRTR':Missionstarter_20001: wait 0 ms00D6: if 00256: player $PLAYER_CHAR defined 004D: jump_if_false @Missonstarter_2 00D6: if 00038: $ON_MISSION == 0004D: jump_if_false @Missionstarter_2 00D6: if 000FF: actor $PLAYER_ACTOR 1 (in-sphere)near_point_on_foot     X  Y  Z radius  R1  R2  R3004D: jump_if_false @Missionstarter_20004D: $ON_MISSION =  10417: start_mission 10002: jump @Missionstarter_2

 

 

 

 

and then you need the real mission code:

 

 

Mission.cm::Mission_1203A4: name_thread 'MSSON'0050: gosub @Mission_main00D6: if 00112: wasted_or_busted004D: jump_if_false @Mission_end0050; gosub @Mission_fail:Mission_end0050: gosub @Mission_cleanup004E: end_custom_thread:Mission_main0317: increment_mission_attemps0004: $ON_MISSION =10247: request_model [M1]  // lets say this is the actor0247: request_model [M2]  // and this is his weapon...:load_model_check0001: wait 0 ms00D6: if 1 // two terms0248: model [M1] avialable0248: model [M2] avialable 004D: jump_if_false @load_model_check// then you can put any settings here like weather // spawn actor at X2  Y2  Z3 // give the weapon to the actor // and any other settings like the health and the skills of the actor // you can look for the right opcodes you need in Sannybuilder programms>IDE programms>opcode search tool:Mission_check0001: wait 0 ms00D6: if 08118: NOT actor [M1] dead004D: jump_if_false @Mission_passed006D: if 00104: actor $PLAYER_ACTOR ......// settings like 'is CJ dead' or is he NOT in radius R4  R5  R6  // like on the run004D: jump_if_false @Mission_fail0002: jump @Mission_check:Mission_passed00BA: text_styled 'M_PASSD' 5000 ms0110: clear_player $PLAYER_ACTOR wanted_level0109: player $PLAYER_CHAR  money += [MONEY] // you can put anything in here0394:  play_music 10051: return:Mission_fail00BA: show_text_styled 'M_FAIL' 5000 ms 10051: return:Mission_cleanup01C2: remove_references_to_actor [M1a]0004: $ON_MISSION = 000D8: mission_cleanup0051: return 

 

Share this post


Link to post
Share on other sites
comet1440

ok cool, thanks "the_siggi" your code is helpful I made a basic mission with it. I guess i'll just keep practicing until I can make more complex stuff.

Share this post


Link to post
Share on other sites
comet1440

hey whats up, I've been trying to learn how to code for the past few months but I still cannot complete this mod, this is the best I have come up with, I tried to alter someone elses code and make it so that fbi ranchers spawn then come to my car and then follow me like a motorcade but it doesn't work:

 

{$VERSION 3.1.0027}

{$CLEO .CS}

 

//-------------MAIN---------------

thread 'POLBACK'

 

:POLBACK_11

wait 0

if

Player.Defined($PLAYER_CHAR)

jf @POLBACK_11

if

$ONMISSION == 0

jf @POLBACK_11

wait 0

if and

00E1: player $PLAYER_CHAR pressed_key 4

00E1: player $PLAYER_CHAR pressed_key 5

jf @POLBACK_11

Model.Load(#FBIRANCH)

Model.Load(#FBI)

Model.Load(#M4)

Model.Load(#CELLPHONE)

04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0

02C1: store_to [email protected] [email protected] [email protected] car_path_coords_closest_to [email protected] [email protected] [email protected]

04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0

0662: NOP "CODE8"

0662: NOP "COPYRIGHT 2008 JAMES227UK AND VITORC."

 

:POLBACK_226

wait 0

if and

Model.Load(#FBIRANCH)

Model.Load(#FBI)

Model.Load(#M4)

Model.Load(#CELLPHONE)

jf @POLBACK_226

0729: AS_actor $PLAYER_ACTOR hold_cellphone 1

wait 6000

0729: AS_actor $PLAYER_ACTOR hold_cellphone 0

wait 30000

[email protected] = Car.Create(#FBIRANCH, [email protected], [email protected], [email protected])

03CC: enable_car [email protected] stuck_check_distance_to 2.0 time_to 2000

00AE: set_car [email protected] traffic_behaviour_to 2

0397: enable_car [email protected] siren 1

0129: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] driverseat

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 0

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 1

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 2

Car.DriveTo([email protected], [email protected], [email protected], [email protected])

:POLBACK_402

wait 0

if

01B0: car [email protected] sphere 0 in_sphere [email protected] [email protected] [email protected] radius 10.0 10.0 10.0 stopped

jf @POLBACK_402

wait 500

[email protected] = Car.Create(#FBIRANCH, [email protected], [email protected], [email protected])

03CC: enable_car [email protected] stuck_check_distance_to 2.0 time_to 2000

00AE: set_car [email protected] traffic_behaviour_to 2

0397: enable_car [email protected] siren 1

0129: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] driverseat

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 0

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 1

01C8: [email protected] = create_actor_pedtype 23 model #FBI in_car [email protected] passenger_seat 2

Car.DriveTo([email protected], [email protected], [email protected], [email protected])

:POLBACK_402

wait 0

if

01B0: car [email protected] sphere 0 in_sphere [email protected] [email protected] [email protected] radius 13.0 13.0 13.0 stopped

wait 500

[email protected] = Car.Create(#stretch, [email protected], [email protected], [email protected])

wait 500

07F8: car [email protected] follow_car [email protected] radius 27.0

07F8: car [email protected] follow_car [email protected] radius 27.0

 

 

But this code doesn't even work so can someone PLEASE..PLEASE help me make this mod and if you don't want to take up your time doing it I am willing to PAY YOU..just someone please help me I would be VERY appreciative, be kind, I know someone here can do it.

Share this post


Link to post
Share on other sites
TheSiggi

 

if <<<<<<<<01B0: car [email protected] sphere 0 in_sphere [email protected] [email protected] [email protected] radius 13.0 13.0 13.0 stoppedwait [email protected] = Car.Create(#stretch, [email protected], [email protected], [email protected])wait 50007F8: car [email protected] follow_car [email protected] radius 27.007F8: car [email protected] follow_car [email protected] radius 27.0 

 

 

when you place an

00D6: if 

you also have to set an

 

jump_if_false or jf or else_jump....

 

 

furthermore you need some more conditions in the end because you have to release the models and remove the references to the actors and cars

 

 

 

 

Share this post


Link to post
Share on other sites
comet1440

oh ok thanks, well looks like its gonna take me a few years before this mod comes to life. sad.gifsad.gifsad.gif

Share this post


Link to post
Share on other sites
JohnPhoenix

Just wanna say I love the idea! To take out the greatest threat to this country the socialist Barack Obama as he rides by and me hiding in the library with a decoy at the grassy knoll. That would be the most awesome patriotic mod ever!!

Share this post


Link to post
Share on other sites
comet1440

well after all this time I have finally made this mod. I made it using a mission maker mod. here are 2 screencaps of the motorcades I made. I made a short motorcade and I long full motorcade. my mission is not perfect and I hope someone else out there whos good with coding can make a better one someday.

 

user posted image

user posted image

 

 

Share this post


Link to post
Share on other sites
TheSiggi

awesome! smile.gif

 

Finaly you made it...keep it up icon14.gif

Share this post


Link to post
Share on other sites
Sparky32

how can I download this mod???

plz tell me....

Share this post


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

×

Important Information

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