Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » keys.cfg for sounds and taunts (is it possible to play a sound or do any other tuants using keys.cfg?)
keys.cfg for sounds and taunts [message #485189] Wed, 08 January 2014 13:22 Go to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I want to play other sounds like the radio commands (but my own custom ones) and was wondering if it's possible to use a key hook to call a sound from the always file. (or even other taunts not listed in there already if there are any.)

What can be done with the keys file, is there a commands available list, and if not, then how could I play my own custom radio commands so everyone in the game can hear them?


Level edit is my play ground
Re: keys.cfg for sounds and taunts [message #485190 is a reply to message #485189] Wed, 08 January 2014 15:53 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
See

http://www.danpaul88.co.uk/ttdocs/page_keyhooks.html

For details of the client side configuration. That page still needs some more work done to cover the usage of keyhooks in scripts.

Any script can register a keyhook with any name but each client must create an entry in their keys.cfg file which calls that keyhook. So unless you want all your players to edit their keys.cfg they won't be able to use anything you setup with a custom keyhook. You could of course use one of the keyhooks that ships with 4.x by default, but most of those are already used for other purposes.


http://steamsignature.com/card/1/76561197975867233.png
Re: keys.cfg for sounds and taunts [message #485191 is a reply to message #485189] Wed, 08 January 2014 16:36 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I don't know shit about scripting unless it's something I can put into a text file, am I going to have to make my own scripts for this?

I was hoping there was a way around having to make my own scripts to do this. If there is no other way (other than using the objects file) then is it possible to get an example of how I'll have to set mine up?


Level edit is my play ground
Re: keys.cfg for sounds and taunts [message #485193 is a reply to message #485189] Wed, 08 January 2014 18:24 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

The keyhook system is pretty much entirely dependent on having some C++ code that calls it - either in scripts.dll itself, or a plugin. Just do a site:renegadeforums.com Google search of "keyhook" or something similar, you're bound to find something.

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: keys.cfg for sounds and taunts [message #485194 is a reply to message #485189] Thu, 09 January 2014 02:23 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
There are some existing scripts which can have a keyhook name set via a parameter, depends if they do what you want them to do though.

http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: scripts fast name search method?
Next Topic: deployable turrets
Goto Forum:
  


Current Time: Wed Dec 18 04:20:19 MST 2024

Total time taken to generate the page: 0.01174 seconds