When you press Tab (Player List) ... Question about that
Moderator: Moderators
When you press Tab (Player List) ... Question about that
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.
I hope there's a solution to this.
Would be nice
Yeah, it would be nice if the number of bot kills showed up on the ending screen.
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.
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.
playerstat "21"
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:
The ending screen is also a UI file.
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.
client-side
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.
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?
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
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.
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.
"We must become the change we want to see in the world" (Mahatma Gandhi)

