Jump to content
Sign in to follow this  
Shadow_Spyder

any newb friendly IED scripts?

Recommended Posts

I've watched my brother-in-law play Assassins creed on the 360.... i thought it was going to be awesome, and it looks like lots of fun... cept that present day/futuristic crap kinda ruins it... why can't it just be about an assasin killin people... no, it's gotta be about a memory taker from ancesters or something.

Anywayz, back to the mission/script. Here is the IED script i am using

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

; Improvised Explosive Device Script

; By Jeevz

; v1.2 12/13/06

; This script will create an explosion of a

; selected size on any object when called

; The arguments are [objectName, explosionPower]

; Explosion Power will be 1 of 4 choices

; Small - Good for Anti-Personnel use

; Medium - Will usually disable a Humvee without killing the occupants

; Large - Will usually destroy a passing humvee and kill or severly injure all occupants, will disable the tracks and possibly engine on M1A1

; Huge - Nothing will survive, I mean... it's HUGE :-)

; Example script call --> [theCar, "Small"] exec "IED.sqs"

;start script

_theObject = _this select 0

_theExplosion = _this select 1

;locate the Object to be blown up

_bombLoc =  GetPos _theObject

_bombLocX = _bombLoc select 0

_bombLocY = _bombLoc select 1

_bombLocZ = _bombLoc select 2

; Deterimine the ordinance used to create the explosion

? (_theExplosion == "Small") : _ammoType = "R_PG7VR_AT"

? (_theExplosion == "Medium") : _ammoType = "M_Sidewinder_AA"

? (_theExplosion == "Large") : _ammoType = "M_Sidewinder_AA"

? (_theExplosion == "Huge") : _ammoType = "Bo_GBU12_LGB"

civvy1 globalchat _ammoType

; Get the explosion size and blow the object up

? (_theExplosion == "Small") : goto "SMALL"

? (_theExplosion == "Medium") : goto "MEDIUM"

? (_theExplosion == "Large") : goto "LARGE"

? (_theExplosion == "Huge") : goto "HUGE"

#SMALL

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_theObject setdammage 1

civvy1 globalchat "Small"

exit

#MEDIUM

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_theObject setdammage 1

civvy1 globalchat "Medium"

exit

#LARGE

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_theObject setdammage 1

civvy1 globalchat "Large"

exit

#HUGE

_ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_theObject setdammage 1

civvy1 globalchat "Huge"

exit

Any help with placing your bit of script into it would be greatly appreciated. Thanks!

Add this to the very top of this script to stop the multiple explosions on a server.

Quote[/b] ]? !IsServer : Exit

Anyways i also use this script and the 4 damage effects work quite well for me anyways.

Share this post


Link to post
Share on other sites

Change the "M_Sidewinder_AA" to something else as that isnt a very powerfull explsions anyways.

Share this post


Link to post
Share on other sites

Ok, Can I just copy

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

#loop

_bomb = _ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType setPos [getpos _bomb  select 0, getpos _bomb  select 1, (getpos _bomb  select 2) +2]

_i = _i -1

? _i < 1: goto "next"

goto "loop"

#next

_theObject setdammage 1

civvy1 globalchat "Large"

exit

into each of the bomb sizes? SO jus replace all of them with that? Or do they need to be modified for each thing?

~~EDIT~~ Nevermind, got it working. All sizes work as they should. I also edited the height to .1 and now I can use missles or rockets and they still explode cuz there practically on the ground. Also, when it was set at 2, I could see the ammotype/object actually fall from the sky, so that was no good either, but now it is working and doing it's jobs at 35 m and doing the damage, so thank you both very much!

Share this post


Link to post
Share on other sites
Ok, Can I just copy

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

#loop

_bomb = _ammoType createVehicle[_bombLocX, _bombLocY, _bombLocZ]

_ammoType setPos [getpos _bomb select 0, getpos _bomb select 1, (getpos _bomb select 2) +2]

_i = _i -1

? _i < 1: goto "next"

goto "loop"

#next

_theObject setdammage 1

civvy1 globalchat "Large"

exit

into each of the bomb sizes? SO jus replace all of them with that? Or do they need to be modified for each thing?

~~EDIT~~ Nevermind, got it working. All sizes work as they should. I also edited the height to .1 and now I can use missles or rockets and they still explode cuz there practically on the ground. Also, when it was set at 2, I could see the ammotype/object actually fall from the sky, so that was no good either, but now it is working and doing it's jobs at 35 m and doing the damage, so thank you both very much!

and you learned alot out of this too smile_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  

×