Jump to content
Sign in to follow this  
Sgt. Stryker

Boom boom not on me

Recommended Posts

Ok i was wondering if theres a script for this or if its even possible. Have an area with explosions going on all over, say every 15 sec or so, BUT it NEVER hits or injures the person you are playing as. So i want explosions all around you (like 20 feet away) but never on you, ya get what i mean? I'd love to add custom incoming mortar sounds but thats later i guess.

Share this post


Link to post
Share on other sites

none of those have exactly what I'm looking for though, I want a script that will never kill you but can kill others on your squad, in my case a bunch of Marines on a hill top.

Share this post


Link to post
Share on other sites
none of those have exactly what I'm looking for though, I want a script that will never kill you but can kill others on your squad, in my case a bunch of Marines on a hill top.

That will never work, if you get an shell upon your head you'r stone dead.

unit allowDammage 0

was removed pretty early.

Share this post


Link to post
Share on other sites

Ok, I made a small barrage script with a safe zone for you. smile_o.gif

Here's the script, name it SafeBarrage.sqs:

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

_d = _this select 1;

_t = _this select 2;

#LOOP

BombPos setpos [(getpos BombCenter select 0) + random _k, (getpos BombCenter select 1) + random _k]

?((BombPos distance player)<_d): goto "LOOP"

Bomb="Heat125" camcreate [(getpos BombPos select 0), (getpos BombPos select 1)]

~(random _t)

? StopBarrage : exit

Goto "LOOP"

NOTE: You need 2 game logic obejcts for this to work: 'BombCenter' which points out the area where the barrage will be centered, and 'BombPos', don't worry about this just put it somewhere on the map.

Acitvate the script with this: [A,B,C] exec "SafeBarrage.sqs"

A= The radius of the Barrage in meters

B= Radius of the safe zone around player within the Barrage area, suggest you put at least 15m wink_o.gif

C= Maximum time between 2 bombs

if you want the barrage to end at somepoint, do it with this: StopBarrage=true

Share this post


Link to post
Share on other sites

thankyou that is exactly what I was looking for, I think i gotta see how it works after my classes.

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  

×