Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Bot Class (v0.5)

by diamond-optic · 2006-09-06 · 14 replies · 11848 views · 194 downloads

Read the thread (15 posts)

From the first post

DoD Bot Class
n
- Version 0.5
n- 09.05.2006
n- diamond-optic
n
nInformation:
n
- Prevent bots from playing certain classes
CVARs:
n
dod_botclass "1" //Turn ON(1) / OFF(0)ndod_botclass_change "1" //Bots change class on deathndod_botclass_change_chance "3" //Chance (1 out of #) that bots will change class on deathnnn//Allowed Classes - ON(1) / OFF(0)ndod_botclass_britlight "1"ndod_botclass_britassault "1"ndod_botclass_sniper "1"ndod_botclass_mg "1"ndod_botclass_piat "1"nndod_botclass_alliesgarand "1"ndod_botclass_alliescarbine "1"ndod_botclass_alliesthompson "1"ndod_botclass_alliesgreasegun "1"ndod_botclass_alliesspring "1"ndod_botclass_alliesbar "1"ndod_botclass_allies30cal "1"ndod_botclass_alliesbazooka "1"nndod_botclass_axiskar "1"ndod_botclass_axisk43 "1"ndod_botclass_axismp40 "1"ndod_botclass_axismp44 "1"ndod_botclass_axisscopedkar "1"ndod_botclass_axisfg42 "1"ndod_botclass_axisfg42s "1"ndod_botclass_axismg34 "1"ndod_botclass_axismg42 "1"ndod_botclass_axispschreck "1"
Version Info:
n
- 05.19.2006 Version 0.1n Initial Releasenn - 05.22.2006 Version 0.2n When a bot joins, random allowed class is choosenn Added random chance that bot will change classnn - 05.25.2006 Version 0.3n Made random class change chance more probablen If class = rocket then change on next deathnn - 07.24.2006 Version 0.4n Adjusted putinserver task timen Cleaned up codenn - 09.05.2006 Version 0.5n Basically re-wrote the whole plugin, much more user-friendly now
DOWNLOAD URL: http://www.avamods.com/download.php?view.34

Files

dod_botclass.sma Plugin Source 10 KB 194 dl Download Compile

The thread

All 15 posts from 5 people on DoD Bot Class (v0.5), kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-05-2006, 10:35 PM #1

DoD Bot Classn- Version 0.5n- 09.05.2006n- diamond-opticnnInformation:n

n- Prevent bots from playing certain classes
CVARs:n
ndod_botclass "1" //Turn ON(1) / OFF(0)ndod_botclass_change "1" //Bots change class on deathndod_botclass_change_chance "3" //Chance (1 out of #) that bots will change class on deathnnn//Allowed Classes - ON(1) / OFF(0)ndod_botclass_britlight "1"ndod_botclass_britassault "1"ndod_botclass_sniper "1"ndod_botclass_mg "1"ndod_botclass_piat "1"nndod_botclass_alliesgarand "1"ndod_botclass_alliescarbine "1"ndod_botclass_alliesthompson "1"ndod_botclass_alliesgreasegun "1"ndod_botclass_alliesspring "1"ndod_botclass_alliesbar "1"ndod_botclass_allies30cal "1"ndod_botclass_alliesbazooka "1"nndod_botclass_axiskar "1"ndod_botclass_axisk43 "1"ndod_botclass_axismp40 "1"ndod_botclass_axismp44 "1"ndod_botclass_axisscopedkar "1"ndod_botclass_axisfg42 "1"ndod_botclass_axisfg42s "1"ndod_botclass_axismg34 "1"ndod_botclass_axismg42 "1"ndod_botclass_axispschreck "1"
Version Info:n
n - 05.19.2006 Version 0.1n Initial Releasenn - 05.22.2006 Version 0.2n When a bot joins, random allowed class is choosenn Added random chance that bot will change classnn - 05.25.2006 Version 0.3n Made random class change chance more probablen If class = rocket then change on next deathnn - 07.24.2006 Version 0.4n Adjusted putinserver task timen Cleaned up codenn - 09.05.2006 Version 0.5n Basically re-wrote the whole plugin, much more user-friendly nown
DOWNLOAD URL: http://www.avamods.com/download.php?view.34

H HoTsHoT
posted here
Posts: 6
Threads: 2
Joined: Dec 2005
09-06-2006, 02:26 PM #2

so to make it so they change class all the time change it to:rndod_botclass_change_chance 1rncorrect?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-06-2006, 06:32 PM #3

yupnnbecuase normally it picks a random number between 1 & whatever you set for that cvar..nnif the number = 1 it will have them change class (tho they could always choose the same class again)nnso if you set it to 1, it will always come out as 1 and therefor always go thru the change class function..

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
09-18-2006, 10:07 AM #4

Very useful. Once again thank you for another great plugin!

P Private Dyin
posted here
Posts: 13
Threads: 1
Joined: Sep 2005
09-20-2006, 05:03 AM #5

Yep great plugin but I'm getting something strange happen on certain maps. On default maps like avalanche it works great but I've tried it on a couple of custom maps and most of the bots seem to spawn from the info_player_observer entity rather than the regular spawn points. One of the maps I've seen this happen on is dod_coffee. The only "alterations" I did to this map was add some more spawns but you can see from my pic that the bots spawn in the middle where the observer entity is located.rnrnrnrnThe other map I've seen this on is a map I converted to DoD, awp_city. As you can see from my pic once again the bots spawn in the middle where the info_player_observer entity is located. Some of the bots when killed, freeze or "shake" in place like a player that is lagging out.rnrnrnrnAny ideas why this happens? When I turn off the plugin in the plugins.ini the bots spawn normally.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-20-2006, 10:38 AM #6

hmm i have that happen occasionally without this plugin on.. I always figured it was a problem with the bots.. and it always does it with only axis bots for me..nnbut maybe im wrong.. but i dont see how this plugin would affect that.. all this is doing is changing classes

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
09-20-2006, 11:19 PM #7

I had noticed this the other night on donner and didnt think much about the recent addition of this plugin.... Now I was playing charlie today and saw axis bots spawning on the beach... Removed plugin, restarted map and viola.... problem gone. I dont know how or why, but I did see it and I dont have the problem now.....rnrnI dunno man, I just try them out.....:eek:

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-20-2006, 11:24 PM #8

hmm i'll look into it..nnmaybe thats what happens when a bot picks a class thats full.. not sure.. but ill see if i can figure anything out

P Private Dyin
posted here
Posts: 13
Threads: 1
Joined: Sep 2005
10-02-2006, 11:19 PM #9

Any luck in finding out anything about this plugin? I could really use this as I restrict some maps to only one or two chooseable classes and almost no bots join. Thanks! :D

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
10-03-2006, 08:55 AM #10
hmm i'll look into it..n nmaybe thats what happens when a bot picks a class thats full.. not sure.. but ill see if i can figure anything out
nI read this can happen to anyone on any server when a map is played and there are simply not enough spawn points made for each team. Eventually players will spawn from the "observer" origin. nI wish I saved the text or the link to the information, it would be easier then simply believing me.... but it was found on www.steampowered.com while looking up a completely seperate issue...

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
10-03-2006, 01:37 PM #11

Yeah but on charlie on a 24 person server with 14 people in it and half are bots?nnNot a good enough answer for me...nnn

but it was found on www.steampowered.com while looking up a completely seperate issue...
nIsnt that always the way steampowered works?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
10-03-2006, 07:59 PM #12

i havent really had time to look at this.. but i did notice running a lan that it was happening to the axis on avalanche.. and i know theres plenty of spawn points, plus there was only me and 9 bots on

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
10-04-2006, 07:39 PM #13

Seee! I wouldnt lie to ya ;)

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
10-05-2006, 07:42 AM #14
Seee! I wouldnt lie to ya ;)
nlol, I never doubted you !! Plus, I was only offering what I stumbled upon. I personally have never "seen" it happen, and I have not played with bots in years...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
10-05-2006, 07:37 PM #15

wierd thing is.. i cant seem to duplicate it at will.. like i dont know what part of the plugin is causing it...

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC