Quote:
Originally Posted by BAILOPAN
No... the inheritance chain is roughly:
CCSPlayer -> CBasePlayer -> CBaseCombatCharacter -> CBaseEntity
Each CCSPlayer will use the CCSPlayer server class for networking.
You can go from edict_t to CBaseEntity pretty easily:
pEdict->GetUnknown()->GetBaseEntity()
And from index to edict_t:
engine->PEntityOfEntIndex(index)
|
Okie, and my apologies for my misunderstanding/confusion on this issue.
Here's what I've done.
CBaseEntity *playerEntity = pEdict->GetUnknown( )->GetBaseEntity( );
I know I need to get the offset for CCSPlayer::SwitchTeam( );
However, when I try to look the offset up using FindOffset, it finds CCSPlayer, but not SwitchTeam. I've also gone through the list of offset names it did find and couldn't find it.
Could you offer any suggestions on this?
Sorry again for all of the trouble, but thank you for your continued help.
-Rob