- Joined
- Dec 30, 2006
- Messages
- 595
- Reaction score
- 25
Hi. I've noticed that a lot of servers still have this when they're streaming matches and it's a very simple fix so I'd like to share it with everyone. This will prevent your game from showing the ugly message whenever someone kills another player and you're an observer with a higher grade account.
I don't have a screenshot right now but it resembles this:
Anyway, it's pretty ugly, right? If you want to take it off completely, open your Gunz solution, go to Game -> ZGame.cpp
Search for this:
Replace with:
If you want to keep it (which is what I decided to do, because then I can turn off chat while streaming and watchers will still be able to see it if someone's killed), simply change the text in the code here:
To whatever you want, for example:
Note: there's no need to put anything after the second %d%s. I have no idea of what Æйè means (too lazy to restart the computer in Korean and I couldn't find a way to convert it online), and it's weird that it shows up after the name of the person killed, but whatever. The important part is who's killing who, right?
I know this is simple as f*** and that most people already did it blah-blah-blah, we always get that in threads like this. Still, I'm sure a lot of people will like to know this and use it in their servers.
Cheers!
I don't have a screenshot right now but it resembles this:
PersonPerson ½Â¸®, SecondDude Æйè
Anyway, it's pretty ugly, right? If you want to take it off completely, open your Gunz solution, go to Game -> ZGame.cpp
Search for this:
Code:
if (ZGetMyInfo()->IsAdminGrade()) { MMatchObjCache* pCache = ZGetGameClient()->FindObjCache(ZGetMyUID());
if (pCache && pCache->CheckFlag(MTD_PlayerFlags_AdminHide))
{
sprintf( szMsg, "^%d%s^9 ½Â¸®, ^%d%s^9 Æйè",
(pAttacker->GetTeamID() == MMT_BLUE) ? 3 : 1, pAttacker->GetProperty()->GetName(),
(pVictim->GetTeamID() == MMT_BLUE) ? 3 : 1, pVictim->GetProperty()->GetName());
ZGetGameInterface()->GetCombatInterface()->m_AdminMsg.OutputChatMsg( szMsg);
}
}
Replace with:
Code:
// if (ZGetMyInfo()->IsAdminGrade()) {
// MMatchObjCache* pCache = ZGetGameClient()->FindObjCache(ZGetMyUID());
// if (pCache && pCache->CheckFlag(MTD_PlayerFlags_AdminHide))
// {
// sprintf( szMsg, "^%d%s^9 ½Â¸®, ^%d%s^9 Æйè",
// (pAttacker->GetTeamID() == MMT_BLUE) ? 3 : 1, pAttacker->GetProperty()->GetName(),
// (pVictim->GetTeamID() == MMT_BLUE) ? 3 : 1, pVictim->GetProperty()->GetName());
// ZGetGameInterface()->GetCombatInterface()->m_AdminMsg.OutputChatMsg( szMsg);
// }
// }
If you want to keep it (which is what I decided to do, because then I can turn off chat while streaming and watchers will still be able to see it if someone's killed), simply change the text in the code here:
Code:
sprintf( szMsg, "^%d%s^9 ½Â¸®, ^%d%s^9 Æйè",
To whatever you want, for example:
Code:
sprintf( szMsg, "^%d%s^9 defeated ^%d%s^9. Yay!",
Note: there's no need to put anything after the second %d%s. I have no idea of what Æйè means (too lazy to restart the computer in Korean and I couldn't find a way to convert it online), and it's weird that it shows up after the name of the person killed, but whatever. The important part is who's killing who, right?
I know this is simple as f*** and that most people already did it blah-blah-blah, we always get that in threads like this. Still, I'm sure a lot of people will like to know this and use it in their servers.
Cheers!