Hi, I am trying to find really useful varaibles for TF2 (Using a server plugin), if anyone knows of any, it would really help. At the moment the only way to do this is a sortof reliable hack,
see here: http://wiki.alliedmods.net/Entity_Properties#Enumeration E.g. I found to get an ammo list, use : "CBasePlayer" and "m_iAmmo" for (int*) Ammo List TF2 Ammo lists: starting values in round brackets ammo list index in square brackets [code] Scout [1] Scatter gun (32) [2] Pistol (36) [3] ? (100) Sniper [1] Sniper Rifle (25) [2] Auto Rifle (75) [3] ? (100) Soldier [1] Rockets (16) [2] Shotgun (32) [3] ? (100) Demoman [1] Grenades (16) [2] Stickies (24) [3] ? (100) Medic [1] ?Syringe Gun? (150) [2] ?Syringe Gun? (150) [3] ? (100) HWGuy [1] Minigun (200) [2] Shotgun (32) [3] ? (100) Pyro [1] Flame (200) [2] Shotgun (32) [3] (100)? Spy [1] ? (20) [2] Pistol (24) [3] ? (100) Engineer [1] Shotgun (32) [2] Pistol ? (200) [3] Wrench ? (200) [/code] e.g. [code] int *CClassInterface :: getAmmoList ( edict_t *edict ) { static unsigned int offset = 0; if (!offset) offset = findOffset("m_iAmmo","CBasePlayer"); if (!offset) return NULL; IServerUnknown *pUnknown = (IServerUnknown *)edict->GetUnknown(); if (!pUnknown) { return NULL; } CBaseEntity *pEntity = pUnknown->GetBaseEntity(); return (int *)((char *)pEntity + offset); } unsigned int CClassInterface :: findOffset(const char *szType,const char *szClass) { ServerClass *sc = UTIL_FindServerClass(szClass); SendProp *pProp = UTIL_FindSendProp(sc->m_pTable, szType); if ( pProp ) return pProp->GetOffset(); return 0; } [/code] and use "CBaseEntity" and "m_iTeamNum" and I think "CBaseEntity" and "m_iHealth" to get health of any entity to get the team index (int) -------- Other things which would be really helpful will be things like Spy's disguise, cloaked, sentry ammo, Etc... Hope this helps others too, bye, [rcbot]Cheeseh _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

