SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
05-21-20, 08:42 AM | #1 |
Medic
|
Air raid harbour siren
Hello,
In GWX 3.0, I remember that a siren sound was played when a harbour was attacked by airplanes. Does anyone know how this is possible??? There is a special particle in particles.dat (in the library), but how is this particle triggered??? Thank you in advance! |
05-21-20, 09:32 AM | #2 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,340
Downloads: 843
Uploads: 0
|
__________________
|
05-21-20, 10:03 AM | #3 |
Medic
|
@Anvar: Thank you I know! My question is: how this particle is triggered? What is the mechanism that will play this particle when airplanes are spotted???
|
05-21-20, 10:08 AM | #4 | |
Navy Seal
|
Quote:
Probably like the fanfare music playing when you close dock
__________________
|
|
05-21-20, 02:26 PM | #5 |
Ocean Warrior
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,340
Downloads: 843
Uploads: 0
|
__________________
|
05-21-20, 08:03 PM | #6 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
I don't know how that was done by other modders, but the way I would do it, is creating a land or sea unit (it could be just a dummy unit or be shaped as a building or a siren) and equipping it with a fake AA gun. With the appropriate elevation settings, this gun can be made to only fire against enemies which are high on the sky i.e. planes. Gun and visual sensor range settings will help deciding at which range from this "siren unit" anemy aicraft must be, for it to start shooting at them. At this point, all you have to do is giving this gun a good reserve of invisible dummy shells, and using as muzzle flash effect an invisible effect with the siren loop as its sound source. Place one or two of these units in each port, and the trick is done |
|
05-22-20, 12:49 AM | #7 | |
Navy Seal
|
Quote:
Have to check next time, but it seems to me the fanfare song is starting over from beginning each time we close...meaning it’s not playing non stop. But I’m not 100% sure.
__________________
|
|
Thread Tools | |
Display Modes | |
|
|