View Single Post
Re: Buytable SCREWED.
Old
  (#29)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: Buytable SCREWED. - 23-07-2004

sorry for all the double posting

bot_buycode.cpp: line 179

why isn't it
Code:
pBot->buy_primary = false;
    bBuyOther = false;
? so that they actually save for their favorite?

also, for the actual buy'ing section, I don't know if the compiler will optimize it as much as converting it to a switch statement because that's all it basically is. I remember from my compilers class that a switch statement converts to quicker code than if statements HTH I have such conversion implemented
you have line 444 = line 436

perhaps we could put into the personality a buy only pistols option? perhaps it could be a mode

i've been trying to debug the buycode, it doesn't seem to update the iPrimaryWeapon before going into the buycode sometimes
it is updated after the swat teams are created though :/
any idea why that is????:'(

Last edited by Josh_Borke; 23-07-2004 at 03:55..
  
Reply With Quote