[hlcoders] FragCount() & DeathCount()

2007-03-29 Thread Mukkan Yhtio
For some reason when using these functions on the local player (UTIL_PlayerByIndex( 1 );) they only ever return 1. No matter how much I kill myself, FragCount and DeathCount will return 1. Is these something i'm not quite understanding here about how these functions work or something? Thanks, M

Re: [hlcoders] FragCount() & DeathCount(

2007-03-29 Thread Benjamin Davison
-- [ Picked text/plain from multipart/alternative ] If you are working with the local player I think you should use CBasePlayer::GetLocalPlayer(); instead. On 3/29/07, Mukkan Yhtio <[EMAIL PROTECTED]> wrote: > > For some reason when using these functions on the local player > (UTIL_PlayerByIndex(

Re: [hlcoders] FragCount() & DeathCount(

2007-03-29 Thread Mukkan Yhtio
Yeah but then it doesnt return anything? Benjamin Davison wrote: -- [ Picked text/plain from multipart/alternative ] If you are working with the local player I think you should use CBasePlayer::GetLocalPlayer(); instead. On 3/29/07, Mukkan Yhtio <[EMAIL PROTECTED]> wrote: For some reason when

Re: [hlcoders] FragCount() & DeathCount

2007-03-29 Thread Tony \"omega\" Sergi
-- [ Picked text/plain from multipart/alternative ] Where are you calling this? and are you sure you're even player #1 when you test it? frequently when I launch a lan game, i end up in slot #2 for some reason. On 3/29/07, Mukkan Yhtio <[EMAIL PROTECTED]> wrote: > > Yeah but then it doesnt retu

Re: [hlcoders] FragCount() & DeathCount

2007-03-29 Thread Mukkan Yhti
I'm calling it in gamerules.. A think function or something that checks the frag count against the fraglimit. From: "Tony \"omega\" Sergi" <[EMAIL PROTECTED]> Reply-To: hlcoders@list.valvesoftware.com To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders

Re: [hlcoders] FragCount() & DeathCount

2007-03-29 Thread Minh
-- [ Picked text/plain from multipart/alternative ] Don't take it personal Tony. You'll always be #1 in my mind. :) - Original Message - From: "Tony "omega" Sergi" <[EMAIL PROTECTED]> To: Sent: Thursday, March 29, 2007 8:49 AM Subject: Re:

Re: [hlcoders] FragCount() & DeathCount

2007-03-29 Thread Tony \"omega\" Sergi
t; From: "Tony "omega" Sergi" <[EMAIL PROTECTED]> > To: > Sent: Thursday, March 29, 2007 8:49 AM > Subject: Re: [hlcoders] FragCount() & DeathCount > > > > -- > > [ Picked text/plain from multipart/alternative ] > > Where are you calling