Instant chat for console commands?

For all the help you need with Armagetron!
Post Reply
gnorty
Core Dumper
Posts: 187
Joined: Wed Nov 02, 2005 2:45 am

Instant chat for console commands?

Post by gnorty »

I was thinking that with the new HUD it would be nice to switch HUD layout at a keystroke (if its even possible) but there would be other times it would be nice also, maybe to send server commands etc. Possibly something like "/console <command>" in an instant chat for example.

So, in short, is there a way to map a single keystroke to a console command, and if not, is there any chance of somebody making it so?
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Can't be that hard. :)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

I was right, it was pretty easy. Now someone can revert it if they don't like it. :) Update while it's there! Heh.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Should't this rather be in ePlayerNetID::Chat(), the clientside branch? Where it is now, it won't work for immediate instant chats.
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

The HUD supports its own keys you could use if you wanted ;) It can be used to toggle widgets, so you could switch the minimap on and off as you like or the rubber meter, everything you like :)
There's no place like ::1
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

@z-man: Sure. apparently I put it in the wrong place. :)

/me prepares to wade through it again, heh.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Moved and tested, works for instant chats too. Both local game and on a server, and the other folks on the server told me they didn't see my chats. :) (Not that it matters, the server would've eaten it)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
gnorty
Core Dumper
Posts: 187
Joined: Wed Nov 02, 2005 2:45 am

Post by gnorty »

so I can just make a /server <command at the chat prompt or instant chat and it sends the relevant text as a server command?
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

nonono. There was already remote admin capable of being used in instant chat. This is client side stuff, so you can change the cockpit or something...

So you can do, for example:

"/console player_1 LuciEatsPeople"
"/console COCKPIT_FILE yadayada"

Just like you suggested...

/me refers Gnorty to Gnorty's original post at the top of the thread :)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply