.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   Buying Needs Overhaul (http://forums.bots-united.com/showthread.php?t=2029)

V or 'Tex 21-06-2004 07:36

Buying Needs Overhaul
 
The CTs and Ts are making stupid, horrible spending choices. I've seen them buy an M3 (shotgun, not M4A1) when they had an AWP, I've seen a T drop an AK for an MP3. It's rediculous that they buy a weapon which they use really well for one round, then buy a cheaper one next round as though they -have- to spend money on something.

There needs to be better detection on weapons and more emphasis on them keeping weapons they have until they save up for a better one/their 'favorite' in preferences. I find it rediculous when my team is winning and all my CTs have M4s or FAMAS, and next round they all get MP5s and die because the losing terrorists finally saved up enough to get AKs! Which they of course dump next round!

dstruct2k 21-06-2004 08:18

Re: Buying Needs Overhaul
 
Also... (as a thought, since we all know this needs to be redone...)

Have them detect weapons on the ground and pick them up if they're better than what the bot is carrying.


We should also add into the reload code a "search_for_nearby_weapon()" so that when the primary is out of all ammo, and there's one on the ground, the bot picks it up. :)

stefanhendriks 21-06-2004 08:58

Re: Buying Needs Overhaul
 
lol yeah, the buy code is very random. But, its free for change, i never really have that much interest in it as i find myself being killed eventually by a bot ... with shotgun :)

Any changes to the source are welcome, i am busy with some other feature, but when i am done with that i will take a look at the buy code.

[BBB]sluggo 21-06-2004 23:18

Re: Buying Needs Overhaul
 
1 Attachment(s)
Hi, i have tweaked my buytable.ini file to make them buy the weapons i like them to buy.
It's not the best way to do it but it's working 8D
Maybe you can take some ideas from it and tweak it to your liking!

I'll attach it so you can have a look and try it yourselves.
(Remove the .txt extension....)

V or 'Tex 22-06-2004 03:33

Re: Buying Needs Overhaul
 
Sluggo, it will not fix the problem I am mentioning. It will just make it so that they only buy a few weapons.

The problem I am talking about is their prioritization of weapons. I have even seen a single bot on startup buy one weapon, then buy another, then buy the original weapon. It makes no sense to me why it does this, why it is so stupid. But I have a feeling it is because the bots do not prioritize or properly detect their weapon at the beginning of each round.

stefanhendriks 22-06-2004 08:45

Re: Buying Needs Overhaul
 
lol, coming to think of it, you sure want to overhaul big parts in RB. Anyway, the bots buy every round another one, based uppon randomness. So i can remove some 'stupidness' by just lowering or removing the 'random' value to buy a weapon or not.

davek 22-06-2004 19:04

Re: Buying Needs Overhaul
 
but then wont we get more bots running around with pistols? thats rather annoying in itself.

a simple fix would be to just detect a primary weapon in hand and not buy one. at least i think that would be simple.

a more complex fix would be to detect what weapon the bot has in hand, and then see if it can afford a better one. that woudl require ranking all the weapons, and checking moneys, and getting more specific info.

dstruct2k 23-06-2004 01:08

Re: Buying Needs Overhaul
 
Ranking + money is already collected in buytable.ini and botname.ini....


This can be done pretty easily. :)

davek 23-06-2004 04:30

Re: Buying Needs Overhaul
 
but isnt ranking only very loosely done in the buytable.ini? i mean, isnt there a lot of randomness in there? hm. actually, that should be fine... but i just dont want bots to think that a mp5 is better than an m4a1 one round, and then switch back the next round because of the randomness.

stefanhendriks 23-06-2004 09:03

Re: Buying Needs Overhaul
 
No, the buytable is actually quite 'ranked'.

Ie, the order of the weapons in the file is already 1 priority que

Second, you can say how much 'preference' there should be for a weapon (2nd priority que)

And third you have the requirements (money) to buy it.

So the buy code is not that much messed up. Its just that bots tend to buy every round a new weapon... for fun... that latest thing should be changed into some more logical, ie like you say, they can buy a better weapon. Etc.

EDIT:
I have taken a look at the code and i found something very suprisingly to me:
- they ALWAYS want to buy a NEW primary weapon every round
- they will NOT buy a new primary weapon when theyhave not enough money
- even when they have their favorite weapon, they will still try to find a 'better' one.

I was suprised by the amount of mistakes i made there, prolly been late at nite coding there. I have fixed the above three. And it was simple to fix too even. Now they do consider a new primary weapon EVERY ROUND. But they will NOT buy one if they already have their favorite (which you can determine in the bot personality)...

I will test it a bit more and see if i can improve more. But the buytable.ini file should do the rest.


All times are GMT +2. The time now is 14:57.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.