Page 1 of 1

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

Posted: Fri Apr 18, 2003 4:36 pm
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.

Would be nice

Posted: Fri Apr 18, 2003 4:41 pm
by tltrude
Yeah, it would be nice if the number of bot kills showed up on the ending screen.

Posted: Fri Apr 18, 2003 6:04 pm
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) :(
:(

Posted: Fri Apr 18, 2003 10:24 pm
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.

Posted: Sat Apr 19, 2003 6:12 am
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.

playerstat "21"

Posted: Sat Apr 19, 2003 10:15 am
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.

Posted: Sat Apr 19, 2003 11:13 am
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.

Posted: Sat Apr 19, 2003 11:54 am
by jv_map
when i'm axis, i don't see the allies avatar

Really? I can see 'em :?

Posted: Sat Apr 19, 2003 11:57 am
by mohaa_rox
Yes, LOOK! Jv has 1 more post to 2000!!!!!! :shock: :shock:

Not fair :x

Posted: Sat Apr 19, 2003 11:58 am
by jv_map
tltrude I'm afraid these playerstats are client-side :?

You're right rox, 2000th post 8)

*sends in champaign*

Posted: Sat Apr 19, 2003 3:33 pm
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?

client-side

Posted: Sun Apr 20, 2003 12:14 am
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?

Re: client-side

Posted: Sun Apr 20, 2003 8:03 am
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.

Posted: Sun Apr 20, 2003 6:02 pm
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. :(