Being server-only is something that CLogicalEntity does. If you inherit from CBaseEntity you'll be fine, and switching shouldn't cause any problems.

http://developer.valvesoftware.com/wiki/Edict_t

On 15/02/2011 12:49, Bryan Abrams wrote:
I guess that'd explain why.

However, what could be a solution to drawing information from that entity? Would it be a possible solution to make another entity on the server? Do the entities that share information have to be inherited from the same type of class (I mean C_BaseEntity and CBaseEntity) or does it have to be an entity meant to share information?

The arena code isn't mine, so I don't want to actually modify it I just want to pull information from it.

2011/2/15 Saul Rennison <saul.renni...@gmail.com <mailto:saul.renni...@gmail.com>>

    Logical entities aren't networked afaik

    On Tuesday, 15 February 2011, Bryan Abrams <abrams....@gmail.com
    <mailto:abrams....@gmail.com>> wrote:
    > Hey Guys,
    > I've read over the wiki entry about Network entities and
    creating shared variables, but I can't really seem to get it to work.
    > The entity is already created on the server, an 'arena'. It
    inherits CLogicalEntity and contains information like the name of
    the field, id, etc etc. The data table for sharing information is
    setup.
    >
    > I want to be able to get this information from the server so I
    can display such things in a VGUI menu. The problem I'm having is
    I'm not sure how to actually setup the client side. I set the
    LINK_ENTITY_TO_CLASS( hammer_ent, C_ArenaEntity ) and I inherit
    C_BaseEntity. My first general impression was when that entity is
    found by the client on the map, then it establishes a class and
    because I have the client/server data tables it'll share the
    information (I've already created the network entities for such
    things.) When debugging the code however, as soon as the game
    starts it goes directly to the client datatable and never reaches
    during loading of the map, like the server side does.
    >
    > Maybe I'm just over analyzing it or making it a bit more
    difficult then it actually is, but I can't really seem to wrap my
    head around it. Any help at all would be great. Thank you!
    >

    --

    Thanks,
     - Saul.

    _______________________________________________
    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

Reply via email to