MCPcopy Create free account
hub / github.com/ddnet/ddnet / SendDeathMessageIfNotInLockedTeam

Method SendDeathMessageIfNotInLockedTeam

src/game/server/entities/character.cpp:1048–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046}
1047
1048void CCharacter::SendDeathMessageIfNotInLockedTeam(int Killer, int Weapon, int ModeSpecial)
1049{
1050 if((Team() == TEAM_FLOCK || Teams()->TeamFlock(Team()) || Teams()->Count(Team()) == 1 || Teams()->GetTeamState(Team()) == ETeamState::OPEN || !Teams()->TeamLocked(Team())))
1051 {
1052 CNetMsg_Sv_KillMsg Msg;
1053 Msg.m_Killer = Killer;
1054 Msg.m_Victim = m_pPlayer->GetCid();
1055 Msg.m_Weapon = Weapon;
1056 Msg.m_ModeSpecial = ModeSpecial;
1057 Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, -1);
1058 }
1059}
1060
1061void CCharacter::CancelSwapRequests()
1062{

Callers

nothing calls this directly

Calls 7

TeamFlockMethod · 0.80
CountMethod · 0.80
GetTeamStateMethod · 0.80
TeamLockedMethod · 0.80
ServerClass · 0.50
GetCidMethod · 0.45
SendPackMsgMethod · 0.45

Tested by

no test coverage detected