Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / [x9] Need Help please /!\

Author
Message
seighart
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location: France, paris
Posted: 27th Jun 2012 16:49
Hello,
is that possible with a script, play a sound when the enemy suffered damage ?

PS: sorry for my english, i'm french .

http://bunkeronline.azurforum.com
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 28th Jun 2012 21:32
do you want the sound to play only when he takes damage or when he is killed?
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 29th Jun 2012 17:39 Edited at: 29th Jun 2012 17:40
Easily done:

There is a SHOTDAMAGE=x condition for NPC scripts.

If you use it in conjunction with the SOUND= condition and set SHOTDAMAGE=0, the sound will be played every time the NPC takes damage.

In fact you could play different sounds according to the amount of damage a single hit does.

Btw, I am not sure if the whole idea is a good one, since multiple fast hits could mess the sound up or hurt the framerate.

In case you find my grammar and spelling weird ---> native German speaker ^^
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 29th Jun 2012 20:34
the character IS playing 3 different sounds each time he gets hit, hurt1.wav, hurt2.wav and hurt3.wav.

search for files/audiobank/characters or voices. copy the folder your model uses there and rename it, then change the voice of the character to this (rightklick editor). then easily change the 3 hurtsounds.

seighart
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location: France, paris
Posted: 1st Jul 2012 15:12
The Storyteller 01 : Yes that's my basic idea, to avoid the problem of repetition of the sound just play it until the enemy dies ?

Login to post a reply

Server time is: 2024-11-24 01:16:01
Your offset time is: 2024-11-24 01:16:01