Home   Help Search Login Register  

Author Topic: My tailrotor-failure script  (Read 2609 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis6

  • Members
  • *
My tailrotor-failure script
« on: 28 Jul 2004, 00:59:07 »
I edited Icarus' fire script(a lot) and added the turning stuff and all. Then I added Vektorboson's smoke(which I edited quite a bit, too) and finally, I added a little explosion effect for the tailrotor position. Anyway, here it is -

(By the way, the particle position is based on the AH-64, so if you want to use it on other choppers, you'll have to adjust the position)
« Last Edit: 28 Jul 2004, 01:01:24 by Nemesis6 »
I am actually flying into a star... this is incredible!

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:My tailrotor-failure script
« Reply #1 on: 28 Jul 2004, 08:57:59 »
I tested it.... Seems nice! the smoke effect looks cool... I think though, that the chopper spins a little bit too fast, making it spin slower would look cool ;)

Or maybe it would have a parameter for spinning speed? ;) Otherwice, nice, though I haven't seen the original script.... :P

Maker

  • Guest
Re: My tailrotor-failure script
« Reply #2 on: 20 Jun 2006, 23:22:43 »
Hey! Now i can't find where this Script is located at for Download.
I really need a Tailrotor Script.

And since i can't find it in the editors depot Nor anything in the FAQ (FAQ not wokring for me), Maybe some of you guys here maybe have it?  ;D

Thank you!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: My tailrotor-failure script
« Reply #3 on: 21 Jun 2006, 23:43:14 »
Here you go.

Code: [Select]
; tail-rotor fail script by Vektorboson
; SYNTAX
; [CHOPPER, <RANDOMKILLS, MAXKILLS>] exec "effects\tailrotor.sqs"
; CHOPPER is the helicopter
; RANDOMKILLS is either true or false (random people are killed)
; MAXKILLS is maximum of randomkills

_heli   = _this select 0
_random = true
_maxkills = 4
?count _this == 2: _random = _this select 1; _maxkills = 4
?count _this == 3: _random = _this select 1; _maxkills = _this select 2

; Position of helicopter engine (adjust this for different helicopters!)
_enginePos = [0, -3, 1]

drop ["cl_fire", "", "Billboard", 1, 1, _enginePos, [0,-3,1], 0, 1, 1, 0.001, [1,5], [[1,1,1,1],[1,1,1,0]], [0], 0.1, 0.2, "", "", _heli]
~0.05
drop ["cl_fire", "", "Billboard", 1, 1, _enginePos, [0,-3,1], 0, 1, 1, 0.001, [1,5], [[1,1,1,1],[1,1,1,0]], [0], 0.1, 0.2, "", "", _heli]
~0.02
drop ["cl_fire", "", "Billboard", 1, 1, _enginePos, [0,-3,1], 0, 1, 1, 0.001, [1,5], [[1,1,1,1],[1,1,1,0]], [0], 0.1, 0.2, "", "", _heli]
_AddDir = 0.1
~(random 1)

#loop
_dir = getDir _heli
?_AddDir < 5: _AddDir = _AddDir + 0.05
_heli setDir (_dir + _AddDir)
_v = Velocity _heli
_heli setVelocity  [((_v select 0) / 1.001), ((_v select 1) / 1.001), -5]
drop ["cl_basic", "", "Billboard", 7, 7, _enginePos, [0,0,0], 0, 1, 1, 0.001, [1,5], [[0,0,0,0],[0,0,0,0.7],[0,0,0,0]], [0], 0.1, 0.2, "", "", _heli]
~0.01
?getPos _heli select 2 > 2: goto "loop"

?alive _heli: _heli setDammage 0.8; _heli setFuel 0
?!alive _heli: exit

?!_random: exit
; now the randomkills
_crew = crew _heli
_c = count _crew
_i = 0
_kills = 0
#crew
_unit = _crew select _i
?random 1 > 0.8 && _unit != player: _unit setdammage (random 1)
?random 1 > 0.8 && _unit != player && _kills < _maxkills: _unit setdammage 1; _kills = _kills + 1
_i = _i + 1
?_i < _c: goto "crew"
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Maker

  • Guest
Re: My tailrotor-failure script
« Reply #4 on: 22 Jun 2006, 01:02:30 »
Ahh Many thanks!  :)

By the way.. Is their anyway i can change the Speed on how fast it should spin.
Because i get a headache everytime it spins.  :o
« Last Edit: 22 Jun 2006, 01:14:35 by Maker »

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: My tailrotor-failure script
« Reply #5 on: 08 Jul 2006, 19:28:41 »
?_AddDir < 5: _AddDir = _AddDir + 0.05

Changing the 0.05 or the 5 number might do it. Thats just reading the script through, I havnt done it, and im not a scripter either :P