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,353
Downloads: 849
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,353
Downloads: 849
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.
__________________
|
|
05-22-20, 08:38 AM | #8 |
Medic
|
I don't think this sound (air raid siren) comes from a special land or sea unit. There's nothing particular in the campaign files IIRC. Maybe you could check them yourself, I don't have them anymore and I can't say for sure. Also nothing special in the Locations files (with the harbours' files). Nothing special with the Navalbase land unit. Maybe this is a special code added to one of the files in SH3 main folder (.act and .dll files?????).
|
05-22-20, 09:45 AM | #9 |
Village Idiot
|
The Siren is a hidden Gun in a spot light firing a faux shell.
So gap is correct. I created the whole shebang for GWX! Perhaps others took it for other mods. Imitation is the sincerest form of flattery after all! Last edited by Jeff-Groves; 05-22-20 at 10:02 AM. |
05-22-20, 10:49 AM | #10 |
Medic
|
Ah, thank you Sir! It was well hidden!!!!
|
05-22-20, 10:57 AM | #11 |
Village Idiot
|
|
05-24-20, 07:05 AM | #12 | ||||
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
Quote:
I should investigate more Just lol Quote:
It might sound weird, but off my head the one I described is the easiest and most effective method for making a sound to only be triggered when, and only when, there are enemies in range. I am not saying that it couldn't be done differently, but right now I can't think of any other way. Quote:
|
||||
|
|