Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › General Help › SturmBot "mp_balance*" CVars?
8 posts, 2 people · 760 views Thread Rating: ★★★★★
closedSturmBot "mp_balance*" CVars?
Started by RichNagel on 10-24-2012, 01:11 PM
RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
10-24-2012, 01:11 PM #1

I just discovered that SturmBot includes the following console variables:rnrnmp_balancealliedheavy = 20rnmp_balancealliedmedium = 25rnmp_balancealliedmg = 15rnmp_balancealliedrifle = 30rnmp_balancealliedsniper = 10rnrnmp_balanceaxisheavy = 20rnmp_balanceaxismedium = 25rnmp_balanceaxismg = 15rnmp_balanceaxisrifle = 30rnmp_balanceaxissniper = 10rnrnDoes anyone have ANY idea as to what their function is???rnrnI couldn't find a single thing on the Internet explaining or discussing them (short of them being listed as server variables for several Day of Defeat dedicated servers that are still online).rnrnP.S. It appears that they were first introduced in version 1.6 of SturmBot (I couldn't find any of those entires in the previous versions of the "Sturm_Bot.dll" file), although they are not mentioned in SturmBot's version history readme file.

Gary_m
posted here
Posts: 38
Threads: 3
Joined: Feb 2010
08-14-2013, 01:53 PM #2

I was wondering the same thingrnrnI'm running 2 servers with identical configs, the only difference with one is that it is running Sturmbot.rnrnI noticed with HLSW monitoring the server, when there is a map change, all the weapons are listed and set to "0" before then being listed and set to the correct values as set in the server.cfg file.rnrnThe result being for a short period of time you cannot select any weapons, as they are still configured to "0"rnrnDon't know if the two are linked, and if so can it be changed

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
08-14-2013, 11:38 PM #3

That's a weird thing... and the mystery deepens.rnrnBTW, if your DoD SturmBot server is a Windows server (using the regular "Sturm_Bot.dll"), something that you might be interested in (if you haven't already stumbled upon it):rnrnhttp://jasonwilliams400com.startlogic.com/snor/weeds/Day_of_Defeat/SturmBot/SturmBot_v1.7_Stosstruppe_and_Scharfschutze_Bot_Class_Fix.txtrnrnhttp://jasonwilliams400com.startlogic.com/snor/weeds/Day_of_Defeat/SturmBot/SturmBot_v1.7_Stosstruppe_and_Scharfschutze_Bot_Class_Fix.ziprnrn:)

Gary_m
posted here
Posts: 38
Threads: 3
Joined: Feb 2010
08-15-2013, 03:21 PM #4

yes my servers are WindowsrnrnI know that when playing before now I had noticed that occasionally a bot won't attempt to shoot anything, even when looking at a target for ages, I didn't take note what weapon they were using, so didn't associate it with anything, just thought it was a random thingrnrnThanks for that info, i'll have to have a look at that later and sort it out

Gary_m
posted here
Posts: 38
Threads: 3
Joined: Feb 2010
08-15-2013, 03:52 PM #5

Have been told that players having "0" weapon selection occasionally at the start of a map, happens on both my servers, so can't be related to the Sturmbots

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
08-15-2013, 04:33 PM #6
I know that when playing before now I had noticed that occasionally a bot won't attempt to shoot anything, even when looking at a target for ages, I didn't take note what weapon they were using, so didn't associate it with anything, just thought it was a random thing. Thanks for that info, i'll have to have a look at that later and sort it out
rnrnThere are quite a few servers (of the few that are actually running SturmBot) that are using my little fix. I've had a few emails too, folks saying "WOW! Those Stosstruppes really go nuts with there rifles now!" :)rnrnIt was a funny thing; I had been playing by myself with the SturmBots for so long at the time... as soon as I completed and installed my fix, I could hear K43 gunfire from ALL over the map(s) LOL!rnrnBTW, to prevent any confusing with the last official release of SturmBot v1.7, I have changed the version number in my fix to v1.8 (displayed when the module initially loads for single-player games, as well as reported by the "sturmbot_version" CVar).rnrnrn
Have been told that players having "0" weapon selection occasionally at the start of a map, happens on both my servers, so can't be related to the Sturmbots
rnrnThanks for the info :)

Gary_m
posted here
Posts: 38
Threads: 3
Joined: Feb 2010
08-21-2013, 12:53 PM #7

Yes rn have installed the fix and it works a treat, so much different now :)rnrnThanks Rich

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
09-30-2013, 05:10 AM #8

MYSTERY SOLVED! It took me a while (damned near a year LOL!), but I FINALLY figured out what all of these totally undocumented CVars do :)rnrnFrom a doc that I typed up (after extensive testing):rnrn

rnmp_balanceallied[weapon_class] [0-100 percent]rn----------------------------------------------rnThese commands control the percentages of the various weapon classes for all ofrnthe randomly spawned Allied bots (using the "min_bots" and "max_bots"rncommands).rnrnThe default percentage values are:rnrnmp_balancealliedrifle 30rnmp_balancealliedmedium 25rnmp_balancealliedheavy 20rnmp_balancealliedmg 15rnmp_balancealliedsniper 10rnrnNote that all of the seperate values should add up to a total of 100 percent.rnrnThe following is a list of the various "mp_balanceallied*" CVars, and theirrnrespective SturmBot classes and weapons:rnrnUS Classes:rnrnmp_balancealliedrifle 30rn1 = Rifleman (M1 Garand)rn2 = Staff Sergeant (M1 Carbine)rnrnmp_balancealliedmedium 25rn3 = Master Sergeant (Thompson)rn4 = Sergeant (Greasegun)rnrnmp_balancealliedheavy 20rn6 = Support Infantry (BAR)rnrnmp_balancealliedmg 15rn7 = Machine Gunner (.30 Caliber)rnrnmp_balancealliedsniper 10rn5 = Sniper (Scoped Springfield)rnrnBritish Classes:rnrnmp_balancealliedrifle 30rn1 = Rifleman (Enfield)rnrnmp_balancealliedmedium 25rn2 = Sergeant Major (Sten)rnrnmp_balancealliedheavy 20rn4 = Gunner (Bren)rnrnmp_balancealliedmg 15rn4 = Gunner (Bren)rnrnmp_balancealliedsniper 10rn3 = Marksman (Scoped Enfield)rnrnmp_balanceaxis[weapon_class] [0-100 percent]rn--------------------------------------------rnThese commands control the percentages of the various weapon classes for all ofrnthe randomly spawned Axis bots (using the "min_bots" and "max_bots" commands).rnrnThe default percentage values are:rnrnmp_balanceaxisrifle 30rnmp_balanceaxismedium 25rnmp_balanceaxisheavy 20rnmp_balanceaxismg 15rnmp_balanceaxissniper 10rnrnNote that all of the seperate values should add up to a total of 100 percent.rnrnThe following is a list of the various "mp_balanceaxis*" CVars, and theirrnrespective SturmBot classes and weapons:rnrnAxis Classes:rnrnmp_balanceaxisrifle 30rn1 = Grenadier (K98)rn2 = Stosstruppe (K43)rnrnmp_balanceaxismedium 25rn3 = Unteroffizier (MP40)rnrnmp_balanceaxisheavy 20rn4 = Sturmtruppe (STG44)rnrnmp_balanceaxismg 15rn6 = MG34 Schütze (MG34)rn7 = MG42 Schütze (MG42)rnrnmp_balanceaxissniper 10rn5 = Scharfschütze (Scoped K98)rnrnAxis Paratrooper Classes:rnrnmp_balanceaxisrifle 30rn1 = Grenadier (K98)rn2 = Stosstruppe (K43)rnrnmp_balanceaxismedium 25rn3 = Unteroffizier (MP40)rnrnmp_balanceaxisheavy 20rn4 = Sturmtruppe (STG44)rn6 = FG42 Zweibein (Bipod FG42)rn7 = FG42 Zielfernrohr (Scoped FG42)rnrnmp_balanceaxismg 15rn8 = MG34 Schütze (MG34)rn9 = MG42 Schütze (MG42)rnrnmp_balanceaxissniper 10rn5 = Scharfschütze (Scoped K98)rn
Archive › Old Forum Threads › Help › General Help › SturmBot "mp_balance*" CVars?
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC