Brèves

WebTV

Actualité de la scène

Compétitions

Forum
cl_righthand 0 1 - 12 messages, 2985 vues
Page 2 sur 2
1
2
Réponse #11
Par .SkA' - 08/11/2014 14:18:38 - Modifié le 08/11/2014 14:27:10
Si besoin, l'alias pour changer le cotés de l'arme en appuyant sur 1

bind "kp_end" righthand0

alias righthand0 "cl_righthand 0 ; bind kp_end lefthand1"
alias lefthand1 "cl_righthand 1 ; bind kp_end righthand0"


pour switcher de l'un a l'autre avec une seule touche, y a plus simple:

bind "kp_end" "toggle cl_righthand "

ou même

bindtoggle "kp_end" "cl_righthand"

Ou, un autre système: On appuie sur une touche, ça change de coté, on relâche, ça rechange de côté:

bind "kp_end" "+swaphand"
alias "+swaphand" "cl_righthand 1"
alias "-swaphand" "cl_righthand 0"

ou alors même carrément:

bind "kp_end" "+swaphand"
alias "+swaphand" "toggle cl_righthand"
alias "-swaphand" "toggle cl_righthand"
Réponse #12
Par 22Chrono - 08/11/2014 17:11:55
ça fait quoi "toggle" ?
Réponse #13
Par .SkA' - 08/11/2014 17:37:13
ça passe une commande de 0 à 1 à 0 à 1 à 0 à 1 à 0 à 1 à 0 à 1 à ...
Page 2 sur 2
1
2