Quantcast

Jump to content

» «
Photo

Presidential Motorcade Game Idea

24 replies to this topic
comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#1

Posted 17 August 2009 - 12:14 PM

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

Dutchy3010
  • Dutchy3010

    Female SCM coder!

  • Moderator
  • Joined: 30 Jul 2006
  • Netherlands
  • Best Script 2013 [DYOM]
    Best Script 2012 [DYOM]

#2

Posted 17 August 2009 - 02:50 PM

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

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#3

Posted 17 August 2009 - 03:24 PM Edited by comet1440, 17 August 2009 - 03:40 PM.

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?

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#4

Posted 17 August 2009 - 04:05 PM Edited by The_Siggi, 31 October 2009 - 08:21 PM.

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:

CODE


00A0: store_actor $PLAYER_ACTOR position_to $TERM2_X1 $TERM2_Y1 $TERM2_Z1
. . .

if
00EE:   actor $PRESIDENT 0 near_point $TERM2_X1 $TERM2_Y1 radius 75.0 75.0 in_car
jf  @anylabel



to show specific texts like

QUOTE

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

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#5

Posted 17 August 2009 - 04:25 PM

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?

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#6

Posted 17 August 2009 - 04:31 PM Edited by The_Siggi, 17 August 2009 - 04:33 PM.

CODE

07F8: car 74@ follow_car 72@ 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

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#7

Posted 17 August 2009 - 06:43 PM

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
CODE
0727: set_heli 377@ behavior_to_police_heli_and_follow_actor $PLAYER_ACTOR follow_car -1 radius 20.0


and make the polmaves follow CJ after the kill
CODE
0724: heli 114@ 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

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#8

Posted 18 August 2009 - 02:19 AM Edited by comet1440, 18 August 2009 - 02:22 AM.

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.

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#9

Posted 18 August 2009 - 03:50 AM

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.

Dutchy3010
  • Dutchy3010

    Female SCM coder!

  • Moderator
  • Joined: 30 Jul 2006
  • Netherlands
  • Best Script 2013 [DYOM]
    Best Script 2012 [DYOM]

#10

Posted 18 August 2009 - 09:02 AM

CODE
0397: enable_car 103@ 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"...

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#11

Posted 19 August 2009 - 03:20 PM

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

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#12

Posted 19 August 2009 - 03:31 PM

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

but as Dutchy said:

QUOTE
  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
QUOTE

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

the hubster
  • the hubster

    Sup Homies

  • Members
  • Joined: 03 May 2005

#13

Posted 19 August 2009 - 04:02 PM

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

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#14

Posted 21 August 2009 - 08:04 PM

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

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#15

Posted 22 August 2009 - 09:56 AM

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

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#16

Posted 22 August 2009 - 10:33 AM

QUOTE (comet1440 @ Aug 21 2009, 20:04)
Someone make this mod for me!!! right now!!!

Unbelievable biggrin.gif
read CLEO Script Tutorial

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#17

Posted 22 August 2009 - 11:21 AM

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:

CODE
:Missionstarter_1
03A4: name_thread 'MSTRTR'

:Missionstarter_2
0001: wait 0 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false @Missonstarter_2
00D6: if 0
0038: $ON_MISSION == 0
004D: jump_if_false @Missionstarter_2
00D6: if 0
00FF: actor $PLAYER_ACTOR 1 (in-sphere)near_point_on_foot     X  Y  Z radius  R1  R2  R3
004D: jump_if_false @Missionstarter_2
0004D: $ON_MISSION =  1
0417: start_mission 1
0002: jump @Missionstarter_2




and then you need the real mission code:

CODE
Mission.cm:

:Mission_12
03A4: name_thread 'MSSON'
0050: gosub @Mission_main
00D6: if 0
0112: wasted_or_busted
004D: jump_if_false @Mission_end
0050; gosub @Mission_fail

:Mission_end
0050: gosub @Mission_cleanup
004E: end_custom_thread

:Mission_main
0317: increment_mission_attemps
0004: $ON_MISSION =1

0247: request_model [M1]  // lets say this is the actor
0247: request_model [M2]  // and this is his weapon
.
.
.


:load_model_check
0001: wait 0 ms
00D6: if 1 // two terms
0248: model [M1] avialable
0248: 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_check
0001: wait 0 ms
00D6: if 0
8118: NOT actor [M1] dead
004D: jump_if_false @Mission_passed
006D: if 0
0104: actor $PLAYER_ACTOR ......// settings like 'is CJ dead' or is he NOT in radius R4  R5  R6  // like on the run
004D: jump_if_false @Mission_fail
0002: jump @Mission_check

:Mission_passed
00BA: text_styled 'M_PASSD' 5000 ms
0110: clear_player $PLAYER_ACTOR wanted_level
0109: player $PLAYER_CHAR  money += [MONEY] // you can put anything in here
0394:  play_music 1
0051: return

:Mission_fail
00BA: show_text_styled 'M_FAIL' 5000 ms 1
0051: return


:Mission_cleanup
01C2: remove_references_to_actor [M1a]
0004: $ON_MISSION = 0
00D8: mission_cleanup
0051: return

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#18

Posted 22 August 2009 - 02:56 PM

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.

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#19

Posted 29 October 2009 - 03:16 PM

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 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0
02C1: store_to 1@ 2@ 3@ car_path_coords_closest_to 1@ 2@ 3@
04C4: store_coords_to 14@ 15@ 16@ 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
4@ = Car.Create(#FBIRANCH, 1@, 2@, 3@)
03CC: enable_car 4@ stuck_check_distance_to 2.0 time_to 2000
00AE: set_car 4@ traffic_behaviour_to 2
0397: enable_car 4@ siren 1
0129: 10@ = create_actor_pedtype 23 model #FBI in_car 4@ driverseat
01C8: 11@ = create_actor_pedtype 23 model #FBI in_car 4@ passenger_seat 0
01C8: 12@ = create_actor_pedtype 23 model #FBI in_car 4@ passenger_seat 1
01C8: 13@ = create_actor_pedtype 23 model #FBI in_car 4@ passenger_seat 2
Car.DriveTo(4@, 14@, 15@, 16@)
:POLBACK_402
wait 0
if
01B0: car 4@ sphere 0 in_sphere 14@ 15@ 16@ radius 10.0 10.0 10.0 stopped
jf @POLBACK_402
wait 500
5@ = Car.Create(#FBIRANCH, 1@, 2@, 3@)
03CC: enable_car 5@ stuck_check_distance_to 2.0 time_to 2000
00AE: set_car 5@ traffic_behaviour_to 2
0397: enable_car 4@ siren 1
0129: 17@ = create_actor_pedtype 23 model #FBI in_car 5@ driverseat
01C8: 18@ = create_actor_pedtype 23 model #FBI in_car 5@ passenger_seat 0
01C8: 19@ = create_actor_pedtype 23 model #FBI in_car 5@ passenger_seat 1
01C8: 20@ = create_actor_pedtype 23 model #FBI in_car 5@ passenger_seat 2
Car.DriveTo(4@, 14@, 15@, 16@)
:POLBACK_402
wait 0
if
01B0: car 5@ sphere 0 in_sphere 14@ 15@ 16@ radius 13.0 13.0 13.0 stopped
wait 500
6@ = Car.Create(#stretch, 14@, 15@, 16@)
wait 500
07F8: car 4@ follow_car 6@ radius 27.0
07F8: car 5@ follow_car 6@ 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.

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#20

Posted 29 October 2009 - 03:41 PM

CODE
if <<<<<<<<
01B0: car 5@ sphere 0 in_sphere 14@ 15@ 16@ radius 13.0 13.0 13.0 stopped
wait 500
6@ = Car.Create(#stretch, 14@, 15@, 16@)
wait 500
07F8: car 4@ follow_car 6@ radius 27.0
07F8: car 5@ follow_car 6@ radius 27.0


when you place an
CODE
00D6: if
you also have to set an
CODE
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




comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#21

Posted 29 October 2009 - 05:36 PM

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

JohnPhoenix
  • JohnPhoenix

    Player Hater

  • Members
  • Joined: 07 Oct 2009

#22

Posted 03 November 2009 - 03:45 AM

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!!

comet1440
  • comet1440

    Square Civilian

  • Members
  • Joined: 16 Jun 2004

#23

Posted 02 December 2009 - 07:56 PM

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


TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#24

Posted 02 December 2009 - 08:57 PM

awesome! smile.gif

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

Sparky32
  • Sparky32

    Player Hater

  • Members
  • Joined: 15 Jul 2013

#25

Posted 15 July 2013 - 05:30 AM

how can I download this mod???
plz tell me....




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users