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 / Help with reloading one liners?

Author
Message
TGPEG
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location: Bristol, United Kingdom
Posted: 10th Apr 2011 22:42 Edited at: 10th Apr 2011 22:44
Right, I've reworked a script I've had for ages (I think made by Tzap) into playing any one of three sound effects (or one of silence) when the player reloads the weapon... sort of.



It works quite well in the sense that the player says the corny one-liner when reloading (initiated by pressing 'r'), but it doesn't work in that the player says it even when the player presses 'r' and the gun doesn't reload.

I know there's not any condition currently in the code for asking if the player is reloading (although it would help) or even if the ammo is at 0. Can anyone think of a way of getting round this that I can't?

Thanks.

[center]
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 11th Apr 2011 09:36
I'd pick one line and make that the thing the player says every time, then you could just replace reload.wav in gunspec with a mix of reload sounds and that one liner. Then it will only play when the gun actually reloads. That's about the only way you're going to do it outside of a source mod.

Login to post a reply

Server time is: 2024-11-24 12:09:06
Your offset time is: 2024-11-24 12:09:06