


CGameTeams::OnCharacterDeath()if(GetTeamState(Team) != TEAMSTATE_OPEN)














NETMSGTYPE_SV_KILLMSG → one tee was killedNETMSGTYPE_SV_KILLTEAM → a whole team was killedNETMSG_SV_KILLTEAM messageNETMSG_SV_KILLMSGNETMSG_SV_KILLMSG
m_aKillmsgs[m_KillmsgCurrent] = Kill; for both messages in killmessage.cpp?





NETMSG_SV_KILLTEAM per team member,I think

NETMSG_SV_KILLTEAM per team member,I think void CCharacter::Die(int Killer, int Weapon, bool Single) has a new bool (Single) for if it's only going to be one tee dying
By default it's true, but if it's false the killmessage packet doesn't even send (edited)



























git push through











Single to KillMsg and then that's it? Idk what i'm supposed to be moving where @fokkonaut





\\?\C:\path\to\con








































































































0ce70f8 add proof mode for menu backgrounds closes #3009 - Marmare314
9537656 use array again and consider checkpoints - Marmare314
8e2869e add tooltips - Marmare314
0cbc725 fix formatting and include array - Marmare314
7f0c052 fix formatting - Marmare314
93d204f show duplicate positions in tooltip - Marmare314
a27dbb1 Merge #6435 - bors[bot]
















































int function() { g(); } just returns "the last thing that was in the rax register"

int *p = nullptr; *p = 0; always crashes


















Single to KillMsg and then that's it? Idk what i'm supposed to be moving where @fokkonaut 





KillMessage parameter that functions differently from the current one

Single doesn't really capture what it doesMsgPlus.m_Size = Teams()->TeamSize(Team());

Single doesn't really capture what it does 
bool TeamKill = Team() != 0 && Teams()->GetTeamState(Team()) == CGameTeams::TEAMSTATE_STARTED;
if(TeamKill)
{
// Send your team kill message here
}
else
{
// send the kill message
CNetMsg_Sv_KillMsg Msg;
Msg.m_Killer = Killer;
Msg.m_Victim = m_pPlayer->GetCID();
Msg.m_Weapon = Weapon;
Msg.m_ModeSpecial = ModeSpecial;
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, -1);
}


- key: readability-identifier-naming.HungarianNotation.PrimitiveType.int
value: null
value:
value: none
value: None
I guess it should also be possible using the normal options, but this would be nicer. (edited)

bool TeamKill = Team() != 0 && Teams()->GetTeamState(Team()) == CGameTeams::TEAMSTATE_STARTED;
if(TeamKill)
{
// Send your team kill message here
}
else
{
// send the kill message
CNetMsg_Sv_KillMsg Msg;
Msg.m_Killer = Killer;
Msg.m_Victim = m_pPlayer->GetCID();
Msg.m_Weapon = Weapon;
Msg.m_ModeSpecial = ModeSpecial;
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, -1);
} Single parameter?



Teams()->OnCharacterDeath(GetPlayer()->GetCID(), Weapon);
}






- key: readability-identifier-naming.HungarianNotation.PrimitiveType.int
value: null
value:
value: none
value: None
I guess it should also be possible using the normal options, but this would be nicer. (edited)
Hacker News • 2023-03-27 18:32:37Z 

value: ""

value: "" value: '' which is supposed to work for the normal prefix options
"" or ''?

int function() { g(); } just returns "the last thing that was in the rax register" rax register


-pedantic -Wall -Wextra -Werror gives you way less error already 





int *p = nullptr; *p = 0; always crashes 
cat (edited)



$ echo 'int *p = nullptr; *p = 0;' | cat
int *p = nullptr; *p = 0;int *p = nullptr; *p = 0; always crashes on amd64

"" or ''? 















1




