Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sun Sep 01, 2024 2:34 am
All times are UTC + 0
Cannon Impact Sound ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Thu Mar 16, 2023 3:07 pm    Post subject:  Cannon Impact Sound ? Reply with quote  Mark this post and the followings unread

When a tank fires at another tank, the shell [projectile] makes a sound on impact but I cannot find the code for this in the Sound, Art or in the Rules.

Mind you that this is not the sound of the tank exploding sound or the sound of the tank firing since those two are different from the inpact of the shell.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Mar 16, 2023 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Weapon impact sounds are attached to the warhead's anim with Report=, for example;

Rulesmd.ini
[WARHEAD]
AnimList=S_CLSN22

Artmd.ini
[S_CLSN22]
Report=Explosion14

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Thu Mar 16, 2023 4:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

So everything in the AnimList is an animation with a sound attached.

But my problem is that if I use any of them like S_CLSN22 and change the report with my custom sound, any other warhead that uses S_CLSN22 will play my custom sound.

If I make a copy of S_CLSN22 in the Artmd.ini and rename this as S_CLSN500 and attach my custom report, the game will either crash or not play the sound because S_CLSN500 animation doesn't exist.

So, how do I attach my sound so that it will only play with my new warhead ?

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Mar 16, 2023 5:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Make sure to also add your the new anim (S_CLSN500) to the [Animations] list in rulesmd.ini.

Make sure that your new sound effect is in the correct wav format (IMA ADPCM 22050 Hz) & added to the soundmd.ini. You can temporally attach it to another anim that you know works (S_CLSN22 etc) to see if it plays correctly.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Mar 16, 2023 11:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

The other option is to add a DamageSound= to the units, which will result in the sound(s) being played when damaged by anything else. The impact sound would be consistent regardless of animation that way?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Mar 16, 2023 11:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

adamstrange wrote:
If I make a copy of S_CLSN22 in the Artmd.ini and rename this as S_CLSN500 and attach my custom report, the game will either crash or not play the sound because S_CLSN500 animation doesn't exist.

Did you also add Image=S_CLSN22 to the object or when you mean copy you made a duplicate of the .shp and renamed it?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Fri Mar 17, 2023 5:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Mig & G-E
I'm going with the DamageSound= because this is exactly what I wanted since playing the SUDDEN STRIKE Series.

In that game, when tanks get hit, you can hear the sound of the shell bouncing off the tank surface.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Mar 17, 2023 7:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

If you do go that route, add some silent waves to the sound so that it doesn't play everytime, and set Priority=low while you're at it. You don't necessarily think about it now, but imagine a big tank battle where 10-12 tanks are shooting each other, and some of them are CellSpread warheads that damage multiple units... you might get a lot of sound clutter.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Sun Mar 19, 2023 4:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

adamstrange wrote:
Thanks Mig & G-E
I'm going with the DamageSound= because this is exactly what I wanted since playing the SUDDEN STRIKE Series.

In that game, when tanks get hit, you can hear the sound of the shell bouncing off the tank surface.

Obviously ill thought-out, except your mod has tanks only as well as cannons only:
Tanya fires pistols on tank: tank plays sound of shell ricochet
Flamethrower fires on tank: tank plays sound of shell ricochet
Tesla coil hits tank: tank plays sound of shell ricochet

Learn to code correct art.ini anims and their sounds. It's not hard and the game is showing hundreds of working examples.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Mon Mar 20, 2023 1:09 am    Post subject: Reply with quote  Mark this post and the followings unread

LKO, let the guy try, if he doesn't like it, he'll change it...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1485s ][ Queries: 11 (0.0078s) ][ Debug on ]