Raised This Month: $51 Target: $400
 12% 

Force specific weapons to specific bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
djsubtronic
Junior Member
Join Date: Feb 2014
Old 02-28-2014 , 11:18   Force specific weapons to specific bots
Reply With Quote #1

Hello, I'm using CS:SDM on a server, and I've customised the botprofile.db file with individual bot configurations, and each bot will have his own weapon of choice. For testing purposes, I set all the bots to use only the AK47 using "weaponperference = ak47". When running the game, only 2 or 3 out of 20 bots were using the AK47, others were using AWPs, AUGs, M4s, etc. Basically random. I changed the botprofile.db file to have all the bots use M249, but they were still using random different weapons. In fact none of the bots were using the M249.

I figured it must be some kind of incompatibility with CS:SDM since it gets rid of the normal "buy" method of obtaining weapons, so I disabled it temporarily and restarted the server and as I guessed, all the bots were running around with the M249.

So is there any way to make CS:SDM respect each bot's weaponpreference from the botprofile.db?

Thanks
djsubtronic is offline
djsubtronic
Junior Member
Join Date: Feb 2014
Old 02-28-2014 , 11:49   Re: Force specific weapons to specific bots
Reply With Quote #2

Just to add, I solved the problem halfway.

I commented out the following weapon lines for bots in cssdm.equip.txt:

Code:
"BotItems"
    {
        //"weapon"        "ak47"
        //"weapon"        "m4a1"
        //"weapon"        "awp"
        //"weapon"        "galilar"
        //"weapon"        "galil"
        //"weapon"        "aug"
        //"weapon"        "deagle"
        "health"        "100"
        "armor"            "100"
        "helmet"        "yes"
        "flashbangs"    "0"
        "smokegrenade"    "no"
        "hegrenade"        "yes"
        "defusekits"    "yes"
        "decoy"        "no"
        "taser"        "yes"
    }
Now they get their specified weapon as per the botprofile.db, however when they die and respawn, they don't get any weapons so they are stuck with the default pistol they spawn with.

Last edited by djsubtronic; 02-28-2014 at 12:07.
djsubtronic is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode