| View previous topic :: View next topic |
| Author |
Message |
Q_ball
unb&
Joined: 07 Jan 2007
Posts: 4557
Location: keeps coming back
|
|
|
This gives a custom config depending on what team you are on; so for CT activate certain scripts and for Terrorist activate different scripts.
I was reminded of this because I remember a long time ago on some CS forums, someone asked if it was possible with scripting to make it so if they were on Terrorist they would have left-handed gun and if they were Counter-Terrorist it would be right-handed. However, I remember everyone said it wasn't possible at all. They were wrong obviously, it's actually fairly simple.
The cl_righthand 1/0 represents where you would put custom configuration for each team.
| Code: | // CT/TER Team-Tracking Script
// By Q-bA11
// scripting.elxDraco.net
alias selectteam "writecfg Q-bA11_hP8; wait; setinfo _vgui_menus 0; wait; chooseteam; team_choices"
alias team_choices "bind 1 terr; bind 2 ct; bind 5 auto; bind 6 spec; bind 0 cancelteam"
alias terr "menuselect 1; wait; cl_righthand 0; wait; menuselect 5; wait; exec Q-bA11_hP8.cfg"
alias ct "menuselect 2; wait; cl_righthand 1; wait; menuselect 5; wait; exec Q-bA11_hP8.cfg"
alias auto "menuselect 5; wait; exec Q-bA11_hP8.cfg"
alias spec "menuselect 6; wait; exec Q-bA11_hP8.cfg"
alias cancelteam "menuselect 0; wait; exec Q-bA11_hP8.cfg"
alias .disconnect "selectteam; wait; disconnect"
alias .reconnect "selectteam; wait; reconnect"
alias .retry "selectteam; wait; retry"
bind del "selectteam" |
Last edited by Q_ball on Mon Apr 26, 2010 7:43 am; edited 5 times in total
|
|
| Posted on Sun Mar 18, 2007 5:03 am |
 |
AnAkIn
Little Pudding Boy
Joined: 02 Jan 2006
Posts: 2812
|
|
|
nice work but i think you can also do it editing .res
|
|
| Posted on Sun Mar 18, 2007 9:06 am |
 |
holymoly
Little Pudding Boy
Joined: 28 Apr 2005
Posts: 39
|
|
|
nice, hmm maybe u could implement norecoil script for say guns like ak(T) and colt (CT) ? only problem would be picking up a colt as T etc
|
|
| Posted on Sun Mar 18, 2007 2:16 pm |
 |
Q_ball
unb&
Joined: 07 Jan 2007
Posts: 4557
Location: keeps coming back
|
|
|
holymoly wrote:nice, hmm maybe u could implement norecoil script for say guns like ak(T) and colt (CT) ? only problem would be picking up a colt as T etc That's where weapon-tracking scripts come in, which of course are more complicated. I've been over the ups and downs of them before (like reasons why they won't be 100% perfect).
The best method for that is probably using JamieMadRox's (editzor: spelt with an x not a cks biatch) Voice Activation Tool. It is very nifty, just try it.
The custom script is for you to implement, I just gave the basic engine.
And yes, *.res editing is also another option, though some may find that more difficult.
Last edited by Q_ball on Wed May 02, 2007 6:13 pm; edited 1 time in total
|
|
| Posted on Sun Mar 18, 2007 5:50 pm |
 |
JamieMadrox
Little Pudding Boy
Joined: 29 May 2006
Posts: 792
|
|
|
|
| Posted on Fri Apr 27, 2007 9:23 am |
 |
|