When you press Tab (Player List) ... Question about that

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

Moderator: Moderators

Post Reply
howie
Private
Posts: 2
Joined: Fri Apr 18, 2003 4:35 pm

When you press Tab (Player List) ... Question about that

Post by howie »

I got something wrong... or maybe not wrong but it bothers me. The bots I added weren't added to the list. When I pressed Tab only my name appeared. Also my kills weren't recorded. Argh I wanted to see the kills I made.

I hope there's a solution to this.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Would be nice

Post by tltrude »

Yeah, it would be nice if the number of bot kills showed up on the ending screen.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Sure, but three problems:
  1. Don't know if a player was killed by a bot, and if he is, by which bot :(
  2. Don't know how to get a bot upon the scoreboard :(
  3. Don't know how to award kills to a player (in mohaa) :(
:(
Image
nihilo
Sergeant Major
Posts: 107
Joined: Thu Mar 13, 2003 6:07 am

Post by nihilo »

I was thinking about the whole scoreboard thing and I have to admit I don't know much about it, but I was wondering if it is possible to tie a bot to a dummy player.

Here is my thought: if you could (and I'm wondering if this is even possible) trick the server into thinking a player joined you could tie all the attributes of a bot to that (non-existant) player. So, if you killed the bot, you could tell the server that the dummy player died, and the server would both give the kill to the human and keep track of which bot died and display that on the scoreboard.

I donno, now that I've written it I'm starting to think this isn't possible, but it's an idea nonetheless.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well I tried:
local.dummy = spawn Player
but the game didn't like it (no wonder) ;).

You really need to connect to a server to setup a dummy player I think. If we had the source code, it might have been possible to create a little program that connects say 32 dummy players to a server.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

playerstat "21"

Post by tltrude »

I saw a little mod that reports the number of kills you have during a multiplayer game. It is just a UI file and it used playerstat "21" to put the number on the screen. IF we can figure out what number is used for AI kills, it could be done, I think, because AI kills are reported at the end of a singleplayer game.

Here is the script for the player kills ui file:

Code: Select all

menu "hud_timelimit" 256 200 NONE 1
bgcolor 0 0 0 0
fgcolor 1 1 1 1
//align centerx top
align right top

resource
Label
{
title "time message"
name "Default"
//rect 0 0 224 24
rect 0 32 246 24
fgcolor 0.69 0.69 0.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
font facfont-20
//textalign left
textalign right
linkcvar "ui_timemessage"
}

resource
Label
{
title "Kills"
name "default"
rect 180 64 60 24
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.22 0.30 0.22 0.70
borderstyle "INDENT_BORDER"
font "courier-18"
textalign right
}

resource
Label
{
name "Default"
rect 180 96 60 24
fgcolor 0.69 0.69 0.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
playerstat "21"
font facfont-20
textalign right
}

end

The ending screen is also a UI file.
Tom Trude,

Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

I noticed something while playing bots, when i'm axis, i don't see the allies avatar, only when i'm allies, i see the axis avatars.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

when i'm axis, i don't see the allies avatar
Really? I can see 'em :?
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Yes, LOOK! Jv has 1 more post to 2000!!!!!! :shock: :shock:

Not fair :x
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

tltrude I'm afraid these playerstats are client-side :?

You're right rox, 2000th post 8)

*sends in champaign*
Image
howie
Private
Posts: 2
Joined: Fri Apr 18, 2003 4:35 pm

Post by howie »

just by reading this im beginning to think there is no solution...

BUT

if you add bots on CounterStrike, the kills and deaths are recorded on the scoreboard. I'm not a map/edit/mod guy. hell I dont even know jack shit, but can't you get the UI file for that and try to use it for MOH?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

client-side

Post by tltrude »

We add UI files to our pk3's all the time for the loading screen. So why can't we add one for the ending screen? I'm going to work on it.

Ok, I found this in a UI file, but it would probably show all the bots killed by both teams.

Code: Select all

resource
Label
{
title "Enemies Killed:"
name "Default"
rect 16 216 168 24
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
font "facfont-20"
textalign left

}
resource
Label
{
title "kills"
name "S7"
rect 192 216 144 24
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
linkcvar "ui_NumEnemysKilled"
font "facfont-20"
textalign left

}
It should work for me because I have no allied bots in my map, and everyone is forced to play on the allied team. Maybe there is a "ui_NumFriendliesKilled", ha ha.

Another question, if the bot scripts can report the name of a bot that was killed, why can't it add one to a "level.alliedbotskilled" or "level.axisbotskilled" variable?
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: client-side

Post by jv_map »

tltrude wrote:Another question, if the bot scripts can report the name of a bot that was killed, why can't it add one to a "level.alliedbotskilled" or "level.axisbotskilled" variable?
It can, but I didn't yet see a use for it.
Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

if you add bots on CounterStrike, the kills and deaths are recorded on the scoreboard. I'm not a map/edit/mod guy. hell I dont even know jack crap, but can't you get the UI file for that and try to use it for MOH?
probly cos half-life and cs has got loads better mod support from valve. it had more support in its first month than EA will ever have for medal of honor.

:evil: hate EA, i e-mailed them a month ago, they havent answered. and i cant ask in thier 'official' forums cos their broken. :(
"We must become the change we want to see in the world" (Mahatma Gandhi)
Post Reply