If i were you, i'd add a: gameeventmanager->AddListener(this, "player_death", false );
to the scoreboard code, and use the FireGameEvent() function to store who the last person who killed who on the client, since it's sending this info in a game event message anyways. On 7/5/05, r00t 3:16 <[EMAIL PROTECTED]> wrote: > I worked it out but thanks anyways.. > > > Regards, > r00t 3:16 > Total Retribution > http://www.totalretribution.com > ----- Original Message ----- > From: "Ian Warwick" <[EMAIL PROTECTED]> > To: <hlcoders@list.valvesoftware.com> > Sent: Monday, July 04, 2005 4:28 AM > Subject: RE: [hlcoders] Networking char ? > > > Surely the killer would have an index, which is available in the > scoreboard anyway, why not just look up the player using that? > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of r00t 3:16 > Sent: 03 July 2005 17:46 > To: hlcoders@list.valvesoftware.com > Subject: Re: [hlcoders] Networking char ? > > > Yes that is what I want.. > Player (A) kills player (B) > Player (A) should be listed in the Killed By field of the scoreboard. > > I am trying to network similar to that of the player_resource info. > m_iPing, m_iDeaths, m_iFrags > etc etc > > I know a string can be networked. But what about a > m_szKilledby[MAX_PLAYERS+1] [MAX_PLAYER_NAME_LENGTH] Wouldn't take take > up a bit of network traffic ? > > > > > Regards, > r00t 3:16 > Total Retribution > http://www.totalretribution.com > ----- Original Message ----- > From: "Andrew (British_Bomber)" <[EMAIL PROTECTED]> > To: <hlcoders@list.valvesoftware.com> > Sent: Sunday, July 03, 2005 12:21 PM > Subject: Re: [hlcoders] Networking char ? > > > > I'm not entirely sure what you are looking to do, are you just looking > > > to have a message in the scoreboard that tells you who the last person > > > to kill the localplayer was? If that's the case I would just create a > > > user message called something like ScoreboardKiller that sends over a > > string, then have that message registered to the scoreboard element, > > which stores it off into a member of the class. Then whenever someone > > > is killed you send over the name of the killer to the scoreboard at > > the same time you send the deathnotice out. > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > ==================================================================== > FusionPeople Ltd may monitor outgoing and incoming emails and other > telecommunications on its email and telecommunication systems. > > > ==================================================================== > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error you are on notice of its status. > Please notify us immediately by return email if you are not the intended > recipient and delete this message. Please note that any views or opinions > presented in this email are solely those of the author and do not > necessarily represent those of FusionPeople Ltd. > > FusionPeople Ltd may monitor outgoing and incoming emails and other > telecommunications on its email and telecommunication systems. > > ======================================================================= > This message has been checked for all known viruses by MessageLabs, The > service does not scan any password protected or encrypted attachments. > FusionPeople Ltd accepts no liability for any damage caused by any virus > transmitted by this email. > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders