Home   Help Search Login Register  

Author Topic: parachutes getting stuck in trees  (Read 1920 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
parachutes getting stuck in trees
« on: 19 Mar 2005, 04:47:07 »
is there any way to make a script that if a paratrooper is over trees or a forrest, then if he hits a tree the parachute will be stuck in a setpos loop where it first hit the tree.

then the player gets an action"cut harnes" and when he activates it it takes a few secconds and then he drops out of his parachute and falls to the ground, better not use cut if hes too high up.

you could use getspeed to see if the parachute has gone to getspeed _para ? < 3 : posloop

his speed will go below 3 when he hits the tree and he will then get stuck

bored_onion

  • Guest
Re:parachutes getting stuck in trees
« Reply #1 on: 19 Mar 2005, 16:51:37 »
maybe if you put triggers over all of the forests then you could detect height

bit tiresome but it could work

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:parachutes getting stuck in trees
« Reply #2 on: 19 Mar 2005, 18:22:41 »
no this would be simple simply use this file ([man] exec "Paracheck.sqs") on every dude who gets stuck in trees

Code: [Select]
_unit = _this select 0
@(velocity _unit select 2 > -4)
_unit setpos [(getpos _unit select 0),(getpos _unit select 1),0]
exit

It will be a big jerk but you could easily fix the problem with a loop and getpos, but I don't feel like typing all that in right now... :P
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:parachutes getting stuck in trees
« Reply #3 on: 25 Mar 2005, 03:00:54 »
well, thanks for trying but it dosent work really,

could sombody expand on his idea, or rijik plz finish it.

Offline 456820

  • Contributing Member
  • **
Re:parachutes getting stuck in trees
« Reply #4 on: 31 Mar 2005, 11:24:37 »
i tried doing this but it didnt seem to work i had a paradrop script from a chopper and timed how long it takes you to get from the chopper tho the tree height and then i ran another script with a hint saying you go stuck in teh tree and setpositioning the player about 2 metres of the grounf then added a action called cut parachute and then i played an animation then set positioned him to the grounf.
i dunno why but he kept falling over and dying

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:parachutes getting stuck in trees
« Reply #5 on: 01 Apr 2005, 01:48:05 »
really?

wow, could i have it.

i actualy wanted him to die if he falls from to high up so dont worry about the setpos,

I just want the para getting stuck and him getting the action to cut it and if he cuts it then he is right next to the straps and just falls from there so if he is too high when he cuts it then he dies or breaks a leg, if he dosent cut it then i have a script which has his buds come get him down.

thanks  

Offline 456820

  • Contributing Member
  • **
Re:parachutes getting stuck in trees
« Reply #6 on: 01 Apr 2005, 09:05:43 »
yeah sur you can have it as long as if you get it to work i can have a little copy.
i will have to fish it out of my recycle bin. so it will be later on
and by the way its nothing really that specail
« Last Edit: 01 Apr 2005, 09:06:10 by 456820 »

Offline 456820

  • Contributing Member
  • **
Re:parachutes getting stuck in trees
« Reply #7 on: 01 Apr 2005, 09:09:56 »
wow that didnt take long got it
basically one script times how long then set posess him in the tree then adds an action cut then when that is activated it plays hand behind neck anim thenn set poses him back down slowly so im not sure why he died any way hee it is

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:parachutes getting stuck in trees
« Reply #8 on: 01 Apr 2005, 09:35:34 »
hmm, im not a good scripter how would i remove the setpos down slowly part and just keep everything else

Offline 456820

  • Contributing Member
  • **
Re:parachutes getting stuck in trees
« Reply #9 on: 01 Apr 2005, 10:08:01 »
in cut.sqs
remove the lines that say off1 setpos
and also dont forget to rename all the off1 with player or whoever you want to get stuck