Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: ic3y on January 04, 2014, 07:53:43 AM

Title: [Bug?] Alias in Chat
Post by: ic3y on January 04, 2014, 07:53:43 AM
I have two aliases:
Code: [Select]
alias +cball "cvar_set ball_life 1"
alias -cball "cvar_set ball_life 0"
bind v +cball

When I open the chat and enter a "v", my alias will be used.

http://banterous.co.uk/demo/1018
Title: Re: [Bug?] Alias in Chat
Post by: not_payl_obviously on January 04, 2014, 10:19:15 AM
I have two aliases:
[...]
When I open the chat and enter a "v", my alias will be used.
Aaaand? I found this weird that we are supposed to know what's wrong. So far i'm unable to notice any bugs.
Title: Re: [Bug?] Alias in Chat
Post by: jitspoe on January 07, 2014, 12:31:08 AM
Just checked the behavior, and it looks like it only does the - alias.  This is probably to make sure you don't:

press v
press your chat key
release v
exit chat

If you did that, without the release behavior, you would get stuck in the + state without executing the - state.

For example, if you pressed the move forward key, opened chat, then released the forward key, you'd be stuck moving forward without the key being pressed.

Is this causing a problem?
Title: Re: [Bug?] Alias in Chat
Post by: ic3y on January 07, 2014, 06:32:40 AM
Okay, then close it.