Forums Index >> Help >> Hotkeys
Page : <1> :
Eh?
Cloud
MoveMap.bindCmd(keyboard, "H ", "","commandToServer('messageSent', "hi ");");
The bold is the part that will come out in the server. Th italicized part is what key is used to activate them.
put the hotkeys at the bottom of your main.cs file.
Eh?
Cloud
Eh?
Eh?
Eh?
MoveMap.bindCmd(keyboard, "H", "","commandToServer('messageSent', "hi");");
The bold is the part that will come out in the server. Th italicized part is what key is used to activate them.
put the hotkeys at the bottom of your main.cs file.
WhaaAAAA? :o
Cloud
movemap.bindCmd(keyboard, "H
", "","commandToServer('messageSent', "hi
");");
1. Open your main.cs file which is in your ThinkTanks folder.
2.Copy that line to the very bottom of it.
3. Now edit the bold parts of the hotkey to your desire.
Ie.: H
is the key to acticate that hotkey.
hi
is what comes out when you press H
.
4. Copy that same line if you want to make more hotkeys.
During a game do I only press h or do I press enter, then h. Or whatever the key might be. :o
Thanks
Cloud
I tried it. Didn't work for me. Maybe there has to be a nother right command for it? :o
- b20
So basically use the same command and replace the H with something else if you want a different button right?
Lol I forgot you can't use backslashes in PTT %).
Well, copy my previous line except anything you don't see on it add to it.
Last edited: Wednesday, June 29, 2005 at 7:35:44 AM
The hot keys are driving me crazy! XO I have tried both of the above suggestions and still have not figured it out. I have gone into the main.cs file and changed my radar, but the hot keys are still not working.
Tried this:
If (!$server:dedicated) {
moveMap.bindCmd(keyboard, "h", "", "commandToServer('messageSent', "hi guys");");
}
Tried this:
MoveMap.bindCmd(keyboard, "H", "","commandToServer('messageSent', "hi");");
I am on a pc if that matters 8o
Thanks for any help you can give me.
Belikin
Tt/main.cs -> edit it -> scroll to the bottom -> add these lines...
IMPORTANT! Change the *'s to slashes ( not to this slash / the other one )
GlobalActionMap.bindCmd(keyboard, h, "", "commandToServer('messageSent',*
"/ TEXT*
");" );
OR
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "h", "", "commandToServer('messageSent', *
"TEXT*
");");
}
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Last edited: Wednesday, August 10, 2005 at 9:02:13 AM
Thanks Triv for the very speedy and helpful response. The problem I was having was with the slashes. I put those in and now im good.
Thanks again
Bel
This will also work!
//Paste the syntax below into the bottom of your main.cs file. Change the messages so say what you wish/ The lines with /tm means it's a team message. The others display to all.
(Paste the text below at the bottom of your main.cs file)
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "1", "", "commandToServer('messageSent', "Coming Through");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "2", "", "commandToServer('messageSent', "Pardon Me");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "3", "", "commandToServer('messageSent', "Excuse Me");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "4", "", "commandToServer('messageSent', "Sorry");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "5", "", "commandToServer('messageSent', "Sry");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "6", "", "commandToServer('messageSent', "I forgot to bring the scrum with me");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "7", "", "commandToServer('messageSent', "sweeeet!");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "8", "", "commandToServer('messageSent', "/tm gj");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "9", "", "commandToServer('messageSent', "/tm pass");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "numpad1", "", "commandToServer('messageSent', "/tm Sry");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "numpad3", "", "commandToServer('messageSent', "/tm kill me");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "numpad7", "", "commandToServer('messageSent', "/tm gj");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "numpad9", "", "commandToServer('messageSent', "/tm pass!");");
}
Or you could download this file which has all of the correct syntax in it.
Hot key text
Last edited: Friday, August 12, 2005 at 8:59:03 AM
That is really good napalm XD. That is like the whole thing. I can not believe I have been typing those things the whole time.
ty
bel
Hi Guys
Been wondering how to do this for ages!! Have pasted the above into the bottom on the main.cs but nothing happening, any help would be appreciated, thanks in advance Daz.
The bottom of my main.cs lookes like this:
//ONLY ONE OF THESE CAN BE SELECTED:
//Shows The FileName On The Text Bar = "FileName"
//Shows The KileBytes (KB) Left To End Downloading = "FileSize"
//Shows Both = "Both"
$Show::LoadType = "Both";
//Never Stop Download Bar END
exec("game/server/dash/main.cs");
exec("game/server/scripts/observerMM.cs");
exec("game/server/scripts/MissionLoaderMain.cs");
exec("game/server/scripts/Gametime.cs");
exec("game/client/scripts/wingman/loader.cs");
exec("game/server/dash/Chatlogger.cs");
//Quick Commands
GlobalActionMap.bindCmd(keyboard, "F1", "", "commandToServer('messageSent',"HELLLLLLLLLP!!!!!!");" );
GlobalActionMap.bindCmd(keyboard, "F2", "", "commandToServer('messageSent',"Noooooooooo");" );
GlobalActionMap.bindCmd(keyboard, "F3", "", "commandToServer('messageSent',"Dam it.......");" );
GlobalActionMap.bindCmd(keyboard, "F4", "", "commandToServer('messageSent'," Come on ?!?!?!");" );
GlobalActionMap.bindCmd(keyboard, "F5", "", "commandToServer('messageSent',"Ar Yeah");" );
If (!$server::dedicated) {
moveMap.bindCmd(keyboard, "1", "", "commandToServer('messageSent', "Nice Shot.........!!");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "2", "", "commandToServer('messageSent', "Good One...!!");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "3", "", "commandToServer('messageSent', "Thanks");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "4", "", "commandToServer('messageSent', "Sry");");
}
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "5", "", "commandToServer('messageSent', ":~)");");
}
ETC............
Dazzle that looks good to me, but if the hotkey commands are pasted from ptt. Go up and see my earlier post. There I told beikin(I noticed I wrote it wrong XD ) that he is missing certain type slashes from the code, which are missing from you too, but I don't know if you have them on the real code as the slashes disappear when it's posted to here. So, better check if you right type slashes on right places...
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Thanks Triv changed all the $ for slash (not / the other one) no change, I know its a pain but link to screen shot of Main.cs file below any thoughts?
Thanks Daz
Last edited: Friday, August 12, 2005 at 11:14:05 AM
I think, I know what's wrong.
All of the GlobalActionMaps looks correct.
All of the if (server::dedicated)s are wrong.
Here is correct code for if (server::dedicated). Compare it with yours and fix the incorrect parts.
click me
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Last edited: Friday, August 12, 2005 at 11:15:37 AM
Np :P
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Incase anyone else is having trouble, the link below shows screen shot of working syntax as described by Triv and napalm above, thanks guys.
Page : <1> :
Yes, Im playing a lot of scrum. I didnt think that I should have those hotkeys but now I would like htme. I have a pc. Can somebody tell me how to get those hotkeys working?
PS I wont be here for 7 days
Thanks B)
Cloud