Jump to content

Recommended Posts

Posted (edited)

Ah the class command, I could never get that thing to work so I had to work around it in my config. Maybe it just doesn't work on Jaymod.

 

I use the - key to select a team which execs either Allies.cfg or Axis.cfg which have the class select with weapons. Here's what the files look like:

 

In class.cfg:

Quote

bind - "vstr teamtoggle"
set teamb "set teamtoggle vstr teamr;exec scripts/allies.cfg; echo Allies"
set teamr "set teamtoggle vstr teamb;exec scripts/axis.cfg; echo Axis"
set teamtoggle "vstr teamb"

 

In allies.cfg

Quote

bind 8 "vstr medic; play sound/menu/select; echo Medic"
bind 9 "vstr eng1; play sound/menu/filter; echo Engineer"
bind 0 "vstr cov3; play sound/menu/cancel; echo Covert Ops"
set medic "team b 1 8 37"
set eng1 "team b 2 8 37"
set cov3 "team b 4 10 37"

In axis.cfg

Quote

bind 8 "vstr medic; play sound/menu/select; echo Medic"
bind 9 "vstr eng1; play sound/menu/filter; echo Engineer"
bind 0 "vstr cov3; play sound/menu/cancel; echo Covert Ops"
set medic "team r 1 3 38"
set eng1 "team r 2 3 38"
set cov3 "team r 4 10 38"

 

There's probably a much easier way to do what I did but oh well 😛. I sometimes forget it's even there so i'll just manually type in /team b 1 for example.

 

I think Daredevil posted a class selector script a few years ago but I can't seem to find it, maybe that will help you out more than mine does.

 

Edit: Found it

 

Edited by ElEl
Posted

This is one, I use :

 

//

// Spawnscript (Class-selection)

//

 

 

// Selection Binds - The keys bound to perform certian actions.

bind KP_DOWNARROW "vstr ts" // Team Spec

bind KP_END "vstr tb" // Team Allies

bind KP_PGDN "vstr tr" // Team Axis

bind DEL "vstr so" // Soldier (SMG, Flamethrower, MG42, Panzer or Mortar)

bind HOME "vstr me" // Medic (SMG)

bind INS "vstr en" // Engineer (SMG, Rifle + Grens)

bind PGUP "vstr fo" // Field Ops (SMG)

bind PGDN "vstr co" // Covert Ops (Sten, FG42 or Rifle + Scope)

 

// Config - Intro Basically. Join a Game, ESCape out of Limbo menu and Select a Team.

set ts "team spectator; set co vstr no_t; set so vstr no_t; set fo vstr no_t; set en vstr no_t; set me vstr no_t; echo ^2*^7spectator^2*"

set tb "set co vstr b_co; set so vstr b_so; set fo vstr b_fo; set en vstr b_en; set me vstr b_me; echo ^2*^7allies^2*"

set tr "set co vstr r_co; set so vstr r_so; set fo vstr r_fo; set en vstr r_en; set me vstr r_me; echo ^2*^7axis^2*"

set no_t "echo ^2*^7You ^2need^7 to pick a team.^2*"

 

// Allied Class Selection - If you picked a Team, its time to pick a Class

//

// Soldier

set b_s1 "team b 0 5 8; set b_so vstr b_s2; say_team ^2*^7sold^2/^7panzer^2*"

set b_s2 "team b 0 31 8; set b_so vstr b_s3; say_team ^2*^7sold^2/^7mg42^2*"

set b_s3 "team b 0 35 8; set b_so vstr b_s4; say_team ^2*^7sold^2/^7mortar^2*"

set b_s4 "team b 0 6 8; set b_so vstr b_s1; say_team ^2*^7sold^2/^7fthrower^2*"

set b_so "vstr b_s1"

 

// Medic

set b_me "team b 1 8 37; say_team ^2*^7medic^2/^7smg^2*"

 

// Engineer

set b_e1 "team b 2 8 37; set b_en vstr b_e2; say_team ^2*^7engy^2/^7smg^2*"

set b_e2 "team b 2 24 8; set b_en vstr b_e1; say_team ^2*^7engy^2/^7rifle(grens)^2*"

set b_en "vstr b_e1"

 

// Field Ops

set b_fo "team b 3 8 37; say_team ^2*^7fops^2/^7smg^2*"

 

// Covert Ops

set b_c1 "team b 4 33 47; set b_co vstr b_c2; say_team ^2*^7covops^2/^7fg42^2*"

set b_c2 "team b 4 25 47; set b_co vstr b_c3; say_team ^2*^7covops^2/^7rifle(scoped)^2*"

set b_c3 "team b 4 10 47; set b_co vstr b_c1; say_team ^2*^7covops^2/^7sten^2*"

set b_co "vstr b_c1"

 

 

// Covert Ops

set r_c1 "team r 4 33 48; set r_co vstr r_c2; say_team ^2*^7covops^2/^7fg42"

set r_c2 "team r 4 32 48; set r_co vstr r_c3; say_team ^2*^7covops^2/^7rifle(scoped)""

set r_c3 "team r 4 10 48; set r_co vstr r_c1; say_team ^2*^7covops^2/^7sten^2*"

set r_co "vstr r_c1"

 

 

// Axis Class Selection - Same as above, just different values.

//

// Soldier

set r_s1 "team r 0 5 3; set r_so vstr r_s2; say_team ^2*^7sold^2/^7panzer^2*

set r_s2 "team r 0 31 3; set r_so vstr r_s3; say_team ^2*^7sold^2/^7mg42^2*"

set r_s3 "team r 0 35 3; set r_so vstr r_s4; say_team ^2*^7sold^2/^7mortar^2*"

set r_s4 "team r 0 6 3; set r_so vstr r_s1; say_team ^2*^7sold^2/^7fthrower^2*"

set r_so "vstr r_s1"

 

// Medic

set r_me "team r 1 3 38; say_team ^2*^7medic^2/^7smg^2*"

 

// Engineer

set r_e1 "team r 2 3 38; set r_en vstr r_e2; say_team ^2*^7engy^2/^7smg^2*"

set r_e2 "team r 2 23 3; set r_en vstr r_e1; say_team ^2*^7engy^2/^7rifle(grens)^2*"

set r_en "vstr r_e1"

 

// Field Ops

set r_fo "team r 3 3 38; say_team ^2*^7fops^2/^7smg^2*

 

 

 

// Initiate Script - Makes it work.

vstr ts

 

Posted
47 minutes ago, ElEl said:

Ah the class command, I could never get that thing to work so I had to work around it in my config. Maybe it just doesn't work on Jaymod.

 

I use the - key to select a team which execs either Allies.cfg or Axis.cfg which have the class select with weapons. Here's what the files look like:

 

In class.cfg:

 

In allies.cfg

In axis.cfg

 

There's probably a much easier way to do what I did but oh well 😛. I sometimes forget it's even there so i'll just manually type in /team b 1 for example.

 

I think Daredevil posted a class selector script a few years ago but I can't seem to find it, maybe that will help you out more than mine does.

 

Edit: Found it

 

i tried downloading it it tells me its empty

  • Administrators
Posted
2 minutes ago, cAke said:

i tried downloading it it tells me its empty

Copy paste - seems like after upgrading forums many of old attachments are borked. 

Posted

i copied and paste but doesnt work either way lol :s its getting on my nervs tbh lol

Posted

this is what i get when i exec the cfg , even with leatherface's scrypts

2019-07-17-200401-fa_goldrush_b2.jpg

Posted

Well I use this, some weapons codes are not right, I think engi rifle would need to change as this is made for silent. Atleast works for me, just tested on jay2.

 

Spoiler

bind KP_PGUP "team b 1 8; echo ^7>>>^4Allies"
bind KP_PGDN "team r 1 3; echo ^7>>>^1Axis"
bind KP_END "team s; players; echo ^7Spectator"
bind DEL "vstr classsoldier"
bind UPARROW  "vstr classfieldop"
bind LEFTARROW "vstr classmedic"
bind RIGHTARROW "vstr classengi"
bind DOWNARROW "vstr classcovop"
//CLASS SCRIPT//
set classengi "vstr classengi1"
set classengi1 "vstr classrecycle; class e 4; set classengi vstr classengi2; echo ^0>>^7Spawn^0: ^1Engineer^7/^1PPSH^0<<"
set classengi2 "class e 3; set classengi vstr classengi1; echo ^0>>^7Spawn^0: ^1Engineer^7/^1Rifle^0<<"
set classfieldop "vstr classrecycle; class f 3; echo ^0>>^7Spawn^0: ^1Fieldop<<"
set classsoldier "vstr classsoldier1"
set classsoldier1 "vstr classrecycle; class s 4; set classsoldier vstr classsoldier2; echo ^0>>^7Spawn^0: ^1Soldier^7/^1Panzer^0<<"
set classsoldier2 "class s 5; set classsoldier vstr classsoldier3; echo ^0>>^7Spawn: ^4Soldier^0/^4Mortar^0<<"
set classsoldier3 "class s 2; set classsoldier vstr classsoldier4; echo ^0>>^7Spawn: ^4Soldier^0/^4MG42^0<<"
set classsoldier4 "class s 3; set classsoldier vstr classsoldier1; echo ^0>>^7Spawn: ^4Soldier^0/^4Flamer^0<<"
set classmedic "vstr classrecycle; class m 1; echo ^0>>^7Spawn^0: ^1Medic^7/^1SMG^0<<"
set classcovop "vstr classcovop1"
set classcovop3 "class c 1; set classcovop vstr classcovop1; echo ^0>>^7Spawn: ^4Covert^0/^4Sten^0<<"
set classcovop1 "vstr classrecycle; class c 3; set classcovop vstr classcovop2; echo ^0>>^7Spawn^0: ^4Covert^0/^4Sniper^0<<"
set classcovop2 "class c 2; set classcovop vstr classcovop3; echo ^0>>^7Spawn: ^4Covert^0/^4FG42^0<<"
set classrecycle "set classengi vstr classengi1; set classcovop vstr classcovop1; set classsoldier vstr classsoldier1"

 

Posted
20 minutes ago, cAke said:

this is what i get when i exec the cfg , even with leatherface's scrypts

2019-07-17-200401-fa_goldrush_b2.jpg

I think it's trying to execute the comments so it's doing // in console.

Try this instead, I've just removed the comments from what Leatherface posted.

Quote

bind KP_DOWNARROW "vstr ts"

 

bind KP_END "vstr tb"

 

bind KP_PGDN "vstr tr"

 

bind DEL "vstr so"

 

bind HOME "vstr me"

 

bind INS "vstr en"

 

bind PGUP "vstr fo"

 

bind PGDN "vstr co"

 

 

set ts "team spectator; set co vstr no_t; set so vstr no_t; set fo vstr no_t; set en vstr no_t; set me vstr no_t; echo ^2*^7spectator^2*"

 

set tb "set co vstr b_co; set so vstr b_so; set fo vstr b_fo; set en vstr b_en; set me vstr b_me; echo ^2*^7allies^2*"

 

set tr "set co vstr r_co; set so vstr r_so; set fo vstr r_fo; set en vstr r_en; set me vstr r_me; echo ^2*^7axis^2*"

 

set no_t "echo ^2*^7You ^2need^7 to pick a team.^2*"

 

 

 

 

set b_s1 "team b 0 5 8; set b_so vstr b_s2; say_team ^2*^7sold^2/^7panzer^2*"

 

set b_s2 "team b 0 31 8; set b_so vstr b_s3; say_team ^2*^7sold^2/^7mg42^2*"

 

set b_s3 "team b 0 35 8; set b_so vstr b_s4; say_team ^2*^7sold^2/^7mortar^2*"

 

set b_s4 "team b 0 6 8; set b_so vstr b_s1; say_team ^2*^7sold^2/^7fthrower^2*"

 

set b_so "vstr b_s1"

 

 

 

set b_me "team b 1 8 37; say_team ^2*^7medic^2/^7smg^2*"

 

 

 

set b_e1 "team b 2 8 37; set b_en vstr b_e2; say_team ^2*^7engy^2/^7smg^2*"

 

set b_e2 "team b 2 24 8; set b_en vstr b_e1; say_team ^2*^7engy^2/^7rifle(grens)^2*"

 

set b_en "vstr b_e1"

 

 

 

set b_fo "team b 3 8 37; say_team ^2*^7fops^2/^7smg^2*"

 

 

set b_c1 "team b 4 33 47; set b_co vstr b_c2; say_team ^2*^7covops^2/^7fg42^2*"

 

set b_c2 "team b 4 25 47; set b_co vstr b_c3; say_team ^2*^7covops^2/^7rifle(scoped)^2*"

 

set b_c3 "team b 4 10 47; set b_co vstr b_c1; say_team ^2*^7covops^2/^7sten^2*"

 

set b_co "vstr b_c1"

 

 

 

set r_c1 "team r 4 33 48; set r_co vstr r_c2; say_team ^2*^7covops^2/^7fg42"

 

set r_c2 "team r 4 32 48; set r_co vstr r_c3; say_team ^2*^7covops^2/^7rifle(scoped)""

 

set r_c3 "team r 4 10 48; set r_co vstr r_c1; say_team ^2*^7covops^2/^7sten^2*"

 

set r_co "vstr r_c1"

 

 

 

 

set r_s1 "team r 0 5 3; set r_so vstr r_s2; say_team ^2*^7sold^2/^7panzer^2*

 

set r_s2 "team r 0 31 3; set r_so vstr r_s3; say_team ^2*^7sold^2/^7mg42^2*"

 

set r_s3 "team r 0 35 3; set r_so vstr r_s4; say_team ^2*^7sold^2/^7mortar^2*"

 

set r_s4 "team r 0 6 3; set r_so vstr r_s1; say_team ^2*^7sold^2/^7fthrower^2*"

 

set r_so "vstr r_s1"

 

 

 

set r_me "team r 1 3 38; say_team ^2*^7medic^2/^7smg^2*"

 

 

 

set r_e1 "team r 2 3 38; set r_en vstr r_e2; say_team ^2*^7engy^2/^7smg^2*"

 

set r_e2 "team r 2 23 3; set r_en vstr r_e1; say_team ^2*^7engy^2/^7rifle(grens)^2*"

 

set r_en "vstr r_e1"

 

 

set r_fo "team r 3 3 38; say_team ^2*^7fops^2/^7smg^2*

 

 

vstr ts

 

  • Love 1
  • Platinum VIP
Posted

I have a script for changing class that works perfect in ETPro and Silent, but not on JM. Same with my Spawn Timer and Spawn Point Select. JM is just funny, that way, I guess

Posted

i have the same problem i have a script for  normal ET and silent that works  fine but on jaymod servers does not work 

  • Like 1
Posted

@ElEl i used those u typed now it says "unknown command b" xD i give up mates xD thanks for the help anyway

Posted

Now that i said i give up , it worked lol

  • Like 1
Posted

Sure , the file codification was unicode and i changed it to ANSI and it worked . thanks to everyone that tried to help.

Cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.