Instruments of War
phpbb2 integraMOD
     
Go to top
Home • Forum • Check your PM • Register • Log in
Go to top
  Official site for the Enemy Territory clan Instruments of War
Calendar 
         
Navigation
Go to the homepageHome
Index of the forum.Forum
Listing of the current members of the IoW clan.IoW Members
Our good friends.IoW Regulars
Login to your iowclan.net accountE-Mail

Downloads
Topics that are top rated by forum usersLatest Ratings
See who is online at this time.Online Users
Read the rules of this websiteRules
Members of our staffStaff
View website statisticsStatistics

Frequently Asked Questions.FAQ
Search through forums.Search Forums

Donate to Instruments of WarDonate
Manage your own cookiesMy Cookies

<IoW> Server Rules

Who is Online

In total there are 81 users online ::
0 Registered,
81 Guests

Registered Users: None

[ View complete list ]


User Block
Username:

Password:

 Remember me



I forgot my password

Don't have an account yet?
You can register for FREE


Discord
Arrow IoW Discord Server

Server Monitor

Searching

Advanced Search

Style Select
Script by webmedic, v1.0.5

security

 phpBB Security ©  Has Blocked 2,348 Exploit Attempts.


Class Selector Toggle Script
 
View previous topic View printer-friendly version Search Display number of posts for each poster in this topic Export topic thread to a text file View next topic
Author Message
BECK
General of the Army
General of the Army
279782 Points

USA US Colorado
PostYou have posted in this forum: Fri Oct 26, 2012 11:20 am   Post subject:  Class Selector Toggle Script Back to top 

Uses the number pad buttons to place a toggle script to switch classes and weapons under each key.

End/1 -- Toggler for Field Ops (SMG/AltSMG/Ppsh)
Down Arrow/2 -- Toggler for Soldier (all weapons excluding SMGs)
Pg Down/3 -- Toggler for Covert (all weapons)
Insert / 0 -- Toggler for Engineer (SMG/AltSMG/Ppsh/Riflenade)
Del / . -- Toggler for Medic

Code: ›
bind kp_ins "vstr classengi" // Spawnscript: Engineer
bind kp_end "vstr classfieldop" // Spawnscript: Fieldops
bind kp_downarrow "vstr classsoldier" // Spawnscript: Soldier
bind kp_del "vstr classmedic" // Spawnscript: Medic
bind kp_pgdn "vstr classcovop" // Spawnscript: Covert ops

//
// Spawnscript (Class-selection)
//

set classengi "vstr classengi1"
set classengi1 "vstr classrecycle; class e 1; set classengi vstr classengi2; echo "^3>^zClass: ^3Engi^o/^3smg""
set classengi2 "class e 2; set classengi vstr classengi3; echo "^3>^zClass: ^3Engi^o/^3AltSMG""
set classengi3 "class e 3; set classengi vstr classengi4; echo "^3>^zClass: ^3Engi^o/^3Riflenade""
set classengi4 "class e 4; set classengi vstr classengi1; echo "^3>^zClass: ^3Engi^o/^3PPsh""

set classfieldop "vstr classfieldop1"
set classfieldop1 "vstr classrecycle; class f 1; set classfieldop vstr classfieldop2; echo "^3>^zClass: ^3FieldOps^o/^3smg""
set classfieldop2 "class f 2; set classfieldop vstr classfieldop3; echo "^3>^zClass: ^3FieldOps^o/^3AltSMG""
set classfieldop3 "class f 3; set classfieldop vstr classfieldop1; echo "^3>^zClass: ^3FieldOps^o/^3Ppsh""

set classsoldier "vstr classsoldier1"
set classsoldier1 "vstr classrecycle; class s 4; set classsoldier vstr classsoldier2; echo "^3>^zClass: ^3Soldier^d/^3flamer""
set classsoldier2 "class s 5; set classsoldier vstr classsoldier3; echo "^3>^zClass: ^3Soldier^d/^3panzer""
set classsoldier3 "class s 2; set classsoldier vstr classsoldier4; echo "^3>^zClass: ^3Soldier^d/^3MP40""
set classsoldier4 "class s 3; set classsoldier vstr classsoldier5; echo "^3>^zClass: ^3Soldier^d/^3mg42""
set classsoldier5 "class s 1; set classsoldier vstr classsoldier6; echo "^3>^zClass: ^3Soldier^d/^3Thompson""
set classsoldier6 "class s 6; set classsoldier vstr classsoldier7; echo "^3>^zClass: ^3Soldier^d/^3Mortar""
set classsoldier7 "class s 7; set classsoldier vstr classsoldier1; echo "^3>^zClass: ^3Soldier^d/^3PPsh""

set classmedic "vstr classmedic1"
set classmedic1 "vstr classrecycle; class m 1; set classmedic vstr classmedic2; echo "^3>^zClass: ^3Medic^o/^3smg""
set classmedic2 "class m 2; set classmedic vstr classmedic1; echo "^3>^zClass: ^3Medic^o/^3AltSMG""

set classcovop "vstr classcovop1"
set classcovop1 "vstr classrecycle; class c 3; set classcovop vstr classcovop2; echo "^3>^zClass: ^3Covert^a/^3sniper""
set classcovop2 "class c 2; set classcovop vstr classcovop3; echo "^3>^zClass: ^3Covert^a/^3fg42""
set classcovop3 "class c 1; set classcovop vstr classcovop1; echo "^3>^zClass: ^3Covert^a/^3sten""


Pressing each key will select that class and weapon next time you spawn. Echoes the current value on the screen for you, does not print to team chat, though this can easily be modified by doing "say_team" instead of "echo".

EDIT: Added fixed version from 1/13/2015 here.


Last edited by BECK on Tue Jan 13, 2015 11:10 am; edited 6 times in total

_________________
Very Happy
Download Post  No rating  
wizyq
IoW Supporter
5619 Points

Canada CA British Columbia
PostYou have posted in this forum: Fri Oct 26, 2012 12:47 pm   Post subject:  Re: Class Selector Toggle Script Back to top 

heeeey, now you guys can be like me and be smart :DDDD

_________________


www.intake-gaming.com
1UP Servers
Download Post  No rating  
Sir Sux-A-Lot
Admin
Admin
38083 Points

France US Texas
PostYou have posted in this forum: Fri Oct 26, 2012 12:48 pm   Post subject:  Re: Class Selector Toggle Script Back to top 

yea thanks, that's exactly what I wanted!

Download Post  No rating  
V2A2V2A2M
Brigadier General
Brigadier General
17505 Points

USA
PostYou have posted in this forum: Sat Jan 12, 2013 5:44 pm   Post subject:   Back to top 

Soldat script is wrong, (panzer echo gives flamethrower etc)
going to look and see what numbers are misplaced & get back with the results.

Edit - there are probably a lot more values due to silent having alt smg and ppsh.

Download Post  No rating  
BECK
General of the Army
General of the Army
279782 Points

USA US Colorado
PostYou have posted in this forum: Sat Jan 12, 2013 7:09 pm   Post subject:   Back to top 

yes, this is old. Silent new version added both SMGs.

This is the fixed version

Code: ›
//
// Spawnscript (Class-selection)
//

set classengi "vstr classengi1"
set classengi1 "vstr classrecycle; class e 1; set classengi vstr classengi2; echo "^3>^zClass: ^3Engi^o/^3smg""
set classengi2 "class e 2; set classengi vstr classengi3; echo "^3>^zClass: ^3Engi^o/^3AltSMG""
set classengi3 "class e 3; set classengi vstr classengi4; echo "^3>^zClass: ^3Engi^o/^3Riflenade""
set classengi4 "class e 4; set classengi vstr classengi1; echo "^3>^zClass: ^3Engi^o/^3PPsh""

set classfieldop "vstr classfieldop1"
set classfieldop1 "vstr classrecycle; class f 1; set classfieldop vstr classfieldop2; echo "^3>^zClass: ^3FieldOps^o/^3smg""
set classfieldop2 "class f 2; set classfieldop vstr classfieldop3; echo "^3>^zClass: ^3FieldOps^o/^3AltSMG""
set classfieldop3 "class f 3; set classfieldop vstr classfieldop1; echo "^3>^zClass: ^3FieldOps^o/^3Ppsh""

set classsoldier "vstr classsoldier1"
set classsoldier1 "vstr classrecycle; class s 4; set classsoldier vstr classsoldier2; echo "^3>^zClass: ^3Soldier^d/^3flamer""
set classsoldier2 "class s 5; set classsoldier vstr classsoldier3; echo "^3>^zClass: ^3Soldier^d/^3panzer""
set classsoldier3 "class s 2; set classsoldier vstr classsoldier4; echo "^3>^zClass: ^3Soldier^d/^3MP40""
set classsoldier4 "class s 3; set classsoldier vstr classsoldier5; echo "^3>^zClass: ^3Soldier^d/^3mg42""
set classsoldier5 "class s 1; set classsoldier vstr classsoldier6; echo "^3>^zClass: ^3Soldier^d/^3Thompson""
set classsoldier6 "class s 6; set classsoldier vstr classsoldier7; echo "^3>^zClass: ^3Soldier^d/^3Mortar""
set classsoldier7 "class s 7; set classsoldier vstr classsoldier1; echo "^3>^zClass: ^3Soldier^d/^3PPsh""

set classmedic "vstr classrecycle; class m 1; echo "^3>^zClass: ^3Medic""

set classcovop "vstr classcovop1"
set classcovop1 "vstr classrecycle; class c 3; set classcovop vstr classcovop2; echo "^3>^zClass: ^3Covert^a/^3sniper""
set classcovop2 "class c 2; set classcovop vstr classcovop3; echo "^3>^zClass: ^3Covert^a/^3fg42""
set classcovop3 "class c 1; set classcovop vstr classcovop1; echo "^3>^zClass: ^3Covert^a/^3sten""
set classrecy


1 - Thompson, 2 - MP40, 3 - MG42, 4 - Flame, 5 - Panzer, 6 - Mortar, 7 - PPsh

_________________
Very Happy
Download Post  No rating  
Sir Sux-A-Lot
Admin
Admin
38083 Points

France US Texas
PostYou have posted in this forum: Fri Jul 18, 2014 12:17 pm   Post subject:  Re: Class Selector Toggle Script Back to top 

Because we also have AltSMG available on our server, one can replace the medic command with a toggle that allows both SMGs

So instead of this:

Quote: › set classmedic "vstr classrecycle; class m 1; echo "^3>^zClass: ^3Medic""



Copy/paste this:

Code: ›
set classmedic "vstr classmedic1"
set classmedic1 "vstr classrecycle; class m 1; set classmedic vstr classmedic2; echo "^3>^zClass: ^3Medic^o/^3smg""
set classmedic2 "class m 2; set classmedic vstr classmedic1; echo "^3>^zClass: ^3Medic^o/^3AltSMG""


The full script for the lazy

Code: ›
//class Script

bind kp_ins "vstr classengi" // Spawnscript: Engineer
bind kp_end "vstr classfieldop" // Spawnscript: Fieldops
bind kp_downarrow "vstr classsoldier" // Spawnscript: Soldier
bind kp_del "vstr classmedic" // Spawnscript: Medic
bind kp_pgdn "vstr classcovop" // Spawnscript: Covert ops

//
// Spawnscript (Class-selection)
//

set classengi "vstr classengi1"
set classengi1 "vstr classrecycle; class e 1; set classengi vstr classengi2; echo "^3>^zClass: ^3Engi^o/^3smg""
set classengi2 "class e 2; set classengi vstr classengi3; echo "^3>^zClass: ^3Engi^o/^3AltSMG""
set classengi3 "class e 3; set classengi vstr classengi4; echo "^3>^zClass: ^3Engi^o/^3Riflenade""
set classengi4 "class e 4; set classengi vstr classengi1; echo "^3>^zClass: ^3Engi^o/^3PPsh""

set classfieldop "vstr classfieldop1"
set classfieldop1 "vstr classrecycle; class f 1; set classfieldop vstr classfieldop2; echo "^3>^zClass: ^3FieldOps^o/^3smg""
set classfieldop2 "class f 2; set classfieldop vstr classfieldop3; echo "^3>^zClass: ^3FieldOps^o/^3AltSMG""
set classfieldop3 "class f 3; set classfieldop vstr classfieldop1; echo "^3>^zClass: ^3FieldOps^o/^3Ppsh""

set classsoldier "vstr classsoldier1"
set classsoldier1 "vstr classrecycle; class s 4; set classsoldier vstr classsoldier2; echo "^3>^zClass: ^3Soldier^d/^3flamer""
set classsoldier2 "class s 5; set classsoldier vstr classsoldier3; echo "^3>^zClass: ^3Soldier^d/^3panzer""
set classsoldier3 "class s 2; set classsoldier vstr classsoldier4; echo "^3>^zClass: ^3Soldier^d/^3MP40""
set classsoldier4 "class s 3; set classsoldier vstr classsoldier5; echo "^3>^zClass: ^3Soldier^d/^3mg42""
set classsoldier5 "class s 1; set classsoldier vstr classsoldier6; echo "^3>^zClass: ^3Soldier^d/^3Thompson""
set classsoldier6 "class s 6; set classsoldier vstr classsoldier7; echo "^3>^zClass: ^3Soldier^d/^3Mortar""
set classsoldier7 "class s 7; set classsoldier vstr classsoldier1; echo "^3>^zClass: ^3Soldier^d/^3PPsh""

set classmedic "vstr classmedic1"
set classmedic1 "vstr classrecycle; class m 1; set classmedic vstr classmedic2; echo "^3>^zClass: ^3Medic^o/^3smg""
set classmedic2 "class m 2; set classmedic vstr classmedic1; echo "^3>^zClass: ^3Medic^o/^3AltSMG""

set classcovop "vstr classcovop1"
set classcovop1 "vstr classrecycle; class c 3; set classcovop vstr classcovop2; echo "^3>^zClass: ^3Covert^a/^3sniper""
set classcovop2 "class c 2; set classcovop vstr classcovop3; echo "^3>^zClass: ^3Covert^a/^3fg42""
set classcovop3 "class c 1; set classcovop vstr classcovop1; echo "^3>^zClass: ^3Covert^a/^3sten""
//set classrecy

_________________
Wu-Tang is for the children
Download Post  No rating  
Jayd
Retired
Retired
36465 Points

Puertorico US Florida
Yellow Cards: 1
Yellow Cards: 1
PostYou have posted in this forum: Thu Jul 31, 2014 10:39 pm   Post subject:  Re: Class Selector Toggle Script Back to top 

BECK wrote (View Post): › Echoes the current value on the screen for you, does not print to team chat, though this can easily be modified by doing "vsay_team" instead of "echo".


say_team, not vsay_team.

_________________
Download Post  No rating  
BECK
General of the Army
General of the Army
279782 Points

USA US Colorado
PostYou have posted in this forum: Thu Jul 31, 2014 11:11 pm   Post subject:   Back to top 


_________________
Very Happy
Download Post  No rating  
V2A2V2A2M
Brigadier General
Brigadier General
17505 Points

USA
PostYou have posted in this forum: Sun Aug 03, 2014 6:42 pm   Post subject:   Back to top 

Beck, thats the best reply there could be that isn't a picture of a jimmy johns sub.
Spoilers: 


Back on topic though; When I modify the script to add the alt/smg for medic, it doesn't seem to work.

Download Post  No rating  
Sir Sux-A-Lot
Admin
Admin
38083 Points

France US Texas
PostYou have posted in this forum: Sun Aug 03, 2014 7:13 pm   Post subject:   Back to top 

Exec jimmyjohns.cfg?


It's working fine here so I'm not sure...

_________________
Wu-Tang is for the children
Download Post  No rating  
V2A2V2A2M
Brigadier General
Brigadier General
17505 Points

USA
PostYou have posted in this forum: Sun Aug 03, 2014 8:14 pm   Post subject:   Back to top 

Nevermind. I must have put in an extra space somewhere.

Download Post  No rating  
Jayd
Retired
Retired
36465 Points

Puertorico US Florida
Yellow Cards: 1
Yellow Cards: 1
PostYou have posted in this forum: Mon Jan 12, 2015 11:58 pm   Post subject:   Back to top 

Shouldn't the very last line read 'set classrecycle' instead of 'set classrecy '? I mean it works fine either way I just thought I'd point it out to see if it's something that was overlooked so I can fix it on my cfg.

_________________
Download Post  No rating  
BECK
General of the Army
General of the Army
279782 Points

USA US Colorado
PostYou have posted in this forum: Tue Jan 13, 2015 8:26 am   Post subject:   Back to top 

I don't know man. I didn't write the script I only tweaked it to work with silEnT and specific to my needs. I would say you probably don't need that line at all actually, I'm not sure what it would do.

_________________
Very Happy
Download Post  No rating  
Sir Sux-A-Lot
Admin
Admin
38083 Points

France US Texas
PostYou have posted in this forum: Tue Jan 13, 2015 9:51 am   Post subject:   Back to top 

i have it commented out and the script is working fine like that so I'd say you don't need it

_________________
Wu-Tang is for the children
Download Post  No rating  
Jayd
Retired
Retired
36465 Points

Puertorico US Florida
Yellow Cards: 1
Yellow Cards: 1
PostYou have posted in this forum: Tue Jan 13, 2015 10:38 am   Post subject:   Back to top 

Yeah that line is definitely not needed and definitely and incomplete command. I just took it off and everything works fine, plus now I don't get a warning about using 'set' like I did before.

BECK, I would say remove that line from your first post, as well as maybe adding in the medic toggle line that Sir contributed.

_________________
Download Post  No rating  
Display posts from previous:      
 


 Jump to:   



  View previous topic View printer-friendly version Search Display number of posts for each poster in this topic Export topic thread to a text file View next topic

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Lo-Fi Version
Protected by CBACK CrackerTracker :: 1196420 Attacks blocked.
Protected by phpBB Security © phpBB-Amod :: phpBB Security ©  Has Blocked 2,348 Exploit Attempts.
 @ 2007 The Integra Team
 @ 2007 phpBB Group
:: FI Theme :: All times are GMT - 5 Hours ::
[Page generation time: 0.6223s (PHP: 72% | SQL: 28%) | SQL queries: 98 | GZIP disabled | Debug on]