Loading...
 

PogamutUT2004


Setting health level.

Hi guys,

Been a while since I have visited the forum, quite a hectic time, eh. I am in need of increasing the bot's health level. Yes, I know I want to cheat a bit but in good cause;) Is there a way to set a higher level than the default one, e.g. to 150. Can it be done?

Thanks,

P.
Yeah - ChangeAttribute command. Just be sure you have bAllowCheats=True in GameBots2004.ini!

Best,
Michal
Thanks Michal, I am must be having a weak moment because I've changed the gamebots file, placed the code this.getAct().act(new ChangeAttribute().setHealth(200)) in bots initialisation part, and nothing changes. Am I missing something?

Cheers,
P.
Hi!

Have you set bAllowCheats=True in GameBots2004.ini as well?

Best,
Jimmy
Ok, first of all 200 may be too much - maximum health level in UT04 is 199 as far as I know. Second thing - you should set the health level when the bot is already spawned in the environment - that is in botSpawned method or in logic method. botInitialized method is not a good place, because bots body is not yet created in the environment.

Try to set the level to 150 or something at first in logic method to see if it works.

michal
Hi Jimmy, Michal!

Ok, I have definitely changed the GameBots2004.BotConnection bAllowCheats=True.
Second, I have added (of course not in a single go) this.getAct().act(new ChangeAttribute().setHealth(150)); in every method that would make sense, e.g, botSpawned, logicInitialize, logic, etc.. The bot still has the same level of health. I've also tried alternatives such as this.getAct().act(new ChangeAttribute(info.getId(), 150, 50));

Cheers,
P.
Oops. There was a bug in GameBots/Pogamut - in Pogamut command was CHATTR and in GB CHATRR. I've fixed it in GameBots. You can download this HOTFIX HERE. Just extract the zip file to UT2004 and overwrite everything. Changing of health level should work.

michal
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.