Page 1 of 1

Mod Bot Health

Posted: Sat Mar 06, 2010 4:27 am
by dmillz
A couple of my friends and I have been trying unsuccessfully to edit a bot in Q3 Arena to increase its health. We wish to create a "boss" type bot with a large amount of health to make a new game mode where you have to kill the "boss". Any help would be awesome!

Re: Mod Bot Health

Posted: Sat Mar 06, 2010 10:06 am
by ^misantropia^
Are you editing the bot files - the pseudo-C files in botfiles/bots/ - or creating a mod with the SDK?

Re: Mod Bot Health

Posted: Sun Mar 07, 2010 2:22 am
by dmillz
All we've tried so far is editing the C code for the bots in both the bots files and in the game files (AI code). We had no problems changing a players health but have found no way to change a bots health. Did various searches on the internet and it seems that noone has ever tried to increase the AI health, just how smart they are...

Re: Mod Bot Health

Posted: Sun Mar 07, 2010 10:40 am
by ^misantropia^
From the viewpoint of the game, a bot is nothing but another player. A quick hack that comes to mind is adding this to G_Damage() in game/g_combat.c:

Code: Select all

if (targ->r.svFlags & SVF_BOT) {
    damage /= 2;
}

Re: Mod Bot Health

Posted: Sun Mar 07, 2010 3:36 pm
by dmillz
I thought so, which is why I was so surprised that modifying its health is so difficult. Apparently one of the other members of my team managed to figure it out late last night. Thanks for your help, I think we will implement your idea to reduce damage as well!

Re: Mod Bot Health

Posted: Mon Mar 08, 2010 9:53 am
by MKJ
lowering the difficulty also increases their handicap.
it is indeed odd that health and AI are interwoven like that