wootguy / SevenKewp

Half-Life Co-op mod
Other
17 stars 5 forks source link

how would i go about adding npc kills and deaths to killfeed (death notice)? #15

Closed Glitch31415 closed 1 month ago

Glitch31415 commented 1 month ago

is it a player-only thing? i couldn't find any plugins for it on any goldsrc game

wootguy commented 1 month ago

that's for players only. It might be possible to quickly replace a player name for a kill then switch it back.

wootguy commented 1 month ago

add mp_killfeed 2 to the server.cfg to show npc kills in addition to player kills. This works only if at least 2 players are in the server.

Glitch31415 commented 1 month ago

would bots count as players in this case?

wootguy commented 1 month ago

yeah that should work

Glitch31415 commented 1 month ago

alright, i'm waiting for your rcbot build to work before i add bots anyway, and also the server is down rn because i deleted my patched binary AND the files for it so i have to remake it all lol

Glitch31415 commented 1 month ago

@wootguy does this show npcs killing other npcs as well? i have yet to test with a server with another person in it

wootguy commented 1 month ago

it will now if you set mp_killfeed 3

mp_killfeed values: 0 = off 1 = players killing players + npcs killing players 2 = players killing players + npcs killing players + players killing npcs 3 = players killing players + npcs killing players + players killing npcs + npcs killing npcs

Glitch31415 commented 1 month ago

we talked about this in game, but how would I allow assists to show on players as well? my server is configured so players die about as fast as npcs so it would be fairly useful in my case

wootguy commented 1 month ago

I won't walk you through it but updating the LogPlayerDamage function to work with all NPCs would be my first step (relevant commit)