Home   Help Search Login Register  

Author Topic: Darn helicopters! I want it to be a surprise party!  (Read 2141 times)

0 Members and 3 Guests are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Darn helicopters! I want it to be a surprise party!
« on: 21 Jan 2003, 19:43:10 »
Hi! Is there a way to "destroy" the sound of helicopters? IÂ'm making a map where the player is defending a town, and the Americans are attacking it. But since the soldiers force is smaller than the US force, they have to get some reinforcements, thats where the problem is:

The reinforcements are huge! And IÂ'm talking really huge, about 15 Mi17s and perhaps 60 boats. Anyway, the choppers really sound much, and I want the player to feel, "when are the reiforcements coming?! IÂ'm pinned down here! WeÂ're gonna die! WeÂ're gonna die! Die, die, die, I want to get to mom!( ;D)" and the choppers sound make him "Aha, thereÂ's my reinforcements, let just keep myslef alive in a moment then.". Is there some way to "blind" or "destroy the chopper sound, it doesnÂ't matter if the sound doesnÂ't return when I want to, the mission ends when the reinforcements are coming. Plz help

Thx in advance.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Darn helicopters! I want it to be a surprise party!
« Reply #1 on: 21 Jan 2003, 19:47:29 »
mebe put em far and setpos wen u need em ?

so dey sound nly wen close ;D

Quote
about 15 Mi17s and perhaps 60 boats

:wow:

wont dis lag :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #2 on: 21 Jan 2003, 19:50:05 »
mebe put em far and setpos wen u need em ?

so dey sound nly wen close ;D:wow:

wont dis lag :P

LCD OUT

EDIT: IÂ'll try that if no other way comes up, but it wont look good, all quiet, then suddenly, a earblowing sound, itÂ's better with no sound at all. Thx, LCD.

About the lag, ok, IÂ'll half the boats and make 10 choppers.
« Last Edit: 21 Jan 2003, 19:52:27 by The real Armstrong »

O Neil

  • Guest
Re:Darn helicopters! I want it to be a surprise party!
« Reply #3 on: 21 Jan 2003, 21:43:33 »
Wasn't there something that reduced the sound>?

Damn, it was something like               0 fadesound 0        or something ?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Darn helicopters! I want it to be a surprise party!
« Reply #4 on: 21 Jan 2003, 21:57:56 »
 :) the sound can be faded, yes. But during a battle it wouldn't rock to fight like a deaf
unless off course yer mission is one of those shell-shock sims  ::) :)


Put yer birds on the map somewhere far away, m8 and then setpos them in (flying & all) when some trigger fires or alike, and then (when all this happens) let it happen in a tiny cutscene showing the mi17's getting closer while a piece of music is runnuing and the sounds is faded to null, now slowly fading up again.

Som'n like:

1. Trigger fires (condition could be YerGroup counting < #)
2. cutscene starts (instantly 0 fadeSound 0.0; music starts a few sec's before that)
3. 25 fadesound 1 (this will turn the chopper enginge sound slowely "on" )
4. pause & have a beer  8)
5. back to work  :)



Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #5 on: 22 Jan 2003, 07:49:15 »
Sorry, I canÂ't do that, you have to discribe it in another way, IÂ'm to young for beer ;D.

Ok, IÂ'll try that Tomb. Thx.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #6 on: 22 Jan 2003, 19:06:25 »
Ok, heres a Noob Q about the subject:

IÂ've never used setpos, and I found it in my command reference. You have to use da coordinates, where do you find them in the editor? I tried to guess myself to the place I want, but it take soooooooooooo long time. There must be some kind of read-of so you see where a palce is.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Darn helicopters! I want it to be a surprise party!
« Reply #7 on: 22 Jan 2003, 20:18:04 »
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_10

check that out. there should be a couple of snippets that convert them grids into undestandable coordinates.. even live when your moving around in the island.


but that's the hard way.

...

you wanna?

...
you wanna know?

 ;D

ok the easy way:

put an object (use a game logic!!)  to the spot where you want them choppers to setpos to and then use

chopper1 setpos getpos gl1    ;)

Note that if you've got lots and lots of units to setpos to many different places you should remove them game logics with a script because it just might loosen up a tiny bit of resources and therefore make it less laggy.

edit

eh sorz. you may want to use this kind of syntax with that  ::)

chopper1 setpos [(getpos gl1 select 0),(getpos gl1 select 1),70]
so that's like
unitname setpos [x,y,z] in which the x and y you'll be getting with getpos and z you add with real numbers.  :D
« Last Edit: 22 Jan 2003, 20:24:21 by Artak »
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #8 on: 22 Jan 2003, 20:24:13 »
Ok, IÂ'll try that Artak, thx!

*Mission, if not screwing up as all my other missions (even the submission I did, is there anyway to desubmission a mission?) are soon out in the BETA stadium and will be seen in the Missions: BETA testing board)

Offline Blanco

  • Former Staff
  • ****
Re:Darn helicopters! I want it to be a surprise party!
« Reply #9 on: 22 Jan 2003, 21:22:18 »
I think I can help ya,I did it once in one of my own missions, but it were 2 choppers instead of 10..

I can tell you how you can do this with one chopper, repeat this if you want more of them.

- I placed somewhere on the map far from the action:

- jack : the pilot
- bob : the gunner

and

- marker(empty) name "spawn"
- marker(empty) name "chopmove"

then I wrote a script :activated via a trigger or whatever...


reinforments.sqs

chop = "Mi17" camcreate getmarkerpos "spawn"

chop setPos [(getPos chop select 0),(getPos chop select 1),(getPos chop select 2)+800]

chop setdir 45 (I choose 45 which is NE, I think)

Jack moveindriver chop

Bob moveingunner chop

Jack domove getmarkerpos "chopmove"

@ unitready jack

and so on ... land, dofire...whatever you want him to do


This works for me but remember you have to place a marker for every chopper and dont forget the crew.
Place the marker really far from the action, You won't hear the engines at all.
You can experiment with the 800 in the setpos line, cause at night I had to place it a lot higher (1200m) I don't know why...


I'm not a scripter, but I know this works for me...maybe there is some1 with a easier way...

hmm.. I don't have OFP with me now, so there could be some typo's, ... "Mi17" I'm not sure about that,check the comref

Hope it helps m! ;)

Blanco
 

 
 


« Last Edit: 22 Jan 2003, 22:18:19 by Blanco »
Search or search or search before you ask.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #10 on: 22 Jan 2003, 21:32:03 »
Thx, but I used the method before you. And about the mission in BETA. Well, itÂ's gonna take a while, I think IÂ've got a BETA release in the next, next, next week. But this map is gonna be great! It mixes the CoC mod with LCDs Flashback and fast action! ThatÂ'll mean that you got fast action without some action-lowering radio messages, and still take controll over several groups. IÂ've got a smart system inside my head, and youÂ'll c what I mean if youÂ're a BETA tester.

I plan to use a lot of scripts though, and IÂ'm useless on such, I could need youÂ're help on that.

Aaahhh, at last! Of all my missions I have done none of them were good. But this time, patience will pay! Justice will come! I will brake the magic 10 out of 10, MUHAHAHAHAHA!

( ;D)

silent1

  • Guest
Re:Darn helicopters! I want it to be a surprise party!
« Reply #11 on: 22 Jan 2003, 22:44:13 »
It should be:
 
    MWUHAHAHAHAHAHA

with a W!

tut tut tut

er...

I think you can de-submission your mission, just IM the friendly peeps at Missions and you should be fine!


  (It is on topic, you see  :))

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:Darn helicopters! I want it to be a surprise party!
« Reply #12 on: 23 Jan 2003, 06:06:07 »
Code: [Select]
helicopter flyInHeight height
Operand types:
    helicopter: Object
    height: Number
Type of returned value:
    Nothing
Description:
    Set flying height level for helicopter. Accepter range is 50 to 1000.

Example:
    cobraOne flyInHeight 150

Why not just have the helicopters fly really high up and then when they get closer they move down more?  Doesn't something at 1000 feet above you sound as faint as something at 1000 feet to the right of you?

Doolittle

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Darn helicopters! I want it to be a surprise party!
« Reply #13 on: 23 Jan 2003, 07:54:07 »
It should be:
 
    MWUHAHAHAHAHAHA

with a W!

tut tut tut

er...

I think you can de-submission your mission, just IM the friendly peeps at Missions and you should be fine!


  (It is on topic, you see  :))

In sweden it is without "W" mus have mixed em toghether

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Darn helicopters! I want it to be a surprise party!
« Reply #14 on: 23 Jan 2003, 08:57:20 »
Just one more thingy here:

Why is everybody talking about more than one marker
for more than one chopper?

You could use one marker (or gamelogic) as a reference for
the setpos command aswell. Same way, as you can alter the
height, it's x/y coordinates can be altered.

chopper1 setpos [(getpos gl1 select 0),(getpos gl1 select1),70]
chopper 2 setpos [(getpos gl1 select 0) -15,(getpos gl1 select 1) -15),70]

In both cases the same "gl1" was used, but the two choppers
weren't spawned on the same spot.

~S~ CD
« Last Edit: 23 Jan 2003, 08:58:40 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted