Page 1 of 1
Bot Questions.
Posted: Mon Jul 13, 2009 11:01 pm
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...
Thanks,
HeavenBound

Posted: Tue Jul 14, 2009 7:49 am
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
Posted: Tue Jul 14, 2009 5:52 pm
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
Posted: Wed Jul 15, 2009 12:06 pm
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
Posted: Wed Jul 15, 2009 12:43 pm
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?
Posted: Wed Jul 15, 2009 1:06 pm
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..?
Posted: Wed Jul 15, 2009 2:21 pm
by Creaper
yes daven gave me the patched dll file
Posted: Wed Jul 15, 2009 4:28 pm
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. :]
Posted: Wed Jul 15, 2009 6:40 pm
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.
Posted: Wed Jul 15, 2009 6:47 pm
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
