Men of War: Assault Squad features a completely new cooperative skirmish game mode with access to five different nations (Russia, Germany, USA, Commonwealth and, for the first time ever in the Men of War series, Japan) as well as increased realism and accessibility.

Post tutorial Report RSS Mortar Whistle Sound Tutorial(fixed)

This tutorial will show you how to add the whistling sound effect for mortars. If you already did this tutorial, take a look at step 3 again to get the mortars moving, my bad X_x

Posted by on - Intermediate Other

Mortar Whistle Tutorial.

Works with all MOW/AS/AS2 and etc.


Incoming Mortar Sounds - Mod DB


There are 6 steps to getting it installed,
1.Copying the Cannon.inc file to your mod directory(skippable if you already have it.)
2.Copying the Mortar.inc file to your mod entity/vehicle/cannon directory (skippable if you already have it.)
3.Opening up Mortar.inc and replacing
{props "vehicle" "cannon" "cannon_small" "tru..........etc
with
{props "vehicle" "cannon_mort" "cannon_small" "tru.............etc
4.Opening up Cannon.inc and copying the entry, paste it at the very beginning.
6.sampling sounds for the whistle sound, or downloading the zip file.
7.Setting up your mod and activating it.(Skippable if your pasting it into an existing mod)
Done

the code isn't big, because I don't know if everyone's cannon.inc is the same(for mods), so just to be safe, this is all gonna be completely manual.

1.Copying the Cannon.inc file to your mod directory(skippable if you already have it.)

Installation: If you don't have a cannon.inc go to men of war/game.pak or gamelogic.pak set/interaction_entity/cannon.inc

make this directory men of war/mods/yourmod/resource/set/interaction_entity/
or men of war assault squad/mods/yourmod/resource/set/interaction_entity/

and drag cannon.inc to the interaction_entity folder you just created.

right-click the cannon.inc you dragged and uncheck the read-only checkbox so it can be edited.

2.Copying the Mortar.inc file to your mod's entity directory(skippable if you already have it.)

Installation: If you don't have a Mortar.inc go to
MOW: /resource/entity/ E1.pak /-vehicle/cannon/mortars/mortar.inc
AS/AS2: /resource/entity/ E2.pak /-vehicle/cannon/mortars/mortar.inc

make this directory for your mod mods/yourmod/resource/entity/-vehicle/cannon/mortars

and drag mortar.inc to the /resource/entity/-vehicle/cannon/mortars folder you just created.

right-click the mortar.inc you dragged and uncheck the read-only checkbox so it can be edited.
(copy&paste; ftw)

3.adding prop "cannon_mort" after "Cannon" in Mortar.inc

Now lets open up mortar.inc

you will see this.

{props "vehicle" "cannon" "cannon_small" ..................etc


add "cannon_mort" after "cannon"

{props "vehicle" "cannon" "cannon_mort" "cannon_small" ..................etc

(if you deleted "cannon", please type it before "cannon_mort", otherwise mortars won't be able to move via )

4.Opening up Cannon.inc and copying and pasting this entry into the very beginning of the file

this is to give the whistle effect to mortars only so you won't hear the whistle for cannons.
Now open up cannon.inc from /yourmod/resource/set/interaction_entity/


{"cannon_mort"
{on fire "gun"
{delay 0.01 {start_sound "weapon/mortar_fire_far"}}
{delay 0.4 {start_sound "weapon/mortar_whistle"}}
}}


paste the "cannon_mort" entry to the beginning of the file.



5.Mortar_Whistle Sound(Optional):

{delay 0.4 {start_sound "weapon/mortar_whistle"}} is the sound you can create for the mortar shells whistling in the air.

This is the path if you want to add the mortar_whistle sounds to make it more realistic
Men of War\mods\yourmod\resource\sound\weapon\mortar_whistle
in the mortar_whistle folder make a file and name it folder.set and paste this into it.

{sound
{tag environment}; if you move the environment slider you will move this
{signal shot 150} ;alerts units who hear the whistle
{loudness "canonade"}; so the sound can be heard across the map
}

Youtube.com mortar whistle sample sounds

Moddb.com zip file for those who are lazy or don't have enough time to sample their own sound.(again X_x)

6.Setting up your mod and activating it.(Skippable if your pasting it into an existing mod)

now to finish creating your mod go to men of war/mods/yourmod/
create a file call it mod.info

paste this into mod.info

{mod
{name "yourmod"} ;Must be the same name as folder name.
{desc "Mortar Whistle Mod"}
}

Post comment Comments
Jack_263
Jack_263 - - 250 comments

I've given it a couple of tries but with no luck, and Im not really sure where Im going wrong :( would it be possible to just put your cannon and mortars inc up for download?

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,207 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 689,207 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: