Page 1 of 1

how to choose a smg or mg or other weapons with binding them

Posted: Wed Oct 03, 2007 4:15 pm
by whoknowsme
:?: i want to ask how to choose a weapon like smg or mg or rifle or sniper with a script like .cfg file and i wanted to ask for help how to do this (im talking about when you choose a team like allies and i want to automaticaly choose a weapon to play with) and use a bind 1 for rifle bind 2 sniper etc... can some 1 plz help me :?: :D :lol:

Posted: Thu Oct 04, 2007 3:05 pm
by |W*A*R| Troden Gore
(i'm talking about when you choose a team like allies and i want to automatically choose a weapon to play with)
i do not believe this can be done from what i have read up on but the binding of weapons can be changed easily enough.

in pak1.pk3 there is a file called autoexec.cfg where this script is found

Code: Select all

bind 1 "useweaponclass pistol"
bind 2 "useweaponclass rifle"
bind 3 "useweaponclass smg"
bind 4 "useweaponclass mg"
bind 5 "useweaponclass grenade"
bind 6 "useweaponclass heavy"

bind 7 "toggleitem"
//bind 8 "useweaponclass item2"
//bind 9 "useweaponclass item3"
//bind 0 "useweaponclass item4"
hope this helps even if only a little

Posted: Fri Oct 05, 2007 3:31 pm
by whoknowsme
[color=red][/color] =D thnx but do i have to put it into a cfg or what? please rely

Posted: Wed Oct 10, 2007 1:14 pm
by |W*A*R| Troden Gore
in pak1.pk3 there is a file called autoexec.cfg where this script is found
make a new autoexec.cfg file using notepad and add it to you own .pk3 file

must contain all the original script, just change the bits you want, it will make you new .pk3 the default and bypass the original

or e-mail me the script you want added modded from my previous post and i will put it all together for you.

i.e.

Code: Select all

bind 1 "useweaponclass pistol"
bind 4 "useweaponclass rifle"
bind 2 "useweaponclass smg"
bind 3 "useweaponclass mg"
bind g "useweaponclass grenade"
bind n "useweaponclass heavy"
just as an example.

*edit* i do believe you can make all players drop their weapons and give them new ones, i am not sure how to do this in multilayer but it can be done in single player. also i believe it is a code you have to incorporate into the map script. I'll let you know when i find out more as i am trying to look into making them drop the M1 garand when they spawn and give them the nagant.