[hlcoders] EHandles valid on server and client?

2006-05-29 Thread Kiran Sudhakara
The basic idea here is that I have a
team_account_manager entity which holds team stats. It
has a server and client component (C and C_)
because id like to be able to access the information
from both.

I have a networked EHANDLE member in my gamerules
which is supposed to keep track of the entity for both
server and client. In my gamerules constructor i
create the team_account_manager and assign the ehandle
to it.

Server side i can find the team_account_manager
through the ehandle just fine, cast it to my
(CTeamAccountManager*) type and use the functions.

Here is my problem:

Client side id like to find the team_account_manager
through the same ehandle, cast it to my
(C_TeamAccountManager*) type and use its functions.
Unfortunately i cannot find the entity through my
networked ehandle.

Is this the proper way to use an ehandle? Perhaps my
client side entity has a different ehandle? Maybe the
team_account_manager is not getting created on the
client? Maybe the ehandle is not getting networked
correctly?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] EHandles valid on server and client?

2006-05-29 Thread John Sheu
How are you creating the CTeamAccountManager server-side?  Directly
through its constructor, or through something else?

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders