Home   Help Search Login Register  

Author Topic: Cluster bomb para's (Script included)  (Read 1941 times)

0 Members and 1 Guest are viewing this topic.

Remi

  • Guest
Cluster bomb para's (Script included)
« on: 29 Sep 2002, 22:13:30 »
Ok,
I made the cluster bomb para script ready to use.
You need the Chinoek (for 24 men) chopper and two teams.
Name the Chopper: Hawk
Name the first team: Oplead
Name the second team: Oplead2
Use: "this moveInCargo Hawk" on each team member in both teams.
Make sure the chopper flys at 180 height and not to fast use: Hawk FlyInHeight 180

Place a trigger activated by your chopper to activate the script.  

Effect: All men jump from the chopper, and just before they land the ground is bombed with a cluster bomb carpet. And a smoke field.

System requirements: Faster is better, you need a real fast computer for this script!

The Script (also included as .sqs file):

;Usage [] exec "para.sqs"
_ParaGroup=units OpLead
_ParaGroup2=units Oplead2
_Counter=0
_GroupCount=count _ParaGroup
_SmokeCounter=4

#Gr1Loop
(_ParaGroup select _Counter) action ["EJECT",Hawk]
unassignvehicle (_ParaGroup select _Counter)
_Counter=_Counter+1

_P=GetPos Hawk
_PX=_P select 0
_PY=_P select 1
_PZ=_P select 2

_NoUse="grenade" camCreate [_PX, _PY, _PZ-26]
_NoUse="grenade" camCreate [_PX-20, _PY-20, _PZ-24]
_NoUse="grenade" camCreate [_PX+20, _PY+20, _PZ-22]
_NoUse="grenade" camCreate [_PX-20, _PY+20, _PZ-20]
_NoUse="grenade" camCreate [_PX+20, _PY-20, _PZ-18]
_NoUse="grenade" camCreate [_PX-30, _PY-30, _PZ-16]
_NoUse="grenade" camCreate [_PX+30, _PY+30, _PZ-14]
_NoUse="grenade" camCreate [_PX-30, _PY+30, _PZ-12]
_NoUse="grenade" camCreate [_PX+30, _PY-30, _PZ-10]
_NoUse="grenade" camCreate [_PX-40, _PY-40, _PZ-8]
_NoUse="grenade" camCreate [_PX+40, _PY+40, _PZ-6]
_NoUse="grenade" camCreate [_PX-40, _PY+40, _PZ-4]
_NoUse="grenade" camCreate [_PX+40, _PY-40, _PZ-2]
?(_SmokeCounter==4):goto "Do1"
_SmokeCounter=_SmokeCounter+1
goto "skip1"

#Do1
_NoUse="smokeshell" camCreate [_PX-40, _PY-40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX+40, _PY+40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX-40, _PY+40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX+40, _PY-40, _PZ-1]
_NoUse="flare" camCreate [_PX, _PY, _PZ-1]
_SmokeCounter=0
#skip1
 
~0.8
?(_Counter<_GroupCount):goto "Gr1Loop"

_Counter = 0
_GroupCount = count _ParaGroup2


#Gr2Loop
(_ParaGroup2 select _Counter) action ["EJECT",Hawk]
unassignvehicle (_ParaGroup2 select _Counter)
_Counter=_Counter+1

_P=GetPos Hawk
_PX=_P select 0
_PY=_P select 1
_PZ=_P select 2

_NoUse="grenade" camCreate [_PX, _PY, _PZ-26]
_NoUse="grenade" camCreate [_PX-20, _PY-20, _PZ-24]
_NoUse="grenade" camCreate [_PX+20, _PY+20, _PZ-22]
_NoUse="grenade" camCreate [_PX-20, _PY+20, _PZ-20]
_NoUse="grenade" camCreate [_PX+20, _PY-20, _PZ-18]
_NoUse="grenade" camCreate [_PX-30, _PY-30, _PZ-16]
_NoUse="grenade" camCreate [_PX+30, _PY+30, _PZ-14]
_NoUse="grenade" camCreate [_PX-30, _PY+30, _PZ-12]
_NoUse="grenade" camCreate [_PX+30, _PY-30, _PZ-10]
_NoUse="grenade" camCreate [_PX-40, _PY-40, _PZ-8]
_NoUse="grenade" camCreate [_PX+40, _PY+40, _PZ-6]
_NoUse="grenade" camCreate [_PX-40, _PY+40, _PZ-4]
_NoUse="grenade" camCreate [_PX+40, _PY-40, _PZ-2]
?(_SmokeCounter==4):goto "Do2"
_SmokeCounter=_SmokeCounter+1
goto "skip2"

#Do2
_NoUse="smokeshell" camCreate [_PX-40, _PY-40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX+40, _PY+40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX-40, _PY+40, _PZ-1]
_NoUse="smokeshell" camCreate [_PX+40, _PY-40, _PZ-1]
_NoUse="flare" camCreate [_PX, _PY, _PZ-1]
_SmokeCounter=0
#skip2

~0.8
?(_Counter<_GroupCount):goto "Gr2Loop"


exit

Stalker

  • Guest
Re:Cluster bomb para's (Script included)
« Reply #1 on: 04 Oct 2002, 10:56:10 »
Maybe a sample mission plz

2LTNeowulf

  • Guest
Re:Cluster bomb para's (Script included)
« Reply #2 on: 04 Oct 2002, 19:58:47 »
also i tried it out using players and other players cant see the effects. just the grenades...somehow it needs to be made global...so a solier might be able to call it as a tatical drop.

CareyBear

  • Guest
Re:Cluster bomb para's (Script included)
« Reply #3 on: 05 Oct 2002, 13:36:19 »
camCreate only creates the effect on the computer which runs the script. You can force a camCreate on the other player's computers as well, but that will increase the damage of the grenades * the number of players... The smoke shells will work fine though.

The only real option you have for explosions in multiplayer is to use the exploding M2 machinegun trick, which doesn't sound as cool or look as cool as grenades, but does a realistic damage explosion for a bomblet/shell/mortar. There are a few examples of that one in the script snippets section under artillery.