Raised This Month: $51 Target: $400
 12% 

Hand Switch Fix [ 0.1 ]


Post New Thread Reply   
 
Thread Tools Display Modes
Owyn
Veteran Member
Join Date: Nov 2007
Old 10-04-2009 , 16:03   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #11

Quote:
Originally Posted by Ant3 View Post
I never got any problems with that.

bind "TAB" "+showscores;cl_righthand 1 "

i have "bind mouse3 cl_righthand 0"
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 10-05-2009 , 09:09   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #12

Obviously, I wasn't thinking before I coded this.

If anyone has any suggestions that could make this useful and save it from unapproval, feel free to post.
3Di is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 10-05-2009 , 10:44   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #13

"Fix" ? Uhm. There isnt any fix for that bug. But this can be better - add task for each player (for example every 5 seconds) and set hand setting.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-05-2009 , 11:00   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #14

Quote:
Originally Posted by Sn!ff3r View Post
"Fix" ? Uhm. There isnt any fix for that bug. But this can be better - add task for each player (for example every 5 seconds) and set hand setting.
Also you can check only if the player is "AFK", rly?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-05-2009 , 12:01   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #15

Use query_client_cvar(), then just run the command "cl_righthand <x>" on the player and that will revert it to the way it should be. You can use set_task() I guess and run it every 5-10 seconds or so.

Either way, I think this is pretty useless, but to the extent that it exists, at least make it more useful.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-05-2009 , 12:04   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #16

IMO, a "fix" is something that is done automatically.
If you require the user to type /hand ( or whatever the command is ) then it is no different then going into console and changing it themselves.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
bigbud
Member
Join Date: Jan 2008
Old 10-05-2009 , 13:01   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #17

Quote:
Originally Posted by Hawk552 View Post
Use query_client_cvar(), then just run the command "cl_righthand <x>" on the player and that will revert it to the way it should be. You can use set_task() I guess and run it every 5-10 seconds or so.

Either way, I think this is pretty useless, but to the extent that it exists, at least make it more useful.
Nope, as joaquimandrade(#9) said, it is a clientside Bug.
So if the Hand switch by the Bug, the 'cl_righthand'-Cvar do not change the value.
And so you can't hook the change with the Funktion 'query_client_cvar()'.
__________________

Last edited by bigbud; 10-05-2009 at 13:03.
bigbud is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-05-2009 , 13:09   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #18

Quote:
Originally Posted by bigbud View Post
Nope, as joaquimandrade(#9) said, it is a clientside Bug.
So if the Hand switch by the Bug, the 'cl_righthand'-Cvar do not change the value.
And so you can't hook the change with the Funktion 'query_client_cvar()'.
... I don't think you could possibly miss what I said more without physically changing the quote.

For starters, I always just type "cl_righthand 1" in my console when this happens, which fixes it. If you run this using client_cmd(), you should get the same result.

Also, I never said that you hook the change. All you have to do is gather the player's cl_righthand value, then make them execute that same value. In pseudocode, it might look something like this:

Code:
plugin_init()
    set_task(5-10 seconds,"RightHand",repeat)

RightHand()
    for each player
        query_cvar("cl_righthand","RightHandHandle")

RightHandHandle(value)
    client_cmd("cl_righthand <value>")
As you can see, this has nothing to do with what you said.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-05-2009 , 13:45   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #19

PHP Code:
bind "ctrl" "righthand"
alias "righthand" "righthand1"
alias "righthand1" "cl_righthand 1;alias righthand righthand2"
alias "righthand2" "cl_righthand 0;alias righthand righthand1" 
i use this script ;)
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-05-2009 , 14:54   Re: Hand Switch Fix [ 0.1 ]
Reply With Quote #20

I use this script:
Code:
bind "[" "cl_righthand1"
When this bug occurs, I press this key.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode