Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Official Feature Votes => Topic started by: joonas on December 30, 2011, 05:40:04 AM

Title: [Feature] Option/Command to display key presses
Post by: joonas on December 30, 2011, 05:40:04 AM
How about it?

From what I've gathered, this shouldn't be a difficult thing to implement. This thread could be used to design and vote upon what kind of images we'd use for the key presses before it's implemented, and maybe even have someone do the code too so that jitspoe can put his time into other more important things.

Keyboard keys, triangles, arcs or arrows? What kind of coloring? Will the keys appear whenever pressed, or should they be always visible and then just add a color or something to them when they're pressed?

What should the command be?

cl_drawkeys
cl_drawpressedkeys
cl_showkeys
cl_showpressedkeys
Title: Re: Command to display key presses
Post by: Ace on December 30, 2011, 12:42:49 PM
Great idea, pretty easy to make too. +1
Title: Re: Command to display key presses
Post by: T3RR0R15T on December 30, 2011, 01:50:29 PM
Something like this?

Code: [Select]
bind "w" "+forward;echo w"
Title: Re: Command to display key presses
Post by: Ace on December 30, 2011, 01:56:24 PM
Something like this?

Code: [Select]
bind "w" "+forward;echo w"

Exactly, someone could look at the q2 jumpmod coding if they get the chance because they implemented it pretty well.
Title: Re: Command to display key presses
Post by: jitspoe on December 30, 2011, 05:52:35 PM
Added to the feature vote list: http://dplogin.com/dplogin/featurevote/feature.php?id=10275
Title: Showing Controls
Post by: pker!?! on February 19, 2015, 07:07:46 PM
Hai, just a quick one.

Alot of players around the jumping scene have been asking how to strafe, cj, dj etc.... I was wondering if there was a way to make something like _showpressedkeys 1 on here. Here, i'll give you an example.

(http://i60.tinypic.com/2dqr6hi.png)

Since it helps with new players learning how to strafe etc, since like 90% of them just hold w and spam left/right with their mouse!

Thanks.
Pker!?!/ Nubcake
Title: Re: Showing Controls
Post by: gonass on February 19, 2015, 10:14:29 PM
I think there is a way, or at least I've seen it in the Q2 jump server. 
Title: Re: Showing Controls
Post by: Ace on February 19, 2015, 11:20:45 PM
Some code from jump that seems to at least do some of this:

http://pastebin.com/pzyJVhN8
Title: Re: Showing Controls
Post by: pker!?! on February 20, 2015, 03:05:59 AM
I think there is a way, or at least I've seen it in the Q2 jump server. 
Yeah that's where i got the screenshot from.

Some code from jump that seems to at least do some of this:

http://pastebin.com/pzyJVhN8

Yeah just wondering if it could be implemented on dp, since that's where alot of the newbies are atm.
Title: Re: Showing Controls
Post by: Ace on February 20, 2015, 01:18:14 PM
Yeah just wondering if it could be implemented on dp, since that's where alot of the newbies are atm.

Yuppers, just posted for reference if someone wants to take a crack at it.
Title: Re: Showing Controls
Post by: tobiantifa on February 20, 2015, 03:10:57 PM
do you want this in 1 map only or in all ?
Title: Re: Showing Controls
Post by: pker!?! on February 20, 2015, 06:12:45 PM
do you want this in 1 map only or in all ?

All, i was kinda hoping that this could be implemeted as a command like, cl_showpressed keys 1/0
Title: Re: Showing Controls
Post by: tobiantifa on February 21, 2015, 11:20:53 AM
but then u need sth like waypoints in all jump maps for every single jump :p I think 1 map is enough where they can train all jumps from easy dj to nearly impossible cj.
Title: Re: Showing Controls
Post by: pker!?! on February 21, 2015, 11:50:13 AM
but then u need sth like waypoints in all jump maps for every single jump :p I think 1 map is enough where they can train all jumps from easy dj to nearly impossible cj.

Well, you won't need waypoints to show what buttons you're pressing. Also i am working on a jump map that starts from easy to very very hard. 24 levels so far. :)
Title: Re: Showing Controls
Post by: ic3y on February 21, 2015, 01:53:38 PM
but then u need sth like waypoints in all jump maps for every single jump :p I think 1 map is enough where they can train all jumps from easy dj to nearly impossible cj.
What for waypoints? He asked for a feature to show pressed keys, not more.

In german for tobiantifa:
Er fragt lediglich, ob es möglich wäre, Tasten die gedrückt werden, anzuzeigen. Das hat rein gar nichts mit den Maps zutun.
Title: Re: Showing Controls
Post by: tobiantifa on February 22, 2015, 05:04:00 AM
But how does it help new players when it just show the buttons they press.  I thought u mean that it would show what buttons they have to press for this jump.  And when they press the wrong buttons all the time it wont help them or am I wrong ?
Title: Re: Showing Controls
Post by: Ace on February 22, 2015, 05:32:15 AM
But how does it help new players when it just show the buttons they press.  I thought u mean that it would show what buttons they have to press for this jump.  And when they press the wrong buttons all the time it wont help them or am I wrong ?

The point is that you can observe better players, and see exactly what they are pressing and doing, and then try to emulate it.
Title: Re: Showing Controls
Post by: tobiantifa on February 22, 2015, 07:31:24 AM
ahh now I understand it.
Title: Re: Showing Controls
Post by: jitspoe on February 28, 2015, 10:57:35 PM
Unfortunately, the configstrings for Paintball2 are pretty much maxed out with all the different HUD items we have, so the example code Ace posted would not work.  A separate jump mod (http://dplogin.com/dplogin/featurevote/feature.php?id=10282) with less stuff on the HUD would make this a lot easier, but there's still probably a way to work something like this in Paintball2.

Adding it just on the client side (showing what YOU pressed) wouldn't be difficult, but I think you want it so you can chasecam players and see what keys THEY'RE pressing, right?

Looks like this request is already on the feature vote, but doesn't have many votes: http://dplogin.com/dplogin/featurevote/feature.php?id=10275

Title: Re: [Feature] Option/Command to display key presses
Post by: jitspoe on February 28, 2015, 10:58:21 PM
I'm merging these threads to keep all the discussion in one location/easily referenced by the feature vote.