Bot Questions.

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Bot Questions.

Post by HeavenBound »

K so i know its prolly in another post, but I've looked through a few and found no answer to my questions.

#1...

Is there a way to make it, when you kill a bot or a bot kills you, it adds kills/deaths?

#2, (Altho im pretty sure the answer is no, but thot I'd ask anyway.)

I could have sworn I saw somewhere a new scoreboard including the bots...obv, this is serverside+clientside, but the mod itself is anyway..

#3,

When a Bot shoots a player, all it says is "Player was shot". Is there a way to show who shot who (bot-wise)?


Sorry if i'm asking stupid questions that have already been answered... :P

Thanks,

HeavenBound :)
HeavenBound

I'm new at this :)
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

1. You cant add kills to players scoreboard, thats the problem... however you can make second scoreboard for bots, using the cvars, etc

2. I never heard bout it

3.
edit:
you have to edit killed.scr to obtain hit information, like means of death, hit position, atacker, victim...
but it will work only when bots killed... because killed.scr is only executed on ai death

do something like this:

Code: Select all

local.mod = waitthread getmod local.meansofdeath
local.where = waitthread getposition local.position
//add here case for suicide/fall damage
if(local.attacker.targetname == "player") // can print netname 
{
	iprintln " bot " self " was " local.mod " by " local.attacker.netname " in " local.where
}
else
	iprintln " bot " self " was " local.mod " by " local.attacker " in " local.where

local.meansofdeath and local.position are numerical values, you have to transle them to something human-friendly by two additional threads,use bullethit.scr as reference
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

1 + 2 + 3) Yes, my scoreboard and killboard:

http://medalofhonor.filefront.com/file/ ... don;100765

Except for the 'If you kill a bot, it adds/deducts kills'-part, it's still AA. AA doesn't have an addkill command. However, in the botscoreboard it will show all your botkills (and your playerkills combined).

Cheers
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Creaper
Lance Corporal
Posts: 10
Joined: Wed Nov 30, 2005 5:45 pm

Post by Creaper »

theres away to addkills in mohaa
if you have a windows server and your server host allows
you to upload dll files you can get it to add kills for killing bots
because theres a addkill patch for mohaa window servers
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

It's fairly uncommon to see bots used on a server. So will your modified wrapper work for a client game of mohaa?
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Huh, its hard but possible indeed, looks like one guy already did it, http://aluigi.freeforums.org/post5661.html , Creap, talkin' bout him..?
Creaper
Lance Corporal
Posts: 10
Joined: Wed Nov 30, 2005 5:45 pm

Post by Creaper »

yes daven gave me the patched dll file
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post by HeavenBound »

so Creaper...wanna hit me up sometime on xfire, so I can get this to her? and then if Sor doesn't mind, I'll see if I can get his scoreboard to work with it. :]
HeavenBound

I'm new at this :)
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

If you get the wrapper working for a client game (ie. client wrapper) give a shout, i'll tell you what to add where to get it working.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post by HeavenBound »

Sounds Good...Creaper if u dont wanna do xfire (cuz i know how much u hate it) just email me and cfcheavenbound@aim.com

Thanks :)
HeavenBound

I'm new at this :)
Post Reply