Jump to content
Sign in to follow this  
cobra@pulse

Car chases

Recommended Posts

Hi,

As you know, Pulse Studios has just reliesed a James Bond mission, now we want to make a follow up to this. In the mission Bond gets in a car and is chased by some men in another car.

Now I want the car to be able to keep up with Mr. Bond, so it is a chase, but it either lags behind or I would have to group it but that would make it west.

Is there anyone who can solve this, please help.

Credit will be given.

P.S. Is there a car addon that has a guy that will shot from the car that is a civilian car not a HMMWV or whatever.

thanks. biggrin_o.gif

(sorry if this is really confusing)

Share this post


Link to post
Share on other sites

Well you could make a loop script witch tells the "Chasing car" to move to the car beging chased.

Im thinking somthing like that should work:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_Car1=_this select 0

_car2=_this select 1

#Loop

_car2 domove (getpos _car1)

~1

goto "loop"

And to ativate it,put in activation field of a trigger or init line of a car:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[Name1,Name2] exec "NameSQS.sqs"

Name1 should be the name of the car that is being chased

Name2 should be the name of the car chasing

NameSQS should be what ever you called the chasing sqs i just wrote for you.

Cheers,

Murphy. wink_o.gif

Share this post


Link to post
Share on other sites

If the car is still lagging behind you could try using setvelocity on it to speed it up.

RED

Share this post


Link to post
Share on other sites

Thanks RED & D.murphy man,

By the way do either of you know where to get that addon i asked about above?

Thanks again.

Share this post


Link to post
Share on other sites

I didn't know we were releasing another Bond mission. mad_o.gif

Me and Winters are still trying to fix up the original.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">car2 doFollow car1

?

Share this post


Link to post
Share on other sites
Thanks RED & D.murphy man,

By the way do either of you know where to get that addon i asked about above?

Thanks again.

No i do not think there is any addon like that out there.All tohugh it would be a good idea for you addon makers out there (hint,hint wink_o.gif )

I remember seeing a german WW2 motobike with a side car that had a machinegun attached to it.Maybe you could use that?

Ill try find a link and get back to you.

Edit:

Ok i found it

BMW R75 (4th one down the list)

Allso on that page a discoverd a Car with a passenger mounted machine gun.Its called Mercedes 240 GD (second one from the bottom)

Hope this helps,any thing els just ask!

Share this post


Link to post
Share on other sites

Would it be possible to camcreate bullets near the players car?

And just have MG sounds play aswell.

That way you get the effect that someone is shooting at you. It's not like you will look behind you to check if they REALLY are shooting(not possible) tounge_o.gif

Share this post


Link to post
Share on other sites

Good idea but it be a lot of hassle just for that,Might as well just make the bike/car fire at you. I allso have a handy script i found at OFPED center for the AI to spray there shots a bit more and thus making them less accurate.Since in ever James bond movie iv seen the "baddies" cant aim for shit tounge_o.gif

Here it is:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">activated by this in INIT: of unit

unit addeventhandler ["fired", {_this exec "spray.sqs"}]

;spray script

Code: _man = _this select 0

_count = 0

_start1 = "start1"

_start2 = "start2"

_start1_and_start2_array = [_start1, _start2]

_random = random (count _start1_and_start2_array)

_random = _random - _random % 1

_randomstart = _start1_and_start2_array select _random

_man removealleventhandlers "fired"

_mandir = getdir _man

goto _randomstart

#start1

_man setdir _mandir

_mandir = _mandir + 0.06

_count = _count + 1

? _count > 50: goto "end"

~0.01

goto "start1"

#start2

_man setdir _mandir

_mandir = _mandir - 0.06

_count = _count + 1

? _count > 50: goto "end"

~0.01

goto "start2"

#end

_man addeventhandler ["fired", {[_this select 0] exec "spray.sqs"}]

exit

Script created by Zayfod,all credit goes to him. Script was quoted from the OFPEC forums.

Share this post


Link to post
Share on other sites

If the Bond Baddies could aim we wouldnt have 20 movies to watch tounge_o.gif

Hey wait a sec. we are making a new bond mission??? Death and Defiance hasn't been finished yet.

wOw i guess we are some hard working mo-fo's wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×