doesn't this prevent them from buying grenades?
I have R2.1 of sPlOrYgOn's dll. In bot.cpp we have (between lines 3346 and 3414) :
Code:
Code:
// Buy Grenade or Defuse Kit Code:
Code:
Code:
if (pBot->bot_money > 300) this way it should first buy a grenade and then (if we place a second money-checking part) a defusal kit. Would this be the reason why they so seldom(or never) buy (therefore use) grenades? |
Re: doesn't this prevent em buying grenades?
Yes, you are right, however that's the way the code worked in the original POD-Bot. The bots wouldn't buy grenades if they had a defuse kit and vice versa.
I could have removed it... but at first I wanted to get the bot running exactly like in 2.5 ; it's come a long way since :) |
Re: doesn't this prevent em buying grenades?
1 Attachment(s)
I have modified the source as i said and now they buy and use grenades :D I didn't touch anything else in the source code. Also, i have optimized the dll with intel compiler for P2/P3 processors (this is why the .dll is a little big). I hope that I have not screwed some stuff :P C ya...
|
Re: doesn't this prevent em buying grenades?
Hey, thanks bluebyte! Gonna try your dll as soon as I have time... looks like we got another coding nut to help sPlOrYgOn, huh? =)
|
Re: doesn't this prevent em buying grenades?
maybe, i'd be glad to :)
|
Re: doesn't this prevent em buying grenades?
Okay I have changed from:
Code:
// Needs an Item ? Code:
// Needs an Item ? |
Re: doesn't this prevent em buying grenades?
I made it like that:
Code:
else if (pBot->iBuyCount < 7) Code:
Code:
// Needs an Item ? |
Re: doesn't this prevent em buying grenades?
k.
Your changes have been added. |
All times are GMT +2. The time now is 11:30. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.