PDA

View Full Version : DoD Bot Class (v0.5)


diamond-optic
09-05-2006, 11:35 PM
DoD Bot Class
- Version 0.5
- 09.05.2006
- diamond-optic

Information:

- Prevent bots from playing certain classesCVARs:

dod_botclass "1" //Turn ON(1) / OFF(0)
dod_botclass_change "1" //Bots change class on death
dod_botclass_change_chance "3" //Chance (1 out of #) that bots will change class on death


//Allowed Classes - ON(1) / OFF(0)
dod_botclass_britlight "1"
dod_botclass_britassault "1"
dod_botclass_sniper "1"
dod_botclass_mg "1"
dod_botclass_piat "1"

dod_botclass_alliesgarand "1"
dod_botclass_alliescarbine "1"
dod_botclass_alliesthompson "1"
dod_botclass_alliesgreasegun "1"
dod_botclass_alliesspring "1"
dod_botclass_alliesbar "1"
dod_botclass_allies30cal "1"
dod_botclass_alliesbazooka "1"

dod_botclass_axiskar "1"
dod_botclass_axisk43 "1"
dod_botclass_axismp40 "1"
dod_botclass_axismp44 "1"
dod_botclass_axisscopedkar "1"
dod_botclass_axisfg42 "1"
dod_botclass_axisfg42s "1"
dod_botclass_axismg34 "1"
dod_botclass_axismg42 "1"
dod_botclass_axispschreck "1"Version Info:

- 05.19.2006 Version 0.1
Initial Release

- 05.22.2006 Version 0.2
When a bot joins, random allowed class is choosen
Added random chance that bot will change class

- 05.25.2006 Version 0.3
Made random class change chance more probable
If class = rocket then change on next death

- 07.24.2006 Version 0.4
Adjusted putinserver task time
Cleaned up code

- 09.05.2006 Version 0.5
Basically re-wrote the whole plugin, much more user-friendly now
DOWNLOAD URL: http://www.avamods.com/download.php?view.34

HoTsHoT
09-06-2006, 03:26 PM
so to make it so they change class all the time change it to:
dod_botclass_change_chance 1
correct?

diamond-optic
09-06-2006, 07:32 PM
yup

becuase normally it picks a random number between 1 & whatever you set for that cvar..

if the number = 1 it will have them change class (tho they could always choose the same class again)

so if you set it to 1, it will always come out as 1 and therefor always go thru the change class function..

tegu
09-18-2006, 11:07 AM
Very useful. Once again thank you for another great plugin!

Private Dyin
09-20-2006, 06:03 AM
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.

http://i24.photobucket.com/albums/c1/dyinfree/botsconfig.jpg

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

http://i24.photobucket.com/albums/c1/dyinfree/botsconfig2.jpg

Any ideas why this happens? When I turn off the plugin in the plugins.ini the bots spawn normally.

diamond-optic
09-20-2006, 11:38 AM
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..

but maybe im wrong.. but i dont see how this plugin would affect that.. all this is doing is changing classes

tegu
09-21-2006, 12:19 AM
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.....

I dunno man, I just try them out.....:eek:

diamond-optic
09-21-2006, 12:24 AM
hmm i'll look into it..

maybe thats what happens when a bot picks a class thats full.. not sure.. but ill see if i can figure anything out

Private Dyin
10-03-2006, 12:19 AM
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
10-03-2006, 09:55 AM
hmm i'll look into it..

maybe thats what happens when a bot picks a class thats full.. not sure.. but ill see if i can figure anything out
I 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.
I 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 (http://www.steampowered.com) while looking up a completely seperate issue...

tegu
10-03-2006, 02:37 PM
Yeah but on charlie on a 24 person server with 14 people in it and half are bots?

Not a good enough answer for me...


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

diamond-optic
10-03-2006, 08:59 PM
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
10-04-2006, 08:39 PM
Seee! I wouldnt lie to ya ;)

=|[76AD]|= TatsuSaisei
10-05-2006, 08:42 AM
Seee! I wouldnt lie to ya ;)
lol, 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
10-05-2006, 08:37 PM
wierd thing is.. i cant seem to duplicate it at will.. like i dont know what part of the plugin is causing it...