IPB

Welcome Guest ( Log In | Register )

Help. How to add a sound when killing an enemy?
Solfish
post Oct 15 2016, 03:45 AM
Post #1


Enlisted
*

Group: Soldiers
Posts: 2
Joined: 24-September 16
Member No.: 11,802



Hello, anyone knows how to when you killing an enemy, instead of showing a text like "You killed [Name]", it will show a custom image on the hud and play a sound like "Enemy down"?

This post has been edited by Solfish: Oct 15 2016, 03:47 AM
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 3)
Dicky Arya
post Oct 15 2016, 10:16 AM
Post #2


Captain
***

Group: Soldiers
Posts: 49
Joined: 7-November 15
From: Purwakarta,West Java,Indonesia
Member No.: 10,994



you mean like battlefield 3 nametag?


--------------------
Go to the top of the page
 
+Quote Post
Solfish
post Oct 15 2016, 10:39 AM
Post #3


Enlisted
*

Group: Soldiers
Posts: 2
Joined: 24-September 16
Member No.: 11,802



I mean the text "You killed [Name]" stays too long on the screen, how can i change it into about 2-3 seconds and play a kill sound like " Enemy down", so I know I have killed an enemy.

This post has been edited by Solfish: Oct 15 2016, 10:43 AM
Go to the top of the page
 
+Quote Post
Notwithstanding
post Oct 30 2016, 02:14 PM
Post #4


Private
**

Group: Soldiers
Posts: 25
Joined: 16-March 16
From: Europe
Member No.: 11,303



QUOTE (Solfish @ Oct 15 2016, 05:39 PM) *
I mean the text "You killed [Name]" stays too long on the screen, how can i change it into about 2-3 seconds and play a kill sound like " Enemy down", so I know I have killed an enemy.

I don't know about the text on the screen, but for the playing of a sound you could try adding something to the soldier .tweak at the radio section, like so:

Change this
rem ---BeginComp:Radio ---
ObjectTemplate.createComponent Radio
ObjectTemplate.Radio.spottedMessage infantry_spotted
rem ---EndComp ---


to this
rem ---BeginComp:Radio ---
ObjectTemplate.createComponent Radio
ObjectTemplate.Radio.destroyedMessage COMMSL_COMRADIO_rebuke
ObjectTemplate.Radio.spottedMessage infantry_spotted
rem ObjectTemplate.Radio.spottedMessage PLAYER_SPOTTED_enemywbspotted
rem ---EndComp ---


I did this with a plane I added, every time it would get destroyed, the commander would rebuke ("You are the worst squad that I ever bla bla"), even if there was noone in the plane. You can change the sound file reference (COMMSL_COMRADIO_rebuke) to the one you want.
Maybe experiment with this? I don't know that much about the sound system, sry.

Take note that in my case, everyone would hear the commander rebuke, dunno what you exactly want to achieve.

This post has been edited by Notwithstanding: Oct 30 2016, 02:16 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th February 2017 - 06:05 PM