Jump to content
  • 0
cAke

Class cfg

Question

Hey everyone , i made a cfg simple thing just for class selection , i exec it says exec'ed but doesnt work , any thoughts? 

class.cfg

Share this post


Link to post
Share on other sites

29 answers to this question

Recommended Posts

  • 0

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

 

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0
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. 

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

2019-07-17-200401-fa_goldrush_b2.jpg

Share this post


Link to post
Share on other sites
  • 0

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"

 

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

Now that i said i give up , it worked lol

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Cool. can u pls tell what u did ??

Share this post


Link to post
Share on other sites
  • 0

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

Cheers

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.


About Us

We are glad you decided to stop by our website and servers. At Fearless Assassins Gaming Community (=F|A=) we strive to bring you the best gaming experience possible. With helpful admins, custom maps and good server regulars your gaming experience should be grand! We love to have fun by playing online games especially W:ET, Call of Duty Series, Counter Strike: Series, Minecraft, Insurgency, DOI, TF2 & Battlefield Series and if you like to do same then join us! Here, you can make worldwide friends while enjoying the game. Anyone from any race and country speaking any language can join our Discord and gaming servers. We have clan members from US, Canada, Europe, Sri Lanka, India, Japan, Australia, Brazil, UK, Austria, Poland, Finland and many other countries. It doesn't matter how much good you are in the game or how much good English you speak. We believe in making new friends from all over the world. If you want to have fun and want to make new friends join up our gaming servers and our VoIP servers any day and at any time. .

×
×
  • Create New...

Important Information

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