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

Method SendWeaponPickup

src/game/server/gamecontext.cpp:738–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738void CGameContext::SendWeaponPickup(int ClientId, int Weapon) const
739{
740 CNetMsg_Sv_WeaponPickup Msg;
741 Msg.m_Weapon = Weapon;
742 Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, ClientId);
743}
744
745void CGameContext::SendMotd(int ClientId) const
746{

Callers 1

TickMethod · 0.80

Calls 2

ServerClass · 0.50
SendPackMsgMethod · 0.45

Tested by

no test coverage detected