add sound to keypress

add sound to keypress

Re: add sound to keypress Posted by b0r4t on Fri Mar 2nd 2007 at 7:09pm
b0r4t
4 posts
Posted 2007-03-02 7:09pm
b0r4t
member
4 posts 0 snarkmarks Registered: Feb 9th 2007
hey y'all, i was wondering if anybody knew an 'easy' way to add sounds to keypresses?

in other words what i want to happen is: ingame a player presses any number key from 1-10 for instance and a different sound would play for each key.

any thoughts?

go easy on me i'm a hammer newb. :leper:
  • thanks in advance!
Re: add sound to keypress Posted by reaper47 on Fri Mar 2nd 2007 at 7:50pm
reaper47
2827 posts
Posted 2007-03-02 7:50pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
Why is it that hammer noobs always try to hack their maps in the most complicated ways? :heee:

1.) if you want to assign sounds to the player's (real-world) keyboard keys, I'm sorry, that's not possible without coding your own mod.
2.) if you want to have ingame-keys (func_buttons for a number lock a la Doom3) that'll be super-complicate, too, and would make it necessary for you to explain in detail what it is you want to do before we could help.

Good luck with your mapping :wink:
Why snark works.
Re: add sound to keypress Posted by b0r4t on Sat Mar 3rd 2007 at 1:55am
b0r4t
4 posts
Posted 2007-03-03 1:55am
b0r4t
member
4 posts 0 snarkmarks Registered: Feb 9th 2007
hehe cause we don't know it's limitations! :grenade:

but really, the scenario i provided is exactly what i want, although it doesnt have to be those keys...

theres gotta be some easy way to hack it in...
Re: add sound to keypress Posted by reaper47 on Sat Mar 3rd 2007 at 11:20am
reaper47
2827 posts
Posted 2007-03-03 11:20am
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
Nope, you'd have to set this up in a custom mod. :/

One tip: Keep it simple.

Maybe, if you tell us what you need those sounds for in game, maybe we could come up with a simpler solution? To be honest, it sounds kinda gimmicky and not worth the trouble.
Why snark works.