Home   Help Search Login Register  

Author Topic: Parachute stuff and more..  (Read 642 times)

0 Members and 1 Guest are viewing this topic.

Homefry31464

  • Guest
Parachute stuff and more..
« on: 11 Oct 2003, 00:13:19 »
Some scripts that would really help me making a mission, and I am sure some other mission makers could use them as well.


1.  Control Parachute:  In real life, I believe all parachutes are somewhat controllable.  Is it possible to maybe allow the player to run a script via the action menu, click (preferrably on screen, but on the map would be okay), then drift towards it.  He wouldn't have to land there exactly, just near it.

2.  Ripped or trapped parachute.  A script to make the parachute spin out of control and drop the player fast, but not kill the player while it is in the air.  

3. Some sort of script that allows an A-10 with an LGB to target all of the AAA systems in an area.  OR..., a script that makes an A-10 to pick one target of multiple targets, then attack that gamelogic or invisible object in a certain area.  

4.  Sparks.  I am not sure if this is possible, so I come to you, the guru's.  When a bullet hits a specified building (a metal one, or even the side of a vehicle, spark instead of forming that brown puff of particles.)

m21man

  • Guest
Re:Parachute stuff and more..
« Reply #1 on: 11 Oct 2003, 01:04:34 »
1. The controllable parachute could be done with some small scripts that detected if the player was in a parachute, and if he was, would allow him to pull "toggles" i.e. use setvelocity bumps to move the parachute.

2. Spinning = setdir, falling can be done by ramming you downwards with good old setvelocity.

3. Make an array of all AAA units, then have the A-10 attack the closest vehicle.

Homefry31464

  • Guest
Re:Parachute stuff and more..
« Reply #2 on: 11 Oct 2003, 01:15:40 »
For #3, I meant it be random.  But I may just do that.

Homefry31464

  • Guest
Re:Parachute stuff and more..
« Reply #3 on: 11 Oct 2003, 15:02:58 »
A new one.  Addaction something like "Insertion", then click on the map.  The helicopter you were in would fly there, drop you off, then land at a marker somewhere.

m21man

  • Guest
Re:Parachute stuff and more..
« Reply #4 on: 11 Oct 2003, 17:57:37 »
Re: "Insertion" Post

Two scripts ;D.

Code: [Select]
;Designator script
hint "Select the location for paradrop."
onmapsingleclick {[_pos,_units,_shift,_alt] exec "dump.sqs"}
exit

Code: [Select]
;Paradrops troops
_pos = _this select 0

_dumper = vehicle player
?(_dumper == player): goto "exit"
_dumplogic = "logic" createvehicle _pos

#movealong
_dumper domove _pos
@_dumper distance _dumplogic <= 350

#primary
player action ["eject",_dumper]
_dumplogic setpos getmarkerpos "safemkr"
chopper domove getmarkerpos "safemkr"
@_dumper distance _dumplogic <= 350
_dumper land "land"
deletevehicle _dumplogic

#exit
exit
« Last Edit: 11 Oct 2003, 18:00:41 by m21man »

Homefry31464

  • Guest
Re:Parachute stuff and more..
« Reply #5 on: 11 Oct 2003, 20:07:24 »
Wow, thanks a bundle.

m21man

  • Guest
Re:Parachute stuff and more..
« Reply #6 on: 11 Oct 2003, 21:18:43 »
I'm not sure about the syntax, I haven't tested this script.