Reversed CBasePlayer and some function blending from animation.cpp

Fix line ending all files
This commit is contained in:
s1lentq 2015-07-13 02:32:09 +06:00
parent 32d9488658
commit ed2e465d2b
53 changed files with 17620 additions and 16775 deletions

File diff suppressed because it is too large Load Diff

View File

@ -50,19 +50,48 @@ float SetController(void *pmodel, entvars_t *pev, int iController, float flValue
NOBODY float SetBlending(void *pmodel, entvars_t *pev, int iBlender, float flValue);
NOBODY int FindTransition(void *pmodel, int iEndingAnim, int iGoalAnim, int *piDir);
NOBODY void SetBodygroup(void *pmodel, entvars_t *pev, int iGroup, int iValue);
NOBODY int GetBodygroup(void *pmodel, entvars_t *pev, int iGroup);
NOBODY int Server_GetBlendingInterface(int version, sv_blending_interface_s ** ppinterface, engine_studio_api_s *pstudio, float *rotationmatrix, float *bonetransform);
int GetBodygroup(void *pmodel, entvars_t *pev, int iGroup);
C_DLLEXPORT int Server_GetBlendingInterface(int version, struct sv_blending_interface_s **ppinterface, struct engine_studio_api_s *pstudio, float *rotationmatrix, float *bonetransform);
void AngleQuaternion(vec_t *angles, vec_t *quaternion);
NOBODY void QuaternionSlerp(vec_t *p, vec_t *q, float t, vec_t *qt);
NOBODY void QuaternionMatrix(vec_t *quaternion, float *matrix);
NOBODY mstudioanim_t *StudioGetAnim(model_t *m_pSubModel, mstudioseqdesc_t *pseqdesc);
NOBODY mstudioanim_t *LookupAnimation(studiohdr_t *pstudiohdr, model_s *model, mstudioseqdesc_t *pseqdesc, int index);
NOBODY void StudioCalcBoneAdj(float dadt, float *adj, const byte *pcontroller1, const byte *pcontroller2, byte mouthopen);
NOBODY void StudioCalcBoneQuaterion(int frame, float s, mstudiobone_t *pbone, mstudioanim_t *panim, float *adj, float *q);
NOBODY void StudioCalcBonePosition(int frame, float s, mstudiobone_t *pbone, mstudioanim_t *panim, float *adj, float *pos);
NOBODY void StudioSlerpBones(vec4_t *q1, vec3_t *pos1, vec4_t *q2, vec3_t *pos2, float s);
NOBODY void StudioCalcRotations(mstudiobone_t *pbones, int *chain, int chainlength, float *adj, float *pos, vec4_t *q, mstudioseqdesc_t *pseqdesc, mstudioanim_t *panim, float f, float s);
NOBODY void ConcatTransforms(float *in1, float *in2, float *out);
NOBODY void SV_StudioSetupBones(model_s *pModel, float frame, int sequence, const vec_t *angles, const vec_t *origin, const byte *pcontroller, const byte *pblending, int iBone, const edict_t *pEdict);
void QuaternionSlerp(vec_t *p, vec_t *q, float t, vec_t *qt);
NOBODY void QuaternionMatrix(vec_t *quaternion, float matrix[3][4]);
mstudioanim_t *StudioGetAnim(model_t *m_pSubModel, mstudioseqdesc_t *pseqdesc);
NOXREF mstudioanim_t *LookupAnimation(studiohdr_t *pstudiohdr, model_s *model, mstudioseqdesc_t *pseqdesc, int index);
void StudioCalcBoneAdj(float dadt, float *adj, const byte *pcontroller1, const byte *pcontroller2, byte mouthopen);
void StudioCalcBoneQuaterion(int frame, float s, mstudiobone_t *pbone, mstudioanim_t *panim, float *adj, float *q);
void StudioCalcBonePosition(int frame, float s, mstudiobone_t *pbone, mstudioanim_t *panim, float *adj, float *pos);
void StudioSlerpBones(vec4_t *q1, float pos1[][3], vec4_t *q2, float pos2[][3], float s);
NOXREF void StudioCalcRotations(mstudiobone_t *pbones, int *chain, int chainlength, float *adj, float pos[128][3], vec4_t *q, mstudioseqdesc_t *pseqdesc, mstudioanim_t *panim, float f, float s);
void ConcatTransforms(float in1[3][4], float in2[3][4], float out[3][4]);
NOBODY void SV_StudioSetupBones(struct model_s *pModel, float frame, int sequence, const vec_t *angles, const vec_t *origin, const byte *pcontroller, const byte *pblending, int iBone, const edict_t *pEdict);
#ifdef HOOK_GAMEDLL
#define svBlending (*psvBlending)
#define IEngineStudio (*pIEngineStudio)
#define g_pstudiohdr (*pg_pstudiohdr)
#define g_pRotationMatrix (*pg_pRotationMatrix)
#define g_pBoneTransform (*pg_pBoneTransform)
#define omega (*pomega)
#define cosom (*pcosom)
#define sinom (*psinom)
#define sclp (*psclp)
#define sclq (*psclq)
#endif // HOOK_GAMEDLL
extern struct sv_blending_interface_s svBlending;
extern server_studio_api_t IEngineStudio;
extern studiohdr_t *g_pstudiohdr;
extern float (*g_pRotationMatrix)[3][4];
extern float (*g_pBoneTransform)[128][3][4];
extern float omega;
extern float cosom;
extern float sinom;
extern float sclp;
extern float sclq;
// refs
extern void (*pQuaternionMatrix)(vec_t *quaternion, float matrix[3][4]);
#endif // ANIMATION_H

View File

@ -115,7 +115,7 @@ public:
}
BOOL HasConditions(int iConditions)
{
if(m_afConditions & iConditions)
if (m_afConditions & iConditions)
{
return TRUE;
}
@ -123,7 +123,7 @@ public:
}
BOOL HasAllConditions(int iConditions)
{
if((m_afConditions & iConditions) == iConditions)
if ((m_afConditions & iConditions) == iConditions)
{
return TRUE;
}
@ -139,7 +139,7 @@ public:
}
BOOL HasMemory(int iMemory)
{
if(m_afMemory & iMemory)
if (m_afMemory & iMemory)
{
return TRUE;
}
@ -147,7 +147,7 @@ public:
}
BOOL HasAllMemories(int iMemory)
{
if((m_afMemory & iMemory) == iMemory)
if ((m_afMemory & iMemory) == iMemory)
{
return TRUE;
}

View File

@ -6,10 +6,12 @@
#ifndef HOOK_GAMEDLL
BotPhraseManager *TheBotPhrases = NULL;
CBaseEntity *g_pSelectedZombieSpawn = NULL;
#else // HOOK_GAMEDLL
BotPhraseManager *TheBotPhrases;
CBaseEntity *g_pSelectedZombieSpawn;
#endif // HOOK_GAMEDLL

View File

@ -346,7 +346,7 @@ public:
/* <2fea95> ../cstrike/dlls/bot/cs_bot_chatter.h:298 */
inline int BotPhraseManager::FindPlaceIndex(Place where) const
{
for(int i = 0; i < m_placeCount; i++)
for (int i = 0; i < m_placeCount; i++)
{
if (m_placeStatementHistory[i].placeID == where)
return i;
@ -650,10 +650,12 @@ inline BotStatement *BotChatterInterface::GetStatement(void) const
#ifdef HOOK_GAMEDLL
#define TheBotPhrases (*pTheBotPhrases)
#define g_pSelectedZombieSpawn (*pg_pSelectedZombieSpawn)
#endif // HOOK_GAMEDLL
extern BotPhraseManager *TheBotPhrases;
extern CBaseEntity *g_pSelectedZombieSpawn;
/* <5c4dcf> ../cstrike/dlls/bot/cs_bot_chatter.h:604 */
inline void BotChatterInterface::Say(const char *phraseName, float lifetime, float delay)

View File

@ -225,7 +225,7 @@ public:
if (startArea == NULL)
return NULL;
for(int i = 0; i < m_zoneCount; i++)
for (int i = 0; i < m_zoneCount; i++)
{
if (m_zone[i].m_areaCount == 0)
continue;

View File

@ -580,7 +580,7 @@ NOBODY void SaveReadFields(SAVERESTOREDATA *pSaveData, const char *pname, void *
/* <31a74> ../cstrike/dlls/cbase.cpp:802 */
edict_t *EHANDLE::Get(void)
{
if(!m_pent || m_pent->serialnumber != m_serialnumber)
if (!m_pent || m_pent->serialnumber != m_serialnumber)
return NULL;
return m_pent;
@ -590,7 +590,7 @@ edict_t *EHANDLE::Get(void)
edict_t *EHANDLE::Set(edict_t *pent)
{
m_pent = pent;
if(pent)
if (pent)
m_serialnumber = pent->serialnumber;
return pent;
@ -605,7 +605,7 @@ EHANDLE::operator CBaseEntity *(void)
/* <31b30> ../cstrike/dlls/cbase.cpp:829 */
CBaseEntity *EHANDLE::operator=(CBaseEntity *pEntity)
{
if(pEntity)
if (pEntity)
{
m_pent = ENT(pEntity->pev);
if (m_pent)

View File

@ -442,22 +442,22 @@ public:
NOBODY virtual CBaseEntity *GetNextTarget(void);
virtual void Think(void)
{
if(m_pfnThink)
if (m_pfnThink)
(this->*m_pfnThink)();
}
virtual void Touch(CBaseEntity *pOther)
{
if(m_pfnTouch)
if (m_pfnTouch)
(this->*m_pfnTouch)(pOther);
}
virtual void Use(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType = USE_OFF, float value = 0.0f)
{
if(m_pfnUse)
if (m_pfnUse)
(this->*m_pfnUse)(pActivator, pCaller, useType, value);
}
virtual void Blocked(CBaseEntity *pOther)
{
if(m_pfnBlocked)
if (m_pfnBlocked)
(this->*m_pfnBlocked)(pOther);
}
virtual CBaseEntity *Respawn(void)
@ -544,14 +544,14 @@ public:
CBaseMonster *GetMonsterPointer(entvars_t *pevMonster)
{
CBaseEntity *pEntity = Instance(pevMonster);
if(pEntity)
if (pEntity)
return pEntity->MyMonsterPointer();
return NULL;
}
CBaseMonster *GetMonsterPointer(edict_t *pentMonster)
{
CBaseEntity *pEntity = Instance(pentMonster);
if(pEntity)
if (pEntity)
return pEntity->MyMonsterPointer();
return NULL;
}
@ -786,8 +786,8 @@ class CBaseToggle: public CBaseAnimating
{
public:
virtual void KeyValue(KeyValueData *pkvd);
NOBODY virtual int Save(CSave &save);
NOBODY virtual int Restore(CRestore &restore);
virtual int Save(CSave &save);
virtual int Restore(CRestore &restore);
virtual int GetToggleState(void)
{
return m_toggle_state;
@ -873,7 +873,7 @@ public:
int Restore_(CRestore &restore);
int ObjectCaps_(void)
{
if(pev->takedamage == DAMAGE_NO)
if (pev->takedamage == DAMAGE_NO)
return FCAP_IMPULSE_USE;
return (CBaseToggle::ObjectCaps() & ~FCAP_ACROSS_TRANSITION);
@ -1046,10 +1046,10 @@ public:
template <class T> T *GetClassPtr(T *a)
{
entvars_t *pev = (entvars_t *)a;
if(!pev)
if (!pev)
pev = VARS(CREATE_ENTITY());
a = (T *)GET_PRIVATE(ENT(pev));
if(!a)
if (!a)
{
a = new(pev) T;
a->pev = pev;

View File

@ -235,11 +235,14 @@ NOBODY TeamName SelectDefaultTeam(void)
}
/* <473a3> ../cstrike/dlls/client.cpp:638 */
NOBODY void CheckStartMoney(void)
void CheckStartMoney(void)
{
// {
// int money; // 640
// }
int money = (int)startmoney.value;
if (money > 16000)
CVAR_SET_FLOAT("mp_startmoney", 16000);
else if (money < 800)
CVAR_SET_FLOAT("mp_startmoney", 800);
}
/* <4c084> ../cstrike/dlls/client.cpp:661 */

View File

@ -125,7 +125,7 @@ NOBODY void ListPlayers(CBasePlayer *current);
NOBODY int CountTeamPlayers(int iTeam);
NOBODY void ProcessKickVote(CBasePlayer *pVotingPlayer, CBasePlayer *pKickPlayer);
NOBODY TeamName SelectDefaultTeam(void);
NOBODY void CheckStartMoney(void);
void CheckStartMoney(void);
NOBODY void ClientPutInServer(edict_t *pEntity);
NOBODY int Q_strlen_(const char *str);
NOBODY void Host_Say(edict_t *pEntity, int teamonly);

View File

@ -1,7 +1,7 @@
#include "precompiled.h"
#define GERMAN_GIB_COUNT 4
#define HUMAN_GIB_COUNT 6
#define HUMAN_GIB_COUNT 6
#define ALIEN_GIB_COUNT 4
/* <5f4cb> ../cstrike/dlls/combat.cpp:52 */

View File

@ -1,10 +1,10 @@
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
TYPEDESCRIPTION CBaseDoor::m_SaveData[] =
{
DEFINE_FIELD(CBaseDoor, m_bHealthValue, FIELD_CHARACTER),
@ -14,299 +14,299 @@ TYPEDESCRIPTION CBaseDoor::m_SaveData[] =
DEFINE_FIELD(CBaseDoor, m_bLockedSentence, FIELD_CHARACTER),
DEFINE_FIELD(CBaseDoor, m_bUnlockedSound, FIELD_CHARACTER),
DEFINE_FIELD(CBaseDoor, m_bUnlockedSentence, FIELD_CHARACTER),
};
};
TYPEDESCRIPTION CMomentaryDoor::m_SaveData[] =
{
DEFINE_FIELD(CMomentaryDoor, m_bMoveSnd, FIELD_CHARACTER),
};
#else
TYPEDESCRIPTION (*CBaseDoor::pm_SaveData)[7];
TYPEDESCRIPTION (*CMomentaryDoor::pm_SaveData)[1];
#endif // HOOK_GAMEDLL
/* <693c0> ../cstrike/dlls/doors.cpp:98 */
IMPLEMENT_SAVERESTORE(CBaseDoor, CBaseToggle);
/* <68561> ../cstrike/dlls/doors.cpp:112 */
NOBODY void PlayLockSounds(entvars_t *pev, locksound_t *pls, int flocked, int fbutton)
{
// {
// float flsoundwait; // 118
// {
// int fplaysound; // 127
// int fplaysentence; // 128
// float fvol; // 129
// {
// int iprev; // 148
// }
// }
// {
// int fplaysound; // 164
// int fplaysentence; // 165
// float fvol; // 166
// {
// int iprev; // 184
// }
// }
// }
}
/* <69a4f> ../cstrike/dlls/doors.cpp:201 */
NOBODY void CBaseDoor::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 204
// FStrEq(const char *sz1,
// const char *sz2); // 209
// KeyValue(CBaseDoor *const this,
// KeyValueData *pkvd); // 201
// atof(const char *__nptr); // 206
// atof(const char *__nptr); // 211
}
/* <69f8b> ../cstrike/dlls/doors.cpp:278 */
LINK_ENTITY_TO_CLASS(func_door, CBaseDoor);
/* <6a058> ../cstrike/dlls/doors.cpp:282 */
LINK_ENTITY_TO_CLASS(func_water, CBaseDoor);
/* <690bc> ../cstrike/dlls/doors.cpp:285 */
NOBODY void CBaseDoor::Spawn_(void)
{
// fabs(double __x); // 312
// fabs(double __x); // 312
// fabs(double __x); // 312
// operator*(const Vector *const this,
// float fl); // 312
// operator+(const Vector *const this,
// const Vector &v); // 312
}
/* <69949> ../cstrike/dlls/doors.cpp:334 */
NOBODY void CBaseDoor::Restart_(void)
{
}
/* <69289> ../cstrike/dlls/doors.cpp:350 */
NOBODY void CBaseDoor::SetToggleState_(int state)
{
// SetToggleState(CBaseDoor *const this,
// int state); // 350
}
#define noiseMoving noise1
#define noiseArrived noise2
/* <6924c> ../cstrike/dlls/doors.cpp:359 */
NOBODY void CBaseDoor::Precache_(void)
{
// {
// char *pszSound; // 361
// }
}
/* <6a3b8> ../cstrike/dlls/doors.cpp:508 */
NOBODY void CBaseDoor::DoorTouch(CBaseEntity *pOther)
{
// {
// entvars_t *pevToucher; // 510
// }
// DoorTouch(CBaseDoor *const this,
// class CBaseEntity *pOther); // 508
}
/* <6a33b> ../cstrike/dlls/doors.cpp:543 */
NOBODY void CBaseDoor::Use_(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value)
{
// DoorActivate(CBaseDoor *const this); // 548
}
/* <6a319> ../cstrike/dlls/doors.cpp:554 */
NOBODY int CBaseDoor::DoorActivate(void)
{
}
/* <6a125> ../cstrike/dlls/doors.cpp:588 */
NOBODY void CBaseDoor::DoorGoUp(void)
{
// {
// entvars_t *pevActivator; // 590
// bool isReversing; // 596
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 604
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 613
// {
// float sign; // 615
// {
// class Vector2D toActivator; // 626
// float loX; // 628
// float loY; // 629
// float hiX; // 630
// float hiY; // 631
// float momentArmX; // 633
// float momentArmY; // 634
// }
// operator*(const Vector *const this,
// float fl); // 712
// }
// Vector(Vector *const this,
// const Vector &v); // 715
// }
}
/* <6940c> ../cstrike/dlls/doors.cpp:721 */
NOBODY void CBaseDoor::DoorHitTop(void)
{
// STOP_SOUND(edict_t *entity,
// int channel,
// const char *sample); // 725
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 726
}
/* <697ad> ../cstrike/dlls/doors.cpp:762 */
NOBODY void CBaseDoor::DoorGoDown(void)
{
// {
// bool isReversing; // 765
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 770
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 782
// Vector(Vector *const this,
// const Vector &v); // 785
// Vector(Vector *const this,
// const Vector &v); // 783
// }
}
/* <694a5> ../cstrike/dlls/doors.cpp:791 */
NOBODY void CBaseDoor::DoorHitBottom(void)
{
// STOP_SOUND(edict_t *entity,
// int channel,
// const char *sample); // 795
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 796
}
/* <6a465> ../cstrike/dlls/doors.cpp:817 */
NOBODY void CBaseDoor::Blocked_(CBaseEntity *pOther)
{
// {
// edict_t *pentTarget; // 819
// class CBaseDoor *pDoor; // 820
// float const checkBlockedInterval; // 827
// }
// Blocked(CBaseDoor *const this,
// class CBaseEntity *pOther); // 817
}
/* <6a767> ../cstrike/dlls/doors.cpp:943 */
LINK_ENTITY_TO_CLASS(func_door_rotating, CRotDoor);
/* <698be> ../cstrike/dlls/doors.cpp:946 */
NOBODY void CRotDoor::Restart_(void)
{
// operator*(const Vector ::Restart(// float fl); // 953
// {
// Vector vecSav; // 967
// operator*(const Vector *const this,
// float fl); // 970
// }
}
/* <69177> ../cstrike/dlls/doors.cpp:978 */
NOBODY void CRotDoor::Spawn_(void)
{
// operator*(const class Vector *const this,
// float fl); // 986
// operator*(const Vector *const this,
// float fl); // 990
// operator+(const Vector *const this,
// const Vector &v); // 990
// {
// Vector vecSav; // 1011
// operator*(const Vector *const this,
// float fl); // 1014
// }
}
/* <68fcc> ../cstrike/dlls/doors.cpp:1028 */
NOBODY void CRotDoor::SetToggleState_(int state)
{
}
/* <6a834> ../cstrike/dlls/doors.cpp:1056 */
LINK_ENTITY_TO_CLASS(momentary_door, CMomentaryDoor);
/* <69373> ../cstrike/dlls/doors.cpp:1063 */
IMPLEMENT_SAVERESTORE(CMomentaryDoor, CBaseToggle);
/* <69001> ../cstrike/dlls/doors.cpp:1065 */
NOBODY void CMomentaryDoor::Spawn_(void)
{
// fabs(double __x); // 1082
// fabs(double __x); // 1082
// fabs(double __x); // 1082
// operator*(const Vector *const this,
// float fl); // 1082
// operator+(const Vector *const this,
// const Vector &v); // 1082
}
/* <68fa5> ../cstrike/dlls/doors.cpp:1096 */
NOBODY void CMomentaryDoor::Precache_(void)
{
}
/* <69970> ../cstrike/dlls/doors.cpp:1143 */
NOBODY void CMomentaryDoor::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 1146
// FStrEq(const char *sz1,
// const char *sz2); // 1151
// FStrEq(const char *sz1,
// const char *sz2); // 1156
// KeyValue(CMomentaryDoor *const this,
// KeyValueData *pkvd); // 1143
}
/* <6953e> ../cstrike/dlls/doors.cpp:1165 */
NOBODY void CMomentaryDoor::Use_(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value)
{
// {
// Vector move; // 1172
// Vector delta; // 1174
// float speed; // 1175
// }
// Use(CMomentaryDoor *const this,
// class CBaseEntity *pActivator,
// class CBaseEntity *pCaller,
// USE_TYPE useType,
// float value); // 1165
}
#ifdef HOOK_GAMEDLL
};
#else
TYPEDESCRIPTION (*CBaseDoor::pm_SaveData)[7];
TYPEDESCRIPTION (*CMomentaryDoor::pm_SaveData)[1];
#endif // HOOK_GAMEDLL
/* <693c0> ../cstrike/dlls/doors.cpp:98 */
IMPLEMENT_SAVERESTORE(CBaseDoor, CBaseToggle);
/* <68561> ../cstrike/dlls/doors.cpp:112 */
NOBODY void PlayLockSounds(entvars_t *pev, locksound_t *pls, int flocked, int fbutton)
{
// {
// float flsoundwait; // 118
// {
// int fplaysound; // 127
// int fplaysentence; // 128
// float fvol; // 129
// {
// int iprev; // 148
// }
// }
// {
// int fplaysound; // 164
// int fplaysentence; // 165
// float fvol; // 166
// {
// int iprev; // 184
// }
// }
// }
}
/* <69a4f> ../cstrike/dlls/doors.cpp:201 */
NOBODY void CBaseDoor::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 204
// FStrEq(const char *sz1,
// const char *sz2); // 209
// KeyValue(CBaseDoor *const this,
// KeyValueData *pkvd); // 201
// atof(const char *__nptr); // 206
// atof(const char *__nptr); // 211
}
/* <69f8b> ../cstrike/dlls/doors.cpp:278 */
LINK_ENTITY_TO_CLASS(func_door, CBaseDoor);
/* <6a058> ../cstrike/dlls/doors.cpp:282 */
LINK_ENTITY_TO_CLASS(func_water, CBaseDoor);
/* <690bc> ../cstrike/dlls/doors.cpp:285 */
NOBODY void CBaseDoor::Spawn_(void)
{
// fabs(double __x); // 312
// fabs(double __x); // 312
// fabs(double __x); // 312
// operator*(const Vector *const this,
// float fl); // 312
// operator+(const Vector *const this,
// const Vector &v); // 312
}
/* <69949> ../cstrike/dlls/doors.cpp:334 */
NOBODY void CBaseDoor::Restart_(void)
{
}
/* <69289> ../cstrike/dlls/doors.cpp:350 */
NOBODY void CBaseDoor::SetToggleState_(int state)
{
// SetToggleState(CBaseDoor *const this,
// int state); // 350
}
#define noiseMoving noise1
#define noiseArrived noise2
/* <6924c> ../cstrike/dlls/doors.cpp:359 */
NOBODY void CBaseDoor::Precache_(void)
{
// {
// char *pszSound; // 361
// }
}
/* <6a3b8> ../cstrike/dlls/doors.cpp:508 */
NOBODY void CBaseDoor::DoorTouch(CBaseEntity *pOther)
{
// {
// entvars_t *pevToucher; // 510
// }
// DoorTouch(CBaseDoor *const this,
// class CBaseEntity *pOther); // 508
}
/* <6a33b> ../cstrike/dlls/doors.cpp:543 */
NOBODY void CBaseDoor::Use_(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value)
{
// DoorActivate(CBaseDoor *const this); // 548
}
/* <6a319> ../cstrike/dlls/doors.cpp:554 */
NOBODY int CBaseDoor::DoorActivate(void)
{
}
/* <6a125> ../cstrike/dlls/doors.cpp:588 */
NOBODY void CBaseDoor::DoorGoUp(void)
{
// {
// entvars_t *pevActivator; // 590
// bool isReversing; // 596
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 604
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 613
// {
// float sign; // 615
// {
// class Vector2D toActivator; // 626
// float loX; // 628
// float loY; // 629
// float hiX; // 630
// float hiY; // 631
// float momentArmX; // 633
// float momentArmY; // 634
// }
// operator*(const Vector *const this,
// float fl); // 712
// }
// Vector(Vector *const this,
// const Vector &v); // 715
// }
}
/* <6940c> ../cstrike/dlls/doors.cpp:721 */
NOBODY void CBaseDoor::DoorHitTop(void)
{
// STOP_SOUND(edict_t *entity,
// int channel,
// const char *sample); // 725
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 726
}
/* <697ad> ../cstrike/dlls/doors.cpp:762 */
NOBODY void CBaseDoor::DoorGoDown(void)
{
// {
// bool isReversing; // 765
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 770
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 782
// Vector(Vector *const this,
// const Vector &v); // 785
// Vector(Vector *const this,
// const Vector &v); // 783
// }
}
/* <694a5> ../cstrike/dlls/doors.cpp:791 */
NOBODY void CBaseDoor::DoorHitBottom(void)
{
// STOP_SOUND(edict_t *entity,
// int channel,
// const char *sample); // 795
// EMIT_SOUND(edict_t *entity,
// int channel,
// const char *sample,
// float volume,
// float attenuation); // 796
}
/* <6a465> ../cstrike/dlls/doors.cpp:817 */
NOBODY void CBaseDoor::Blocked_(CBaseEntity *pOther)
{
// {
// edict_t *pentTarget; // 819
// class CBaseDoor *pDoor; // 820
// float const checkBlockedInterval; // 827
// }
// Blocked(CBaseDoor *const this,
// class CBaseEntity *pOther); // 817
}
/* <6a767> ../cstrike/dlls/doors.cpp:943 */
LINK_ENTITY_TO_CLASS(func_door_rotating, CRotDoor);
/* <698be> ../cstrike/dlls/doors.cpp:946 */
NOBODY void CRotDoor::Restart_(void)
{
// operator*(const Vector ::Restart(// float fl); // 953
// {
// Vector vecSav; // 967
// operator*(const Vector *const this,
// float fl); // 970
// }
}
/* <69177> ../cstrike/dlls/doors.cpp:978 */
NOBODY void CRotDoor::Spawn_(void)
{
// operator*(const class Vector *const this,
// float fl); // 986
// operator*(const Vector *const this,
// float fl); // 990
// operator+(const Vector *const this,
// const Vector &v); // 990
// {
// Vector vecSav; // 1011
// operator*(const Vector *const this,
// float fl); // 1014
// }
}
/* <68fcc> ../cstrike/dlls/doors.cpp:1028 */
NOBODY void CRotDoor::SetToggleState_(int state)
{
}
/* <6a834> ../cstrike/dlls/doors.cpp:1056 */
LINK_ENTITY_TO_CLASS(momentary_door, CMomentaryDoor);
/* <69373> ../cstrike/dlls/doors.cpp:1063 */
IMPLEMENT_SAVERESTORE(CMomentaryDoor, CBaseToggle);
/* <69001> ../cstrike/dlls/doors.cpp:1065 */
NOBODY void CMomentaryDoor::Spawn_(void)
{
// fabs(double __x); // 1082
// fabs(double __x); // 1082
// fabs(double __x); // 1082
// operator*(const Vector *const this,
// float fl); // 1082
// operator+(const Vector *const this,
// const Vector &v); // 1082
}
/* <68fa5> ../cstrike/dlls/doors.cpp:1096 */
NOBODY void CMomentaryDoor::Precache_(void)
{
}
/* <69970> ../cstrike/dlls/doors.cpp:1143 */
NOBODY void CMomentaryDoor::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 1146
// FStrEq(const char *sz1,
// const char *sz2); // 1151
// FStrEq(const char *sz1,
// const char *sz2); // 1156
// KeyValue(CMomentaryDoor *const this,
// KeyValueData *pkvd); // 1143
}
/* <6953e> ../cstrike/dlls/doors.cpp:1165 */
NOBODY void CMomentaryDoor::Use_(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value)
{
// {
// Vector move; // 1172
// Vector delta; // 1174
// float speed; // 1175
// }
// Use(CMomentaryDoor *const this,
// class CBaseEntity *pActivator,
// class CBaseEntity *pCaller,
// USE_TYPE useType,
// float value); // 1165
}
#ifdef HOOK_GAMEDLL
void CBaseDoor::Spawn(void)
{
Spawn_();
@ -351,7 +351,7 @@ void CBaseDoor::Blocked(CBaseEntity *pOther)
{
Blocked_(pOther);
}
void CRotDoor::Spawn(void)
{
Spawn_();
@ -365,8 +365,8 @@ void CRotDoor::Restart(void)
void CRotDoor::SetToggleState(int state)
{
SetToggleState_(state);
}
}
void CMomentaryDoor::Spawn(void)
{
Spawn_();
@ -395,6 +395,6 @@ int CMomentaryDoor::Restore(CRestore &restore)
void CMomentaryDoor::Use(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value)
{
Use_(pActivator, pCaller, useType, value);
}
#endif // HOOK_GAMEDLL
}
#endif // HOOK_GAMEDLL

File diff suppressed because it is too large Load Diff

View File

@ -1,500 +1,500 @@
#include "precompiled.h"
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
cvar_t *g_psv_gravity = NULL;
cvar_t *g_psv_aim = NULL;
cvar_t *g_footsteps = NULL;
cvar_t *g_psv_accelerate = NULL;
cvar_t *g_psv_friction = NULL;
cvar_t *g_psv_stopspeed = NULL;
cvar_t displaysoundlist = { "displaysoundlist", "0" };
cvar_t timelimit = { "mp_timelimit", "0", FCVAR_SERVER };
cvar_t flashlight = { "mp_flashlight", "0", FCVAR_SERVER };
cvar_t decalfrequency = { "decalfrequency", "30", FCVAR_SERVER };
cvar_t fadetoblack = { "mp_fadetoblack", "0", FCVAR_SERVER };
cvar_t fragsleft = { "mp_fragsleft", "", FCVAR_SERVER|FCVAR_UNLOGGED };
cvar_t timeleft = { "mp_timeleft", "0", FCVAR_SERVER|FCVAR_UNLOGGED };
cvar_t friendlyfire = { "mp_friendlyfire", "0", FCVAR_SERVER };
cvar_t allowmonsters = { "mp_allowmonsters", "0", FCVAR_SERVER };
cvar_t roundtime = { "mp_roundtime", "5", FCVAR_SERVER };
cvar_t buytime = { "mp_buytime", "1.5", FCVAR_SERVER };
cvar_t freezetime = { "mp_freezetime", "6", FCVAR_SERVER };
cvar_t c4timer = { "mp_c4timer", "45", FCVAR_SERVER };
cvar_t ghostfrequency = { "mp_ghostfrequency", "0.1", FCVAR_SERVER };
cvar_t autokick = { "mp_autokick", "1", FCVAR_SERVER };
cvar_t autokick_timeout = { "mp_autokick_timeout", "-1", FCVAR_SERVER };
cvar_t restartround = { "sv_restartround", "0", FCVAR_SERVER };
cvar_t sv_restart = { "sv_restart", "0", FCVAR_SERVER };
cvar_t limitteams = { "mp_limitteams", "2", FCVAR_SERVER };
cvar_t autoteambalance = { "mp_autoteambalance", "1", FCVAR_SERVER };
cvar_t tkpunish = { "mp_tkpunish", "0", FCVAR_SERVER };
cvar_t hostagepenalty = { "mp_hostagepenalty", "13", FCVAR_SERVER };
cvar_t mirrordamage = { "mp_mirrordamage", "0", FCVAR_SERVER };
cvar_t logmessages = { "mp_logmessages", "1", FCVAR_SERVER };
cvar_t forcecamera = { "mp_forcecamera", "0", FCVAR_SERVER };
cvar_t forcechasecam = { "mp_forcechasecam", "0", FCVAR_SERVER };
cvar_t mapvoteratio = { "mp_mapvoteratio", "0.66", FCVAR_SERVER };
cvar_t logdetail = { "mp_logdetail", "0", FCVAR_SERVER };
cvar_t startmoney = { "mp_startmoney", "800", FCVAR_SERVER };
cvar_t maxrounds = { "mp_maxrounds", "0", FCVAR_SERVER };
cvar_t winlimit = { "mp_winlimit", "0", FCVAR_SERVER };
cvar_t windifference = { "mp_windifference", "1", FCVAR_SERVER };
cvar_t playerid = { "mp_playerid", "0", FCVAR_SERVER };
cvar_t allow_spectators = { "allow_spectators", "1.0", FCVAR_SERVER };
cvar_t mp_chattime = { "mp_chattime", "10", FCVAR_SERVER };
cvar_t kick_percent = { "mp_kickpercent", "0.66", FCVAR_SERVER };
cvar_t humans_join_team = { "humans_join_team", "0", FCVAR_SERVER };
cvar_t sk_plr_9mm_bullet1 = { "sk_plr_9mm_bullet1", "0" };
cvar_t sk_plr_9mm_bullet2 = { "sk_plr_9mm_bullet2", "0" };
cvar_t sk_plr_9mm_bullet3 = { "sk_plr_9mm_bullet3", "0" };
cvar_t sk_plr_357_bullet1 = { "sk_plr_357_bullet1", "0" };
cvar_t sk_plr_357_bullet2 = { "sk_plr_357_bullet2", "0" };
cvar_t sk_plr_357_bullet3 = { "sk_plr_357_bullet3", "0" };
cvar_t sk_plr_9mmAR_bullet1 = { "sk_plr_9mmAR_bullet1", "0" };
cvar_t sk_plr_9mmAR_bullet2 = { "sk_plr_9mmAR_bullet2", "0" };
cvar_t sk_plr_9mmAR_bullet3 = { "sk_plr_9mmAR_bullet3", "0" };
cvar_t sk_plr_9mmAR_grenade1 = { "sk_plr_9mmAR_grenade1", "0" };
cvar_t sk_plr_9mmAR_grenade2 = { "sk_plr_9mmAR_grenade2", "0" };
cvar_t sk_plr_9mmAR_grenade3 = { "sk_plr_9mmAR_grenade3", "0" };
cvar_t sk_plr_buckshot1 = { "sk_plr_buckshot1", "0" };
cvar_t sk_plr_buckshot2 = { "sk_plr_buckshot2", "0" };
cvar_t sk_plr_buckshot3 = { "sk_plr_buckshot3", "0" };
cvar_t sk_plr_rpg1 = { "sk_plr_rpg1", "0" };
cvar_t sk_plr_rpg2 = { "sk_plr_rpg2", "0" };
cvar_t sk_plr_rpg3 = { "sk_plr_rpg3", "0" };
cvar_t sk_12mm_bullet1 = { "sk_12mm_bullet1", "0" };
cvar_t sk_12mm_bullet2 = { "sk_12mm_bullet2", "0" };
cvar_t sk_12mm_bullet3 = { "sk_12mm_bullet3", "0" };
cvar_t sk_9mmAR_bullet1 = { "sk_9mmAR_bullet1", "0" };
cvar_t sk_9mmAR_bullet2 = { "sk_9mmAR_bullet2", "0" };
cvar_t sk_9mmAR_bullet3 = { "sk_9mmAR_bullet3", "0" };
cvar_t sk_9mm_bullet1 = { "sk_9mm_bullet1", "0" };
cvar_t sk_9mm_bullet2 = { "sk_9mm_bullet2", "0" };
cvar_t sk_9mm_bullet3 = { "sk_9mm_bullet3", "0" };
cvar_t sk_suitcharger1 = { "sk_suitcharger1", "0" };
cvar_t sk_suitcharger2 = { "sk_suitcharger2", "0" };
cvar_t sk_suitcharger3 = { "sk_suitcharger3", "0" };
cvar_t sk_battery1 = { "sk_battery1", "0" };
cvar_t sk_battery2 = { "sk_battery2", "0" };
cvar_t sk_battery3 = { "sk_battery3", "0" };
cvar_t sk_healthcharger1 = { "sk_healthcharger1", "0" };
cvar_t sk_healthcharger2 = { "sk_healthcharger2", "0" };
cvar_t sk_healthcharger3 = { "sk_healthcharger3", "0" };
cvar_t sk_healthkit1 = { "sk_healthkit1", "0" };
cvar_t sk_healthkit2 = { "sk_healthkit2", "0" };
cvar_t sk_healthkit3 = { "sk_healthkit3", "0" };
cvar_t sk_scientist_heal1 = { "sk_scientist_heal1", "0" };
cvar_t sk_scientist_heal2 = { "sk_scientist_heal2", "0" };
cvar_t sk_scientist_heal3 = { "sk_scientist_heal3", "0" };
#else //HOOK_GAMEDLL
cvar_t *g_psv_gravity;
cvar_t *g_psv_aim;
cvar_t *g_footsteps;
cvar_t *g_psv_accelerate;
cvar_t *g_psv_friction;
cvar_t *g_psv_stopspeed;
cvar_t displaysoundlist;
cvar_t timelimit;
cvar_t flashlight;
cvar_t decalfrequency;
cvar_t fadetoblack;
cvar_t fragsleft;
cvar_t timeleft;
cvar_t friendlyfire;
cvar_t allowmonsters;
cvar_t roundtime;
cvar_t buytime;
cvar_t freezetime;
cvar_t c4timer;
cvar_t ghostfrequency;
cvar_t autokick;
cvar_t autokick_timeout;
cvar_t restartround;
cvar_t sv_restart;
cvar_t limitteams;
cvar_t autoteambalance;
cvar_t tkpunish;
cvar_t hostagepenalty;
cvar_t mirrordamage;
cvar_t logmessages;
cvar_t forcecamera;
cvar_t forcechasecam;
cvar_t mapvoteratio;
cvar_t logdetail;
cvar_t startmoney;
cvar_t maxrounds;
cvar_t winlimit;
cvar_t windifference;
cvar_t playerid;
cvar_t allow_spectators;
cvar_t mp_chattime;
cvar_t kick_percent;
cvar_t humans_join_team;
// NOXREF
//cvar_t sk_agrunt_health1;
//cvar_t sk_agrunt_health2;
//cvar_t sk_agrunt_health3;
//cvar_t sk_agrunt_dmg_punch1;
//cvar_t sk_agrunt_dmg_punch2;
//cvar_t sk_agrunt_dmg_punch3;
//cvar_t sk_apache_health1;
//cvar_t sk_apache_health2;
//cvar_t sk_apache_health3;
//cvar_t sk_barney_health1;
//cvar_t sk_barney_health2;
//cvar_t sk_barney_health3;
//cvar_t sk_bullsquid_health1;
//cvar_t sk_bullsquid_health2;
//cvar_t sk_bullsquid_health3;
//cvar_t sk_bullsquid_dmg_bite1;
//cvar_t sk_bullsquid_dmg_bite2;
//cvar_t sk_bullsquid_dmg_bite3;
//cvar_t sk_bullsquid_dmg_whip1;
//cvar_t sk_bullsquid_dmg_whip2;
//cvar_t sk_bullsquid_dmg_whip3;
//cvar_t sk_bullsquid_dmg_spit1;
//cvar_t sk_bullsquid_dmg_spit2;
//cvar_t sk_bullsquid_dmg_spit3;
//cvar_t sk_bigmomma_health_factor1;
//cvar_t sk_bigmomma_health_factor2;
//cvar_t sk_bigmomma_health_factor3;
//cvar_t sk_bigmomma_dmg_slash1;
//cvar_t sk_bigmomma_dmg_slash2;
//cvar_t sk_bigmomma_dmg_slash3;
//cvar_t sk_bigmomma_dmg_blast1;
//cvar_t sk_bigmomma_dmg_blast2;
//cvar_t sk_bigmomma_dmg_blast3;
//cvar_t sk_bigmomma_radius_blast1;
//cvar_t sk_bigmomma_radius_blast2;
//cvar_t sk_bigmomma_radius_blast3;
//cvar_t sk_gargantua_health1;
//cvar_t sk_gargantua_health2;
//cvar_t sk_gargantua_health3;
//cvar_t sk_gargantua_dmg_slash1;
//cvar_t sk_gargantua_dmg_slash2;
//cvar_t sk_gargantua_dmg_slash3;
//cvar_t sk_gargantua_dmg_fire1;
//cvar_t sk_gargantua_dmg_fire2;
//cvar_t sk_gargantua_dmg_fire3;
//cvar_t sk_gargantua_dmg_stomp1;
//cvar_t sk_gargantua_dmg_stomp2;
//cvar_t sk_gargantua_dmg_stomp3;
//cvar_t sk_hassassin_health1;
//cvar_t sk_hassassin_health2;
//cvar_t sk_hassassin_health3;
//cvar_t sk_headcrab_health1;
//cvar_t sk_headcrab_health2;
//cvar_t sk_headcrab_health3;
//cvar_t sk_headcrab_dmg_bite1;
//cvar_t sk_headcrab_dmg_bite2;
//cvar_t sk_headcrab_dmg_bite3;
//cvar_t sk_hgrunt_health1;
//cvar_t sk_hgrunt_health2;
//cvar_t sk_hgrunt_health3;
//cvar_t sk_hgrunt_kick1;
//cvar_t sk_hgrunt_kick2;
//cvar_t sk_hgrunt_kick3;
//cvar_t sk_hgrunt_pellets1;
//cvar_t sk_hgrunt_pellets2;
//cvar_t sk_hgrunt_pellets3;
//cvar_t sk_hgrunt_gspeed1;
//cvar_t sk_hgrunt_gspeed2;
//cvar_t sk_hgrunt_gspeed3;
//cvar_t sk_houndeye_health1;
//cvar_t sk_houndeye_health2;
//cvar_t sk_houndeye_health3;
//cvar_t sk_houndeye_dmg_blast1;
//cvar_t sk_houndeye_dmg_blast2;
//cvar_t sk_houndeye_dmg_blast3;
//cvar_t sk_islave_health1;
//cvar_t sk_islave_health2;
//cvar_t sk_islave_health3;
//cvar_t sk_islave_dmg_claw1;
//cvar_t sk_islave_dmg_claw2;
//cvar_t sk_islave_dmg_claw3;
//cvar_t sk_islave_dmg_clawrake1;
//cvar_t sk_islave_dmg_clawrake2;
//cvar_t sk_islave_dmg_clawrake3;
//cvar_t sk_islave_dmg_zap1;
//cvar_t sk_islave_dmg_zap2;
//cvar_t sk_islave_dmg_zap3;
//cvar_t sk_ichthyosaur_health1;
//cvar_t sk_ichthyosaur_health2;
//cvar_t sk_ichthyosaur_health3;
//cvar_t sk_ichthyosaur_shake1;
//cvar_t sk_ichthyosaur_shake2;
//cvar_t sk_ichthyosaur_shake3;
//cvar_t sk_leech_health1;
//cvar_t sk_leech_health2;
//cvar_t sk_leech_health3;
//cvar_t sk_leech_dmg_bite1;
//cvar_t sk_leech_dmg_bite2;
//cvar_t sk_leech_dmg_bite3;
//cvar_t sk_controller_health1;
//cvar_t sk_controller_health2;
//cvar_t sk_controller_health3;
//cvar_t sk_controller_dmgzap1;
//cvar_t sk_controller_dmgzap2;
//cvar_t sk_controller_dmgzap3;
//cvar_t sk_controller_speedball1;
//cvar_t sk_controller_speedball2;
//cvar_t sk_controller_speedball3;
//cvar_t sk_controller_dmgball1;
//cvar_t sk_controller_dmgball2;
//cvar_t sk_controller_dmgball3;
//cvar_t sk_nihilanth_health1;
//cvar_t sk_nihilanth_health2;
//cvar_t sk_nihilanth_health3;
//cvar_t sk_nihilanth_zap1;
//cvar_t sk_nihilanth_zap2;
//cvar_t sk_nihilanth_zap3;
//cvar_t sk_scientist_health1;
//cvar_t sk_scientist_health2;
//cvar_t sk_scientist_health3;
//cvar_t sk_snark_health1;
//cvar_t sk_snark_health2;
//cvar_t sk_snark_health3;
//cvar_t sk_snark_dmg_bite1;
//cvar_t sk_snark_dmg_bite2;
//cvar_t sk_snark_dmg_bite3;
//cvar_t sk_snark_dmg_pop1;
//cvar_t sk_snark_dmg_pop2;
//cvar_t sk_snark_dmg_pop3;
//cvar_t sk_zombie_health1;
//cvar_t sk_zombie_health2;
//cvar_t sk_zombie_health3;
//cvar_t sk_zombie_dmg_one_slash1;
//cvar_t sk_zombie_dmg_one_slash2;
//cvar_t sk_zombie_dmg_one_slash3;
//cvar_t sk_zombie_dmg_both_slash1;
//cvar_t sk_zombie_dmg_both_slash2;
//cvar_t sk_zombie_dmg_both_slash3;
//cvar_t sk_turret_health1;
//cvar_t sk_turret_health2;
//cvar_t sk_turret_health3;
//cvar_t sk_miniturret_health1;
//cvar_t sk_miniturret_health2;
//cvar_t sk_miniturret_health3;
//cvar_t sk_sentry_health1;
//cvar_t sk_sentry_health2;
//cvar_t sk_sentry_health3;
//cvar_t sk_plr_crowbar1;
//cvar_t sk_plr_crowbar2;
//cvar_t sk_plr_crowbar3;
cvar_t sk_plr_9mm_bullet1;
cvar_t sk_plr_9mm_bullet2;
cvar_t sk_plr_9mm_bullet3;
cvar_t sk_plr_357_bullet1;
cvar_t sk_plr_357_bullet2;
cvar_t sk_plr_357_bullet3;
cvar_t sk_plr_9mmAR_bullet1;
cvar_t sk_plr_9mmAR_bullet2;
cvar_t sk_plr_9mmAR_bullet3;
cvar_t sk_plr_9mmAR_grenade1;
cvar_t sk_plr_9mmAR_grenade2;
cvar_t sk_plr_9mmAR_grenade3;
cvar_t sk_plr_buckshot1;
cvar_t sk_plr_buckshot2;
cvar_t sk_plr_buckshot3;
// NOXREF
//cvar_t sk_plr_xbow_bolt_client1;
//cvar_t sk_plr_xbow_bolt_client2;
//cvar_t sk_plr_xbow_bolt_client3;
//cvar_t sk_plr_xbow_bolt_monster1;
//cvar_t sk_plr_xbow_bolt_monster2;
//cvar_t sk_plr_xbow_bolt_monster3;
cvar_t sk_plr_rpg1;
cvar_t sk_plr_rpg2;
cvar_t sk_plr_rpg3;
// NOXREF
//cvar_t sk_plr_gauss1;
//cvar_t sk_plr_gauss2;
//cvar_t sk_plr_gauss3;
//cvar_t sk_plr_egon_narrow1;
//cvar_t sk_plr_egon_narrow2;
//cvar_t sk_plr_egon_narrow3;
//cvar_t sk_plr_egon_wide1;
//cvar_t sk_plr_egon_wide2;
//cvar_t sk_plr_egon_wide3;
//cvar_t sk_plr_hand_grenade1;
//cvar_t sk_plr_hand_grenade2;
//cvar_t sk_plr_hand_grenade3;
//cvar_t sk_plr_satchel1;
//cvar_t sk_plr_satchel2;
//cvar_t sk_plr_satchel3;
//cvar_t sk_plr_tripmine1;
//cvar_t sk_plr_tripmine2;
//cvar_t sk_plr_tripmine3;
cvar_t sk_12mm_bullet1;
cvar_t sk_12mm_bullet2;
cvar_t sk_12mm_bullet3;
cvar_t sk_9mmAR_bullet1;
cvar_t sk_9mmAR_bullet2;
cvar_t sk_9mmAR_bullet3;
cvar_t sk_9mm_bullet1;
cvar_t sk_9mm_bullet2;
cvar_t sk_9mm_bullet3;
// NOXREF
//cvar_t sk_hornet_dmg1;
//cvar_t sk_hornet_dmg2;
//cvar_t sk_hornet_dmg3;
cvar_t sk_suitcharger1;
cvar_t sk_suitcharger2;
cvar_t sk_suitcharger3;
cvar_t sk_battery1;
cvar_t sk_battery2;
cvar_t sk_battery3;
cvar_t sk_healthcharger1;
cvar_t sk_healthcharger2;
cvar_t sk_healthcharger3;
cvar_t sk_healthkit1;
cvar_t sk_healthkit2;
cvar_t sk_healthkit3;
cvar_t sk_scientist_heal1;
cvar_t sk_scientist_heal2;
cvar_t sk_scientist_heal3;
// NOXREF
//cvar_t sk_monster_head1;
//cvar_t sk_monster_head2;
//cvar_t sk_monster_head3;
//cvar_t sk_monster_chest1;
//cvar_t sk_monster_chest2;
//cvar_t sk_monster_chest3;
//cvar_t sk_monster_stomach1;
//cvar_t sk_monster_stomach2;
//cvar_t sk_monster_stomach3;
//cvar_t sk_monster_arm1;
//cvar_t sk_monster_arm2;
//cvar_t sk_monster_arm3;
//cvar_t sk_monster_leg1;
//cvar_t sk_monster_leg2;
//cvar_t sk_monster_leg3;
//cvar_t sk_player_head1;
//cvar_t sk_player_head2;
//cvar_t sk_player_head3;
//cvar_t sk_player_chest1;
//cvar_t sk_player_chest2;
//cvar_t sk_player_chest3;
//cvar_t sk_player_stomach1;
//cvar_t sk_player_stomach2;
//cvar_t sk_player_stomach3;
//cvar_t sk_player_arm1;
//cvar_t sk_player_arm2;
//cvar_t sk_player_arm3;
//cvar_t sk_player_leg1;
//cvar_t sk_player_leg2;
//cvar_t sk_player_leg3;
#endif //HOOK_GAMEDLL
/* <9c900> ../cstrike/dlls/game.cpp:500 */
void GameDLLInit(void)
{
g_psv_gravity = CVAR_GET_POINTER("sv_gravity");
g_psv_aim = CVAR_GET_POINTER("sv_aim");
g_footsteps = CVAR_GET_POINTER("mp_footsteps");
g_psv_accelerate = CVAR_GET_POINTER("sv_accelerate");
g_psv_friction = CVAR_GET_POINTER("sv_friction");
g_psv_stopspeed = CVAR_GET_POINTER("sv_stopspeed");
CVAR_REGISTER(&displaysoundlist);
CVAR_REGISTER(&timelimit);
CVAR_REGISTER(&friendlyfire);
CVAR_REGISTER(&flashlight);
CVAR_REGISTER(&decalfrequency);
CVAR_REGISTER(&allowmonsters);
CVAR_REGISTER(&roundtime);
CVAR_REGISTER(&buytime);
CVAR_REGISTER(&freezetime);
CVAR_REGISTER(&c4timer);
CVAR_REGISTER(&ghostfrequency);
CVAR_REGISTER(&autokick);
CVAR_REGISTER(&autokick_timeout);
CVAR_REGISTER(&restartround);
CVAR_REGISTER(&sv_restart);
CVAR_REGISTER(&limitteams);
CVAR_REGISTER(&autoteambalance);
CVAR_REGISTER(&tkpunish);
CVAR_REGISTER(&hostagepenalty);
CVAR_REGISTER(&mirrordamage);
CVAR_REGISTER(&logmessages);
CVAR_REGISTER(&forcecamera);
CVAR_REGISTER(&forcechasecam);
CVAR_REGISTER(&mapvoteratio);
CVAR_REGISTER(&maxrounds);
CVAR_REGISTER(&winlimit);
CVAR_REGISTER(&windifference);
CVAR_REGISTER(&fadetoblack);
CVAR_REGISTER(&logdetail);
CVAR_REGISTER(&startmoney);
CVAR_REGISTER(&playerid);
CVAR_REGISTER(&allow_spectators);
CVAR_REGISTER(&mp_chattime);
CVAR_REGISTER(&kick_percent);
CVAR_REGISTER(&fragsleft);
CVAR_REGISTER(&timeleft);
CVAR_REGISTER(&humans_join_team);
CVAR_REGISTER(&sk_plr_9mm_bullet1);
CVAR_REGISTER(&sk_plr_9mm_bullet2);
CVAR_REGISTER(&sk_plr_9mm_bullet3);
CVAR_REGISTER(&sk_plr_357_bullet1);
CVAR_REGISTER(&sk_plr_357_bullet2);
CVAR_REGISTER(&sk_plr_357_bullet3);
CVAR_REGISTER(&sk_plr_9mmAR_bullet1);
CVAR_REGISTER(&sk_plr_9mmAR_bullet2);
CVAR_REGISTER(&sk_plr_9mmAR_bullet3);
CVAR_REGISTER(&sk_plr_9mmAR_grenade1);
CVAR_REGISTER(&sk_plr_9mmAR_grenade2);
CVAR_REGISTER(&sk_plr_9mmAR_grenade3);
CVAR_REGISTER(&sk_plr_buckshot1);
CVAR_REGISTER(&sk_plr_buckshot2);
CVAR_REGISTER(&sk_plr_buckshot3);
CVAR_REGISTER(&sk_plr_rpg1);
CVAR_REGISTER(&sk_plr_rpg2);
CVAR_REGISTER(&sk_plr_rpg3);
CVAR_REGISTER(&sk_12mm_bullet1);
CVAR_REGISTER(&sk_12mm_bullet2);
CVAR_REGISTER(&sk_12mm_bullet3);
CVAR_REGISTER(&sk_9mmAR_bullet1);
CVAR_REGISTER(&sk_9mmAR_bullet2);
CVAR_REGISTER(&sk_9mmAR_bullet3);
CVAR_REGISTER(&sk_9mm_bullet1);
CVAR_REGISTER(&sk_9mm_bullet2);
CVAR_REGISTER(&sk_9mm_bullet3);
CVAR_REGISTER(&sk_suitcharger1);
CVAR_REGISTER(&sk_suitcharger2);
CVAR_REGISTER(&sk_suitcharger3);
CVAR_REGISTER(&sk_battery1);
CVAR_REGISTER(&sk_battery2);
CVAR_REGISTER(&sk_battery3);
CVAR_REGISTER(&sk_healthcharger1);
CVAR_REGISTER(&sk_healthcharger2);
CVAR_REGISTER(&sk_healthcharger3);
CVAR_REGISTER(&sk_healthkit1);
CVAR_REGISTER(&sk_healthkit2);
CVAR_REGISTER(&sk_healthkit3);
CVAR_REGISTER(&sk_scientist_heal1);
CVAR_REGISTER(&sk_scientist_heal2);
CVAR_REGISTER(&sk_scientist_heal3);
Bot_RegisterCvars();
Tutor_RegisterCVars();
Hostage_RegisterCVars();
}
*/
#ifndef HOOK_GAMEDLL
cvar_t *g_psv_gravity = NULL;
cvar_t *g_psv_aim = NULL;
cvar_t *g_footsteps = NULL;
cvar_t *g_psv_accelerate = NULL;
cvar_t *g_psv_friction = NULL;
cvar_t *g_psv_stopspeed = NULL;
cvar_t displaysoundlist = { "displaysoundlist", "0" };
cvar_t timelimit = { "mp_timelimit", "0", FCVAR_SERVER };
cvar_t flashlight = { "mp_flashlight", "0", FCVAR_SERVER };
cvar_t decalfrequency = { "decalfrequency", "30", FCVAR_SERVER };
cvar_t fadetoblack = { "mp_fadetoblack", "0", FCVAR_SERVER };
cvar_t fragsleft = { "mp_fragsleft", "", FCVAR_SERVER|FCVAR_UNLOGGED };
cvar_t timeleft = { "mp_timeleft", "0", FCVAR_SERVER|FCVAR_UNLOGGED };
cvar_t friendlyfire = { "mp_friendlyfire", "0", FCVAR_SERVER };
cvar_t allowmonsters = { "mp_allowmonsters", "0", FCVAR_SERVER };
cvar_t roundtime = { "mp_roundtime", "5", FCVAR_SERVER };
cvar_t buytime = { "mp_buytime", "1.5", FCVAR_SERVER };
cvar_t freezetime = { "mp_freezetime", "6", FCVAR_SERVER };
cvar_t c4timer = { "mp_c4timer", "45", FCVAR_SERVER };
cvar_t ghostfrequency = { "mp_ghostfrequency", "0.1", FCVAR_SERVER };
cvar_t autokick = { "mp_autokick", "1", FCVAR_SERVER };
cvar_t autokick_timeout = { "mp_autokick_timeout", "-1", FCVAR_SERVER };
cvar_t restartround = { "sv_restartround", "0", FCVAR_SERVER };
cvar_t sv_restart = { "sv_restart", "0", FCVAR_SERVER };
cvar_t limitteams = { "mp_limitteams", "2", FCVAR_SERVER };
cvar_t autoteambalance = { "mp_autoteambalance", "1", FCVAR_SERVER };
cvar_t tkpunish = { "mp_tkpunish", "0", FCVAR_SERVER };
cvar_t hostagepenalty = { "mp_hostagepenalty", "13", FCVAR_SERVER };
cvar_t mirrordamage = { "mp_mirrordamage", "0", FCVAR_SERVER };
cvar_t logmessages = { "mp_logmessages", "1", FCVAR_SERVER };
cvar_t forcecamera = { "mp_forcecamera", "0", FCVAR_SERVER };
cvar_t forcechasecam = { "mp_forcechasecam", "0", FCVAR_SERVER };
cvar_t mapvoteratio = { "mp_mapvoteratio", "0.66", FCVAR_SERVER };
cvar_t logdetail = { "mp_logdetail", "0", FCVAR_SERVER };
cvar_t startmoney = { "mp_startmoney", "800", FCVAR_SERVER };
cvar_t maxrounds = { "mp_maxrounds", "0", FCVAR_SERVER };
cvar_t winlimit = { "mp_winlimit", "0", FCVAR_SERVER };
cvar_t windifference = { "mp_windifference", "1", FCVAR_SERVER };
cvar_t playerid = { "mp_playerid", "0", FCVAR_SERVER };
cvar_t allow_spectators = { "allow_spectators", "1.0", FCVAR_SERVER };
cvar_t mp_chattime = { "mp_chattime", "10", FCVAR_SERVER };
cvar_t kick_percent = { "mp_kickpercent", "0.66", FCVAR_SERVER };
cvar_t humans_join_team = { "humans_join_team", "0", FCVAR_SERVER };
cvar_t sk_plr_9mm_bullet1 = { "sk_plr_9mm_bullet1", "0" };
cvar_t sk_plr_9mm_bullet2 = { "sk_plr_9mm_bullet2", "0" };
cvar_t sk_plr_9mm_bullet3 = { "sk_plr_9mm_bullet3", "0" };
cvar_t sk_plr_357_bullet1 = { "sk_plr_357_bullet1", "0" };
cvar_t sk_plr_357_bullet2 = { "sk_plr_357_bullet2", "0" };
cvar_t sk_plr_357_bullet3 = { "sk_plr_357_bullet3", "0" };
cvar_t sk_plr_9mmAR_bullet1 = { "sk_plr_9mmAR_bullet1", "0" };
cvar_t sk_plr_9mmAR_bullet2 = { "sk_plr_9mmAR_bullet2", "0" };
cvar_t sk_plr_9mmAR_bullet3 = { "sk_plr_9mmAR_bullet3", "0" };
cvar_t sk_plr_9mmAR_grenade1 = { "sk_plr_9mmAR_grenade1", "0" };
cvar_t sk_plr_9mmAR_grenade2 = { "sk_plr_9mmAR_grenade2", "0" };
cvar_t sk_plr_9mmAR_grenade3 = { "sk_plr_9mmAR_grenade3", "0" };
cvar_t sk_plr_buckshot1 = { "sk_plr_buckshot1", "0" };
cvar_t sk_plr_buckshot2 = { "sk_plr_buckshot2", "0" };
cvar_t sk_plr_buckshot3 = { "sk_plr_buckshot3", "0" };
cvar_t sk_plr_rpg1 = { "sk_plr_rpg1", "0" };
cvar_t sk_plr_rpg2 = { "sk_plr_rpg2", "0" };
cvar_t sk_plr_rpg3 = { "sk_plr_rpg3", "0" };
cvar_t sk_12mm_bullet1 = { "sk_12mm_bullet1", "0" };
cvar_t sk_12mm_bullet2 = { "sk_12mm_bullet2", "0" };
cvar_t sk_12mm_bullet3 = { "sk_12mm_bullet3", "0" };
cvar_t sk_9mmAR_bullet1 = { "sk_9mmAR_bullet1", "0" };
cvar_t sk_9mmAR_bullet2 = { "sk_9mmAR_bullet2", "0" };
cvar_t sk_9mmAR_bullet3 = { "sk_9mmAR_bullet3", "0" };
cvar_t sk_9mm_bullet1 = { "sk_9mm_bullet1", "0" };
cvar_t sk_9mm_bullet2 = { "sk_9mm_bullet2", "0" };
cvar_t sk_9mm_bullet3 = { "sk_9mm_bullet3", "0" };
cvar_t sk_suitcharger1 = { "sk_suitcharger1", "0" };
cvar_t sk_suitcharger2 = { "sk_suitcharger2", "0" };
cvar_t sk_suitcharger3 = { "sk_suitcharger3", "0" };
cvar_t sk_battery1 = { "sk_battery1", "0" };
cvar_t sk_battery2 = { "sk_battery2", "0" };
cvar_t sk_battery3 = { "sk_battery3", "0" };
cvar_t sk_healthcharger1 = { "sk_healthcharger1", "0" };
cvar_t sk_healthcharger2 = { "sk_healthcharger2", "0" };
cvar_t sk_healthcharger3 = { "sk_healthcharger3", "0" };
cvar_t sk_healthkit1 = { "sk_healthkit1", "0" };
cvar_t sk_healthkit2 = { "sk_healthkit2", "0" };
cvar_t sk_healthkit3 = { "sk_healthkit3", "0" };
cvar_t sk_scientist_heal1 = { "sk_scientist_heal1", "0" };
cvar_t sk_scientist_heal2 = { "sk_scientist_heal2", "0" };
cvar_t sk_scientist_heal3 = { "sk_scientist_heal3", "0" };
#else //HOOK_GAMEDLL
cvar_t *g_psv_gravity;
cvar_t *g_psv_aim;
cvar_t *g_footsteps;
cvar_t *g_psv_accelerate;
cvar_t *g_psv_friction;
cvar_t *g_psv_stopspeed;
cvar_t displaysoundlist;
cvar_t timelimit;
cvar_t flashlight;
cvar_t decalfrequency;
cvar_t fadetoblack;
cvar_t fragsleft;
cvar_t timeleft;
cvar_t friendlyfire;
cvar_t allowmonsters;
cvar_t roundtime;
cvar_t buytime;
cvar_t freezetime;
cvar_t c4timer;
cvar_t ghostfrequency;
cvar_t autokick;
cvar_t autokick_timeout;
cvar_t restartround;
cvar_t sv_restart;
cvar_t limitteams;
cvar_t autoteambalance;
cvar_t tkpunish;
cvar_t hostagepenalty;
cvar_t mirrordamage;
cvar_t logmessages;
cvar_t forcecamera;
cvar_t forcechasecam;
cvar_t mapvoteratio;
cvar_t logdetail;
cvar_t startmoney;
cvar_t maxrounds;
cvar_t winlimit;
cvar_t windifference;
cvar_t playerid;
cvar_t allow_spectators;
cvar_t mp_chattime;
cvar_t kick_percent;
cvar_t humans_join_team;
// NOXREF
//cvar_t sk_agrunt_health1;
//cvar_t sk_agrunt_health2;
//cvar_t sk_agrunt_health3;
//cvar_t sk_agrunt_dmg_punch1;
//cvar_t sk_agrunt_dmg_punch2;
//cvar_t sk_agrunt_dmg_punch3;
//cvar_t sk_apache_health1;
//cvar_t sk_apache_health2;
//cvar_t sk_apache_health3;
//cvar_t sk_barney_health1;
//cvar_t sk_barney_health2;
//cvar_t sk_barney_health3;
//cvar_t sk_bullsquid_health1;
//cvar_t sk_bullsquid_health2;
//cvar_t sk_bullsquid_health3;
//cvar_t sk_bullsquid_dmg_bite1;
//cvar_t sk_bullsquid_dmg_bite2;
//cvar_t sk_bullsquid_dmg_bite3;
//cvar_t sk_bullsquid_dmg_whip1;
//cvar_t sk_bullsquid_dmg_whip2;
//cvar_t sk_bullsquid_dmg_whip3;
//cvar_t sk_bullsquid_dmg_spit1;
//cvar_t sk_bullsquid_dmg_spit2;
//cvar_t sk_bullsquid_dmg_spit3;
//cvar_t sk_bigmomma_health_factor1;
//cvar_t sk_bigmomma_health_factor2;
//cvar_t sk_bigmomma_health_factor3;
//cvar_t sk_bigmomma_dmg_slash1;
//cvar_t sk_bigmomma_dmg_slash2;
//cvar_t sk_bigmomma_dmg_slash3;
//cvar_t sk_bigmomma_dmg_blast1;
//cvar_t sk_bigmomma_dmg_blast2;
//cvar_t sk_bigmomma_dmg_blast3;
//cvar_t sk_bigmomma_radius_blast1;
//cvar_t sk_bigmomma_radius_blast2;
//cvar_t sk_bigmomma_radius_blast3;
//cvar_t sk_gargantua_health1;
//cvar_t sk_gargantua_health2;
//cvar_t sk_gargantua_health3;
//cvar_t sk_gargantua_dmg_slash1;
//cvar_t sk_gargantua_dmg_slash2;
//cvar_t sk_gargantua_dmg_slash3;
//cvar_t sk_gargantua_dmg_fire1;
//cvar_t sk_gargantua_dmg_fire2;
//cvar_t sk_gargantua_dmg_fire3;
//cvar_t sk_gargantua_dmg_stomp1;
//cvar_t sk_gargantua_dmg_stomp2;
//cvar_t sk_gargantua_dmg_stomp3;
//cvar_t sk_hassassin_health1;
//cvar_t sk_hassassin_health2;
//cvar_t sk_hassassin_health3;
//cvar_t sk_headcrab_health1;
//cvar_t sk_headcrab_health2;
//cvar_t sk_headcrab_health3;
//cvar_t sk_headcrab_dmg_bite1;
//cvar_t sk_headcrab_dmg_bite2;
//cvar_t sk_headcrab_dmg_bite3;
//cvar_t sk_hgrunt_health1;
//cvar_t sk_hgrunt_health2;
//cvar_t sk_hgrunt_health3;
//cvar_t sk_hgrunt_kick1;
//cvar_t sk_hgrunt_kick2;
//cvar_t sk_hgrunt_kick3;
//cvar_t sk_hgrunt_pellets1;
//cvar_t sk_hgrunt_pellets2;
//cvar_t sk_hgrunt_pellets3;
//cvar_t sk_hgrunt_gspeed1;
//cvar_t sk_hgrunt_gspeed2;
//cvar_t sk_hgrunt_gspeed3;
//cvar_t sk_houndeye_health1;
//cvar_t sk_houndeye_health2;
//cvar_t sk_houndeye_health3;
//cvar_t sk_houndeye_dmg_blast1;
//cvar_t sk_houndeye_dmg_blast2;
//cvar_t sk_houndeye_dmg_blast3;
//cvar_t sk_islave_health1;
//cvar_t sk_islave_health2;
//cvar_t sk_islave_health3;
//cvar_t sk_islave_dmg_claw1;
//cvar_t sk_islave_dmg_claw2;
//cvar_t sk_islave_dmg_claw3;
//cvar_t sk_islave_dmg_clawrake1;
//cvar_t sk_islave_dmg_clawrake2;
//cvar_t sk_islave_dmg_clawrake3;
//cvar_t sk_islave_dmg_zap1;
//cvar_t sk_islave_dmg_zap2;
//cvar_t sk_islave_dmg_zap3;
//cvar_t sk_ichthyosaur_health1;
//cvar_t sk_ichthyosaur_health2;
//cvar_t sk_ichthyosaur_health3;
//cvar_t sk_ichthyosaur_shake1;
//cvar_t sk_ichthyosaur_shake2;
//cvar_t sk_ichthyosaur_shake3;
//cvar_t sk_leech_health1;
//cvar_t sk_leech_health2;
//cvar_t sk_leech_health3;
//cvar_t sk_leech_dmg_bite1;
//cvar_t sk_leech_dmg_bite2;
//cvar_t sk_leech_dmg_bite3;
//cvar_t sk_controller_health1;
//cvar_t sk_controller_health2;
//cvar_t sk_controller_health3;
//cvar_t sk_controller_dmgzap1;
//cvar_t sk_controller_dmgzap2;
//cvar_t sk_controller_dmgzap3;
//cvar_t sk_controller_speedball1;
//cvar_t sk_controller_speedball2;
//cvar_t sk_controller_speedball3;
//cvar_t sk_controller_dmgball1;
//cvar_t sk_controller_dmgball2;
//cvar_t sk_controller_dmgball3;
//cvar_t sk_nihilanth_health1;
//cvar_t sk_nihilanth_health2;
//cvar_t sk_nihilanth_health3;
//cvar_t sk_nihilanth_zap1;
//cvar_t sk_nihilanth_zap2;
//cvar_t sk_nihilanth_zap3;
//cvar_t sk_scientist_health1;
//cvar_t sk_scientist_health2;
//cvar_t sk_scientist_health3;
//cvar_t sk_snark_health1;
//cvar_t sk_snark_health2;
//cvar_t sk_snark_health3;
//cvar_t sk_snark_dmg_bite1;
//cvar_t sk_snark_dmg_bite2;
//cvar_t sk_snark_dmg_bite3;
//cvar_t sk_snark_dmg_pop1;
//cvar_t sk_snark_dmg_pop2;
//cvar_t sk_snark_dmg_pop3;
//cvar_t sk_zombie_health1;
//cvar_t sk_zombie_health2;
//cvar_t sk_zombie_health3;
//cvar_t sk_zombie_dmg_one_slash1;
//cvar_t sk_zombie_dmg_one_slash2;
//cvar_t sk_zombie_dmg_one_slash3;
//cvar_t sk_zombie_dmg_both_slash1;
//cvar_t sk_zombie_dmg_both_slash2;
//cvar_t sk_zombie_dmg_both_slash3;
//cvar_t sk_turret_health1;
//cvar_t sk_turret_health2;
//cvar_t sk_turret_health3;
//cvar_t sk_miniturret_health1;
//cvar_t sk_miniturret_health2;
//cvar_t sk_miniturret_health3;
//cvar_t sk_sentry_health1;
//cvar_t sk_sentry_health2;
//cvar_t sk_sentry_health3;
//cvar_t sk_plr_crowbar1;
//cvar_t sk_plr_crowbar2;
//cvar_t sk_plr_crowbar3;
cvar_t sk_plr_9mm_bullet1;
cvar_t sk_plr_9mm_bullet2;
cvar_t sk_plr_9mm_bullet3;
cvar_t sk_plr_357_bullet1;
cvar_t sk_plr_357_bullet2;
cvar_t sk_plr_357_bullet3;
cvar_t sk_plr_9mmAR_bullet1;
cvar_t sk_plr_9mmAR_bullet2;
cvar_t sk_plr_9mmAR_bullet3;
cvar_t sk_plr_9mmAR_grenade1;
cvar_t sk_plr_9mmAR_grenade2;
cvar_t sk_plr_9mmAR_grenade3;
cvar_t sk_plr_buckshot1;
cvar_t sk_plr_buckshot2;
cvar_t sk_plr_buckshot3;
// NOXREF
//cvar_t sk_plr_xbow_bolt_client1;
//cvar_t sk_plr_xbow_bolt_client2;
//cvar_t sk_plr_xbow_bolt_client3;
//cvar_t sk_plr_xbow_bolt_monster1;
//cvar_t sk_plr_xbow_bolt_monster2;
//cvar_t sk_plr_xbow_bolt_monster3;
cvar_t sk_plr_rpg1;
cvar_t sk_plr_rpg2;
cvar_t sk_plr_rpg3;
// NOXREF
//cvar_t sk_plr_gauss1;
//cvar_t sk_plr_gauss2;
//cvar_t sk_plr_gauss3;
//cvar_t sk_plr_egon_narrow1;
//cvar_t sk_plr_egon_narrow2;
//cvar_t sk_plr_egon_narrow3;
//cvar_t sk_plr_egon_wide1;
//cvar_t sk_plr_egon_wide2;
//cvar_t sk_plr_egon_wide3;
//cvar_t sk_plr_hand_grenade1;
//cvar_t sk_plr_hand_grenade2;
//cvar_t sk_plr_hand_grenade3;
//cvar_t sk_plr_satchel1;
//cvar_t sk_plr_satchel2;
//cvar_t sk_plr_satchel3;
//cvar_t sk_plr_tripmine1;
//cvar_t sk_plr_tripmine2;
//cvar_t sk_plr_tripmine3;
cvar_t sk_12mm_bullet1;
cvar_t sk_12mm_bullet2;
cvar_t sk_12mm_bullet3;
cvar_t sk_9mmAR_bullet1;
cvar_t sk_9mmAR_bullet2;
cvar_t sk_9mmAR_bullet3;
cvar_t sk_9mm_bullet1;
cvar_t sk_9mm_bullet2;
cvar_t sk_9mm_bullet3;
// NOXREF
//cvar_t sk_hornet_dmg1;
//cvar_t sk_hornet_dmg2;
//cvar_t sk_hornet_dmg3;
cvar_t sk_suitcharger1;
cvar_t sk_suitcharger2;
cvar_t sk_suitcharger3;
cvar_t sk_battery1;
cvar_t sk_battery2;
cvar_t sk_battery3;
cvar_t sk_healthcharger1;
cvar_t sk_healthcharger2;
cvar_t sk_healthcharger3;
cvar_t sk_healthkit1;
cvar_t sk_healthkit2;
cvar_t sk_healthkit3;
cvar_t sk_scientist_heal1;
cvar_t sk_scientist_heal2;
cvar_t sk_scientist_heal3;
// NOXREF
//cvar_t sk_monster_head1;
//cvar_t sk_monster_head2;
//cvar_t sk_monster_head3;
//cvar_t sk_monster_chest1;
//cvar_t sk_monster_chest2;
//cvar_t sk_monster_chest3;
//cvar_t sk_monster_stomach1;
//cvar_t sk_monster_stomach2;
//cvar_t sk_monster_stomach3;
//cvar_t sk_monster_arm1;
//cvar_t sk_monster_arm2;
//cvar_t sk_monster_arm3;
//cvar_t sk_monster_leg1;
//cvar_t sk_monster_leg2;
//cvar_t sk_monster_leg3;
//cvar_t sk_player_head1;
//cvar_t sk_player_head2;
//cvar_t sk_player_head3;
//cvar_t sk_player_chest1;
//cvar_t sk_player_chest2;
//cvar_t sk_player_chest3;
//cvar_t sk_player_stomach1;
//cvar_t sk_player_stomach2;
//cvar_t sk_player_stomach3;
//cvar_t sk_player_arm1;
//cvar_t sk_player_arm2;
//cvar_t sk_player_arm3;
//cvar_t sk_player_leg1;
//cvar_t sk_player_leg2;
//cvar_t sk_player_leg3;
#endif //HOOK_GAMEDLL
/* <9c900> ../cstrike/dlls/game.cpp:500 */
void GameDLLInit(void)
{
g_psv_gravity = CVAR_GET_POINTER("sv_gravity");
g_psv_aim = CVAR_GET_POINTER("sv_aim");
g_footsteps = CVAR_GET_POINTER("mp_footsteps");
g_psv_accelerate = CVAR_GET_POINTER("sv_accelerate");
g_psv_friction = CVAR_GET_POINTER("sv_friction");
g_psv_stopspeed = CVAR_GET_POINTER("sv_stopspeed");
CVAR_REGISTER(&displaysoundlist);
CVAR_REGISTER(&timelimit);
CVAR_REGISTER(&friendlyfire);
CVAR_REGISTER(&flashlight);
CVAR_REGISTER(&decalfrequency);
CVAR_REGISTER(&allowmonsters);
CVAR_REGISTER(&roundtime);
CVAR_REGISTER(&buytime);
CVAR_REGISTER(&freezetime);
CVAR_REGISTER(&c4timer);
CVAR_REGISTER(&ghostfrequency);
CVAR_REGISTER(&autokick);
CVAR_REGISTER(&autokick_timeout);
CVAR_REGISTER(&restartround);
CVAR_REGISTER(&sv_restart);
CVAR_REGISTER(&limitteams);
CVAR_REGISTER(&autoteambalance);
CVAR_REGISTER(&tkpunish);
CVAR_REGISTER(&hostagepenalty);
CVAR_REGISTER(&mirrordamage);
CVAR_REGISTER(&logmessages);
CVAR_REGISTER(&forcecamera);
CVAR_REGISTER(&forcechasecam);
CVAR_REGISTER(&mapvoteratio);
CVAR_REGISTER(&maxrounds);
CVAR_REGISTER(&winlimit);
CVAR_REGISTER(&windifference);
CVAR_REGISTER(&fadetoblack);
CVAR_REGISTER(&logdetail);
CVAR_REGISTER(&startmoney);
CVAR_REGISTER(&playerid);
CVAR_REGISTER(&allow_spectators);
CVAR_REGISTER(&mp_chattime);
CVAR_REGISTER(&kick_percent);
CVAR_REGISTER(&fragsleft);
CVAR_REGISTER(&timeleft);
CVAR_REGISTER(&humans_join_team);
CVAR_REGISTER(&sk_plr_9mm_bullet1);
CVAR_REGISTER(&sk_plr_9mm_bullet2);
CVAR_REGISTER(&sk_plr_9mm_bullet3);
CVAR_REGISTER(&sk_plr_357_bullet1);
CVAR_REGISTER(&sk_plr_357_bullet2);
CVAR_REGISTER(&sk_plr_357_bullet3);
CVAR_REGISTER(&sk_plr_9mmAR_bullet1);
CVAR_REGISTER(&sk_plr_9mmAR_bullet2);
CVAR_REGISTER(&sk_plr_9mmAR_bullet3);
CVAR_REGISTER(&sk_plr_9mmAR_grenade1);
CVAR_REGISTER(&sk_plr_9mmAR_grenade2);
CVAR_REGISTER(&sk_plr_9mmAR_grenade3);
CVAR_REGISTER(&sk_plr_buckshot1);
CVAR_REGISTER(&sk_plr_buckshot2);
CVAR_REGISTER(&sk_plr_buckshot3);
CVAR_REGISTER(&sk_plr_rpg1);
CVAR_REGISTER(&sk_plr_rpg2);
CVAR_REGISTER(&sk_plr_rpg3);
CVAR_REGISTER(&sk_12mm_bullet1);
CVAR_REGISTER(&sk_12mm_bullet2);
CVAR_REGISTER(&sk_12mm_bullet3);
CVAR_REGISTER(&sk_9mmAR_bullet1);
CVAR_REGISTER(&sk_9mmAR_bullet2);
CVAR_REGISTER(&sk_9mmAR_bullet3);
CVAR_REGISTER(&sk_9mm_bullet1);
CVAR_REGISTER(&sk_9mm_bullet2);
CVAR_REGISTER(&sk_9mm_bullet3);
CVAR_REGISTER(&sk_suitcharger1);
CVAR_REGISTER(&sk_suitcharger2);
CVAR_REGISTER(&sk_suitcharger3);
CVAR_REGISTER(&sk_battery1);
CVAR_REGISTER(&sk_battery2);
CVAR_REGISTER(&sk_battery3);
CVAR_REGISTER(&sk_healthcharger1);
CVAR_REGISTER(&sk_healthcharger2);
CVAR_REGISTER(&sk_healthcharger3);
CVAR_REGISTER(&sk_healthkit1);
CVAR_REGISTER(&sk_healthkit2);
CVAR_REGISTER(&sk_healthkit3);
CVAR_REGISTER(&sk_scientist_heal1);
CVAR_REGISTER(&sk_scientist_heal2);
CVAR_REGISTER(&sk_scientist_heal3);
Bot_RegisterCvars();
Tutor_RegisterCVars();
Hostage_RegisterCVars();
}

View File

@ -1,21 +1,21 @@
#include "precompiled.h"
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
CHalfLifeMultiplay *g_pGameRules = NULL;
#else //HOOK_GAMEDLL
CHalfLifeMultiplay *g_pGameRules;
#endif //HOOK_GAMEDLL
/* <ad93d> ../cstrike/dlls/gamerules.cpp:36 */
BOOL CGameRules::CanHaveAmmo_(CBasePlayer *pPlayer, const char *pszAmmoName, int iMaxCarry)
{
*/
#ifndef HOOK_GAMEDLL
CHalfLifeMultiplay *g_pGameRules = NULL;
#else //HOOK_GAMEDLL
CHalfLifeMultiplay *g_pGameRules;
#endif //HOOK_GAMEDLL
/* <ad93d> ../cstrike/dlls/gamerules.cpp:36 */
BOOL CGameRules::CanHaveAmmo_(CBasePlayer *pPlayer, const char *pszAmmoName, int iMaxCarry)
{
if (pszAmmoName)
{
int iAmmoIndex = pPlayer->GetAmmoIndex(pszAmmoName);
@ -26,24 +26,24 @@ BOOL CGameRules::CanHaveAmmo_(CBasePlayer *pPlayer, const char *pszAmmoName, int
return TRUE;
}
}
return FALSE;
}
/* <ad89d> ../cstrike/dlls/gamerules.cpp:59 */
NOBODY edict_t *CGameRules::GetPlayerSpawnSpot_(CBasePlayer *pPlayer)
{
// {
// edict_t *pentSpawnSpot; // 61
// VARS(edict_t *pent); // 66
// VARS(edict_t *pent); // 63
// operator+(const Vector *const this,
// const Vector &v); // 63
// }
}
/* <ad9a3> ../cstrike/dlls/gamerules.cpp:75 */
NOBODY BOOL CGameRules::CanHavePlayerItem_(CBasePlayer *pPlayer, CBasePlayerItem *pWeapon)
{
return FALSE;
}
/* <ad89d> ../cstrike/dlls/gamerules.cpp:59 */
NOBODY edict_t *CGameRules::GetPlayerSpawnSpot_(CBasePlayer *pPlayer)
{
// {
// edict_t *pentSpawnSpot; // 61
// VARS(edict_t *pent); // 66
// VARS(edict_t *pent); // 63
// operator+(const Vector *const this,
// const Vector &v); // 63
// }
}
/* <ad9a3> ../cstrike/dlls/gamerules.cpp:75 */
NOBODY BOOL CGameRules::CanHavePlayerItem_(CBasePlayer *pPlayer, CBasePlayerItem *pWeapon)
{
/*if (pPlayer->pev->deadflag != DEAD_NO)
return FALSE;
@ -56,64 +56,64 @@ NOBODY BOOL CGameRules::CanHavePlayerItem_(CBasePlayer *pPlayer, CBasePlayerItem
return TRUE;
}
}*/
return FALSE;
}
/* <ad85d> ../cstrike/dlls/gamerules.cpp:119 */
void CGameRules::RefreshSkillData_(void)
{
int iSkill = (int)CVAR_GET_FLOAT("skill");
if (iSkill < 1)
iSkill = 1;
else if (iSkill > 3)
iSkill = 3;
gSkillData.iSkillLevel = iSkill;
ALERT(at_console, "\nGAME SKILL LEVEL:%d\n", iSkill);
gSkillData.monDmg12MM = 8;
gSkillData.monDmgMP5 = 3;
gSkillData.monDmg9MM = 5;
gSkillData.suitchargerCapacity = 75;
gSkillData.batteryCapacity = 15;
gSkillData.healthchargerCapacity = 50;
gSkillData.healthkitCapacity = 15;
}
/* <ada23> ../cstrike/dlls/gamerules.cpp:157 */
NOBODY CGameRules *InstallGameRules(void)
{
return FALSE;
}
/* <ad85d> ../cstrike/dlls/gamerules.cpp:119 */
void CGameRules::RefreshSkillData_(void)
{
int iSkill = (int)CVAR_GET_FLOAT("skill");
if (iSkill < 1)
iSkill = 1;
else if (iSkill > 3)
iSkill = 3;
gSkillData.iSkillLevel = iSkill;
ALERT(at_console, "\nGAME SKILL LEVEL:%d\n", iSkill);
gSkillData.monDmg12MM = 8;
gSkillData.monDmgMP5 = 3;
gSkillData.monDmg9MM = 5;
gSkillData.suitchargerCapacity = 75;
gSkillData.batteryCapacity = 15;
gSkillData.healthchargerCapacity = 50;
gSkillData.healthkitCapacity = 15;
}
/* <ada23> ../cstrike/dlls/gamerules.cpp:157 */
NOBODY CGameRules *InstallGameRules(void)
{
SERVER_COMMAND("exec game.cfg\n");
SERVER_EXECUTE();
if (!gpGlobals->deathmatch)
return new CHalfLifeTraining;
return new CHalfLifeMultiplay;
}
#ifdef HOOK_GAMEDLL
BOOL CGameRules::CanHaveAmmo(CBasePlayer *pPlayer, const char *pszAmmoName, int iMaxCarry)
{
return CanHaveAmmo_(pPlayer,pszAmmoName,iMaxCarry);
}
edict_t *CGameRules::GetPlayerSpawnSpot(CBasePlayer *pPlayer)
{
return GetPlayerSpawnSpot_(pPlayer);
}
BOOL CGameRules::CanHavePlayerItem(CBasePlayer *pPlayer, CBasePlayerItem *pWeapon)
{
return CanHavePlayerItem_(pPlayer,pWeapon);
}
void CGameRules::RefreshSkillData(void)
{
RefreshSkillData_();
return new CHalfLifeMultiplay;
}
#ifdef HOOK_GAMEDLL
BOOL CGameRules::CanHaveAmmo(CBasePlayer *pPlayer, const char *pszAmmoName, int iMaxCarry)
{
return CanHaveAmmo_(pPlayer,pszAmmoName,iMaxCarry);
}
edict_t *CGameRules::GetPlayerSpawnSpot(CBasePlayer *pPlayer)
{
return GetPlayerSpawnSpot_(pPlayer);
}
BOOL CGameRules::CanHavePlayerItem(CBasePlayer *pPlayer, CBasePlayerItem *pWeapon)
{
return CanHavePlayerItem_(pPlayer,pWeapon);
}
void CGameRules::RefreshSkillData(void)
{
RefreshSkillData_();
}
#endif // HOOK_GAMEDLL

View File

@ -266,8 +266,8 @@ public:
virtual BOOL FShouldSwitchWeapon(CBasePlayer *pPlayer, CBasePlayerItem *pWeapon);
virtual BOOL GetNextBestWeapon(CBasePlayer *pPlayer, CBasePlayerItem *pCurrentWeapon);
virtual BOOL IsMultiplayer(void);
NOBODY virtual BOOL IsDeathmatch(void);
NOBODY virtual BOOL IsCoOp(void);
virtual BOOL IsDeathmatch(void);
virtual BOOL IsCoOp(void);
NOBODY virtual BOOL ClientConnected(edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[128]);
NOBODY virtual void InitHUD(CBasePlayer *pl);
NOBODY virtual void ClientDisconnected(edict_t *pClient);

View File

@ -48,6 +48,6 @@
extern enginefuncs_t g_engfuncs;
extern globalvars_t *gpGlobals;
extern "C" C_DLLEXPORT void WINAPI GiveFnptrsToDll(enginefuncs_t *pEnginefuncsTable,globalvars_t *pGlobals);
C_DLLEXPORT void WINAPI GiveFnptrsToDll(enginefuncs_t *pEnginefuncsTable,globalvars_t *pGlobals);
#endif // H_EXPORT_H

View File

@ -1,8 +1,8 @@
#include "precompiled.h"
/* <dbc23> ../cstrike/dlls/hintmessage.cpp:11 */
CHintMessage::CHintMessage(const char *hintString, bool isHint, CUtlVector<const char *> *args, float duration)
{
#include "precompiled.h"
/* <dbc23> ../cstrike/dlls/hintmessage.cpp:11 */
CHintMessage::CHintMessage(const char *hintString, bool isHint, CUtlVector<const char *> *args, float duration)
{
m_hintString = hintString;
m_duration = duration;
m_isHint = isHint;
@ -11,38 +11,38 @@ CHintMessage::CHintMessage(const char *hintString, bool isHint, CUtlVector<const
{
for (int i = 0; i < args->Count(); i++)
m_args.AddToTail(CloneString((*args)[i]));
}
}
/* <db621> ../cstrike/dlls/hintmessage.cpp:27 */
CHintMessage::~CHintMessage(void)
{
}
}
/* <db621> ../cstrike/dlls/hintmessage.cpp:27 */
CHintMessage::~CHintMessage(void)
{
for (int i = 0; i < m_args.Count(); ++i)
delete [] m_args[i];
m_args.RemoveAll();
}
/* <db723> ../cstrike/dlls/hintmessage.cpp:37 */
void CHintMessage::Send(CBaseEntity *client)
{
UTIL_ShowMessageArgs(m_hintString, client, &m_args, m_isHint);
}
/* <db74d> ../cstrike/dlls/hintmessage.cpp:43 */
void CHintMessageQueue::Reset(void)
{
m_args.RemoveAll();
}
/* <db723> ../cstrike/dlls/hintmessage.cpp:37 */
void CHintMessage::Send(CBaseEntity *client)
{
UTIL_ShowMessageArgs(m_hintString, client, &m_args, m_isHint);
}
/* <db74d> ../cstrike/dlls/hintmessage.cpp:43 */
void CHintMessageQueue::Reset(void)
{
m_tmMessageEnd = 0;
for (int i = 0; i < m_messages.Count(); ++i)
delete m_messages[i];
m_messages.RemoveAll();
}
/* <db866> ../cstrike/dlls/hintmessage.cpp:54 */
void CHintMessageQueue::Update(CBaseEntity *client)
{
m_messages.RemoveAll();
}
/* <db866> ../cstrike/dlls/hintmessage.cpp:54 */
void CHintMessageQueue::Update(CBaseEntity *client)
{
if (gpGlobals->time <= m_tmMessageEnd)
return;
@ -53,14 +53,14 @@ void CHintMessageQueue::Update(CBaseEntity *client)
m_tmMessageEnd = gpGlobals->time + msg->GetDuration();
msg->Send(client);
delete msg;
m_messages.Remove(0);
}
/* <dbec2> ../cstrike/dlls/hintmessage.cpp:70 */
bool CHintMessageQueue::AddMessage(const char *message, float duration, bool isHint, CUtlVector<const char *> *args)
{
m_messages.Remove(0);
}
/* <dbec2> ../cstrike/dlls/hintmessage.cpp:70 */
bool CHintMessageQueue::AddMessage(const char *message, float duration, bool isHint, CUtlVector<const char *> *args)
{
CHintMessage *msg = new CHintMessage(message, isHint, args, duration);
m_messages.AddToTail(msg);
return true;
}
return true;
}

View File

@ -1,35 +1,35 @@
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef MONSTERS_H
#define MONSTERS_H
#ifdef _WIN32
#pragma once
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef MONSTERS_H
#define MONSTERS_H
#ifdef _WIN32
#pragma once
#endif
#include "skill.h"
@ -65,20 +65,20 @@
#define R_HT 2 // (HATE)will attack this character instead of any visible DISLIKEd characters
#define R_NM 3 // (NEMESIS) A monster Will ALWAYS attack its nemsis, no matter what
#define MEMORY_CLEAR 0
#define bits_MEMORY_PROVOKED (1<<0) // right now only used for houndeyes.
#define bits_MEMORY_INCOVER (1<<1) // monster knows it is in a covered position.
#define bits_MEMORY_SUSPICIOUS (1<<2) // Ally is suspicious of the player, and will move to provoked more easily
#define bits_MEMORY_PATH_FINISHED (1<<3) // Finished monster path (just used by big momma for now)
#define bits_MEMORY_ON_PATH (1<<4) // Moving on a path
#define bits_MEMORY_MOVE_FAILED (1<<5) // Movement has already failed
#define bits_MEMORY_FLINCHED (1<<6) // Has already flinched
#define bits_MEMORY_KILLED (1<<7) // HACKHACK -- remember that I've already called my Killed()
#define bits_MEMORY_CUSTOM4 (1<<28) // Monster-specific memory
#define bits_MEMORY_CUSTOM3 (1<<29) // Monster-specific memory
#define bits_MEMORY_CUSTOM2 (1<<30) // Monster-specific memory
#define MEMORY_CLEAR 0
#define bits_MEMORY_PROVOKED (1<<0) // right now only used for houndeyes.
#define bits_MEMORY_INCOVER (1<<1) // monster knows it is in a covered position.
#define bits_MEMORY_SUSPICIOUS (1<<2) // Ally is suspicious of the player, and will move to provoked more easily
#define bits_MEMORY_PATH_FINISHED (1<<3) // Finished monster path (just used by big momma for now)
#define bits_MEMORY_ON_PATH (1<<4) // Moving on a path
#define bits_MEMORY_MOVE_FAILED (1<<5) // Movement has already failed
#define bits_MEMORY_FLINCHED (1<<6) // Has already flinched
#define bits_MEMORY_KILLED (1<<7) // HACKHACK -- remember that I've already called my Killed()
#define bits_MEMORY_CUSTOM4 (1<<28) // Monster-specific memory
#define bits_MEMORY_CUSTOM3 (1<<29) // Monster-specific memory
#define bits_MEMORY_CUSTOM2 (1<<30) // Monster-specific memory
#define bits_MEMORY_CUSTOM1 (1<<31) // Monster-specific memory
//TODO: unused?
enum
{
@ -95,20 +95,20 @@ enum
AITRIGGER_SEEPLAYER_UNCONDITIONAL,
AITRIGGER_SEEPLAYER_NOT_IN_COMBAT,
};
enum HitBoxGroup
{
HITGROUP_GENERIC = 0,
HITGROUP_HEAD,
HITGROUP_CHEST,
HITGROUP_STOMACH,
HITGROUP_LEFTARM,
HITGROUP_RIGHTARM,
HITGROUP_LEFTLEG,
HITGROUP_RIGHTLEG,
HITGROUP_SHIELD,
NUM_HITGROUPS,
};
enum HitBoxGroup
{
HITGROUP_GENERIC = 0,
HITGROUP_HEAD,
HITGROUP_CHEST,
HITGROUP_STOMACH,
HITGROUP_LEFTARM,
HITGROUP_RIGHTARM,
HITGROUP_LEFTLEG,
HITGROUP_RIGHTLEG,
HITGROUP_SHIELD,
NUM_HITGROUPS,
};
/* <725cf> ../cstrike/dlls/monsters.h:61 */
class CGib: public CBaseEntity
@ -154,7 +154,7 @@ public:
Schedule_t *derivedClass::ScheduleFromName(const char *pName)\
{\
Schedule_t *pSchedule = ScheduleInList(pName, m_scheduleList, ARRAYSIZE(m_scheduleList));\
if(!pSchedule)\
if (!pSchedule)\
return baseClass::ScheduleFromName(pName);\
return pSchedule;\
}

File diff suppressed because it is too large Load Diff

View File

@ -32,9 +32,9 @@
#pragma once
#endif
#define bits_NODE_LAND ( 1 << 0 ) // Land node, so nudge if necessary.
#define bits_NODE_AIR ( 1 << 1 ) // Air node, don't nudge.
#define bits_NODE_WATER ( 1 << 2 ) // Water node, don't nudge.
#define bits_NODE_LAND (1 << 0) // Land node, so nudge if necessary.
#define bits_NODE_AIR (1 << 1) // Air node, don't nudge.
#define bits_NODE_WATER (1 << 2) // Water node, don't nudge.
#define bits_NODE_GROUP_REALM (bits_NODE_LAND | bits_NODE_AIR | bits_NODE_WATER)
class CBaseEntity;

View File

@ -237,14 +237,14 @@ void CBasePlayer::Observer_HandleButtons(void)
// Attack moves to the next player
if (m_afButtonPressed & IN_ATTACK)
{
Observer_FindNextPlayer( false );
Observer_FindNextPlayer(false);
m_flNextObserverInput = gpGlobals->time + 0.2f;
}
// Attack2 moves to the prev player
if (m_afButtonPressed & IN_ATTACK2)
{
Observer_FindNextPlayer( true );
Observer_FindNextPlayer(true);
m_flNextObserverInput = gpGlobals->time + 0.2f;
}
}
@ -475,7 +475,7 @@ void CBasePlayer::Observer_SetMode(int iMode)
// if we are not roaming, we need a valid target to track
if (iMode != OBS_ROAMING && m_hObserverTarget == NULL)
{
Observer_FindNextPlayer(false); // TODO: Reverse me
Observer_FindNextPlayer(false);
// if we didn't find a valid target switch to roaming
if (m_hObserverTarget == NULL)
@ -501,7 +501,7 @@ void CBasePlayer::Observer_SetMode(int iMode)
WRITE_BYTE((iMode == OBS_ROAMING) != 0);
MESSAGE_END();
UpdateClientEffects(this, oldMode); // TODO: Reverse me
UpdateClientEffects(this, oldMode);
// print spepctaor mode on client screen

View File

@ -1,22 +1,22 @@
#include "precompiled.h"
/* <1262b3> ../cstrike/dlls/plane.cpp:24 */
NOBODY CPlane::CPlane(void)
{
m_fInitialized = FALSE;
}
/* <1262d4> ../cstrike/dlls/plane.cpp:33 */
NOBODY void CPlane::InitializePlane(const Vector &vecNormal, const Vector &vecPoint)
{
#include "precompiled.h"
/* <1262b3> ../cstrike/dlls/plane.cpp:24 */
NOBODY CPlane::CPlane(void)
{
m_fInitialized = FALSE;
}
/* <1262d4> ../cstrike/dlls/plane.cpp:33 */
NOBODY void CPlane::InitializePlane(const Vector &vecNormal, const Vector &vecPoint)
{
m_vecNormal = vecNormal;
m_flDist = DotProduct(m_vecNormal, vecPoint);
m_fInitialized = TRUE;
}
/* <126343> ../cstrike/dlls/plane.cpp:45 */
NOBODY BOOL CPlane::PointInFront(const Vector &vecPoint)
{
m_fInitialized = TRUE;
}
/* <126343> ../cstrike/dlls/plane.cpp:45 */
NOBODY BOOL CPlane::PointInFront(const Vector &vecPoint)
{
if (!m_fInitialized)
return FALSE;
@ -25,5 +25,5 @@ NOBODY BOOL CPlane::PointInFront(const Vector &vecPoint)
if (flFace >= 0.0f)
return TRUE;
return FALSE;
}
return FALSE;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,254 +1,254 @@
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef SAVERESTORE_H
#define SAVERESTORE_H
#ifdef _WIN32
#pragma once
#endif
#define MAX_ENTITYARRAY 64
#ifndef HOOK_GAMEDLL
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef SAVERESTORE_H
#define SAVERESTORE_H
#ifdef _WIN32
#pragma once
#endif
#define MAX_ENTITYARRAY 64
#ifndef HOOK_GAMEDLL
#define IMPLEMENT_ARRAY(var)\
var
#define IMPLEMENT_ARRAY_CLASS(baseClass,var)\
baseClass::var
#define IMPLEMENT_SAVERESTORE(derivedClass,baseClass)\
int derivedClass::Save(CSave &save)\
{\
if(!baseClass::Save(save))\
return 0;\
return save.WriteFields(#derivedClass, this, m_SaveData, ARRAYSIZE(m_SaveData));\
}\
int derivedClass::Restore(CRestore &restore)\
{\
if(!baseClass::Restore(restore))\
return 0;\
return restore.ReadFields(#derivedClass, this, m_SaveData, ARRAYSIZE(m_SaveData));\
}
#else // HOOK_GAMEDLL
baseClass::var
#define IMPLEMENT_SAVERESTORE(derivedClass,baseClass)\
int derivedClass::Save(CSave &save)\
{\
if (!baseClass::Save(save))\
return 0;\
return save.WriteFields(#derivedClass, this, m_SaveData, ARRAYSIZE(m_SaveData));\
}\
int derivedClass::Restore(CRestore &restore)\
{\
if (!baseClass::Restore(restore))\
return 0;\
return restore.ReadFields(#derivedClass, this, m_SaveData, ARRAYSIZE(m_SaveData));\
}
#else // HOOK_GAMEDLL
#define IMPLEMENT_ARRAY(var)\
(*p##var)
#define IMPLEMENT_ARRAY_CLASS(baseClass,var)\
(*baseClass::p##var)
#define IMPLEMENT_SAVERESTORE(derivedClass, baseClass)\
int derivedClass::Save_(CSave &save)\
{\
if(!baseClass::Save(save))\
return 0;\
return save.WriteFields(#derivedClass, this, (*pm_SaveData), ARRAYSIZE(*pm_SaveData));\
}\
int derivedClass::Restore_(CRestore &restore)\
{\
if(!baseClass::Restore(restore))\
return 0;\
return restore.ReadFields(#derivedClass, this, (*pm_SaveData), ARRAYSIZE(*pm_SaveData));\
}
#endif // HOOK_GAMEDLL
typedef enum
{
GLOBAL_OFF,
GLOBAL_ON,
GLOBAL_DEAD
} GLOBALESTATE;
typedef struct globalentity_s
{
char name[64];
char levelName[32];
GLOBALESTATE state;
struct globalentity_s *pNext;
} globalentity_t;
typedef struct
{
unsigned short size;
unsigned short token;
char *pData;
} HEADER;
class CBaseEntity;
/* <39a4f3> ../cstrike/dlls/saverestore.h:33 */
class CSaveRestoreBuffer
{
public:
CSaveRestoreBuffer(void);
CSaveRestoreBuffer(SAVERESTOREDATA *pdata);
~CSaveRestoreBuffer(void);
int EntityIndex(entvars_t *pevLookup);
int EntityIndex(edict_t *pentLookup);
int EntityIndex(EOFFSET eoLookup);
int EntityIndex(CBaseEntity *pEntity);
int EntityFlags(int entityIndex, int flags = 0)
{
return EntityFlagsSet(entityIndex, flags);
}
int EntityFlagsSet(int entityIndex, int flags);
edict_t *EntityFromIndex(int entityIndex);
unsigned short TokenHash(const char *pszToken);
protected:
SAVERESTOREDATA *m_pdata;
void BufferRewind(int size);
unsigned int HashString(const char *pszToken);
};/* size: 4, cachelines: 1, members: 1 */
/* <19e94e> ../cstrike/dlls/saverestore.h:50 */
class CSave: public CSaveRestoreBuffer
{
public:
CSave(SAVERESTOREDATA *pdata) : CSaveRestoreBuffer(pdata) {};
void WriteShort(const char *pname, const short *value, int count);
void WriteInt(const char *pname, const int *value, int count);
void WriteFloat(const char *pname, const float *value, int count);
void WriteTime(const char *pname, const float *value, int count);
void WriteData(const char *pname, int size, const char *pdata);
void WriteString(const char *pname, const char *pstring);
void WriteString(const char *pname, const int *stringId, int count);
void WriteVector(const char *pname, const Vector &value);
void WriteVector(const char *pname, const float *value, int count);
void WritePositionVector(const char *pname, const Vector &value);
void WritePositionVector(const char *pname, const float *value, int count);
void WriteFunction(const char *pname, void **data, int count);
int WriteEntVars(const char *pname, entvars_t *pev);
int WriteFields(const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount);
private:
#ifdef HOOK_GAMEDLL
public:
#endif // HOOK_GAMEDLL
int DataEmpty(const char *pdata, int size);
void BufferField(const char *pname, int size, const char *pdata);
void BufferString(char *pdata, int len);
void BufferData(const char *pdata, int size);
void BufferHeader(const char *pname, int size);
};/* size: 4, cachelines: 1, members: 1 */
/* <1d9f06> ../cstrike/dlls/saverestore.h:82 */
class CRestore: public CSaveRestoreBuffer
{
public:
CRestore(SAVERESTOREDATA *pdata) : CSaveRestoreBuffer(pdata)
{
m_global = 0;
m_precache = TRUE;
}
int ReadEntVars(const char *pname, entvars_t *pev);
int ReadFields(const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount);
int ReadField(void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount, int startField, int size, char *pName, void *pData);
int ReadInt(void);
short ReadShort(void);
int ReadNamedInt(const char *pName);
char *ReadNamedString(const char *pName);
inline int Empty(void)
{
return (m_pdata == NULL || ((m_pdata->pCurrentData - m_pdata->pBaseData) >= m_pdata->bufferSize));
}
inline void SetGlobalMode(int global)
{
m_global = global;
}
inline void PrecacheMode(BOOL mode)
{
m_precache = mode;
}
#ifdef HOOK_GAMEDLL
public:
#else
private:
#endif // HOOK_GAMEDLL
char *BufferPointer(void);
void BufferReadBytes(char *pOutput, int size);
void BufferSkipBytes(int bytes);
int BufferSkipZString(void);
int BufferCheckZString(const char *string);
void BufferReadHeader(HEADER *pheader);
private:
int m_global;
BOOL m_precache;
};/* size: 12, cachelines: 1, members: 3 */
/* <245f6> ../cstrike/dlls/saverestore.h:153 */
class CGlobalState
{
public:
NOBODY CGlobalState();
NOBODY void Reset(void);
NOBODY void ClearStates(void);
NOBODY void EntityAdd(string_t globalname, string_t mapName, GLOBALESTATE state);
void EntitySetState(string_t globalname, GLOBALESTATE state);
NOBODY void EntityUpdate(string_t globalname, string_t mapname);
NOBODY const globalentity_t *EntityFromTable(string_t globalname);
NOBODY GLOBALESTATE EntityGetState(string_t globalname);
int EntityInTable(string_t globalname)
{
if(Find(globalname) != NULL)
return 1;
return 0;
}
NOBODY int Save(CSave &save);
NOBODY int Restore(CRestore &restore);
void DumpGlobals(void);
static TYPEDESCRIPTION IMPLEMENT_ARRAY(m_SaveData)[1];
#ifdef HOOK_GAMEDLL
public:
#else
private:
#endif // HOOK_GAMEDLL
globalentity_t *Find(string_t globalname);
private:
globalentity_t *m_pList;
int m_listCount;
};/* size: 8, cachelines: 1, members: 3 */
#endif // SAVERESTORE_H
(*baseClass::p##var)
#define IMPLEMENT_SAVERESTORE(derivedClass, baseClass)\
int derivedClass::Save_(CSave &save)\
{\
if (!baseClass::Save(save))\
return 0;\
return save.WriteFields(#derivedClass, this, (*pm_SaveData), ARRAYSIZE(*pm_SaveData));\
}\
int derivedClass::Restore_(CRestore &restore)\
{\
if (!baseClass::Restore(restore))\
return 0;\
return restore.ReadFields(#derivedClass, this, (*pm_SaveData), ARRAYSIZE(*pm_SaveData));\
}
#endif // HOOK_GAMEDLL
typedef enum
{
GLOBAL_OFF,
GLOBAL_ON,
GLOBAL_DEAD
} GLOBALESTATE;
typedef struct globalentity_s
{
char name[64];
char levelName[32];
GLOBALESTATE state;
struct globalentity_s *pNext;
} globalentity_t;
typedef struct
{
unsigned short size;
unsigned short token;
char *pData;
} HEADER;
class CBaseEntity;
/* <39a4f3> ../cstrike/dlls/saverestore.h:33 */
class CSaveRestoreBuffer
{
public:
CSaveRestoreBuffer(void);
CSaveRestoreBuffer(SAVERESTOREDATA *pdata);
~CSaveRestoreBuffer(void);
int EntityIndex(entvars_t *pevLookup);
int EntityIndex(edict_t *pentLookup);
int EntityIndex(EOFFSET eoLookup);
int EntityIndex(CBaseEntity *pEntity);
int EntityFlags(int entityIndex, int flags = 0)
{
return EntityFlagsSet(entityIndex, flags);
}
int EntityFlagsSet(int entityIndex, int flags);
edict_t *EntityFromIndex(int entityIndex);
unsigned short TokenHash(const char *pszToken);
protected:
SAVERESTOREDATA *m_pdata;
void BufferRewind(int size);
unsigned int HashString(const char *pszToken);
};/* size: 4, cachelines: 1, members: 1 */
/* <19e94e> ../cstrike/dlls/saverestore.h:50 */
class CSave: public CSaveRestoreBuffer
{
public:
CSave(SAVERESTOREDATA *pdata) : CSaveRestoreBuffer(pdata) {};
void WriteShort(const char *pname, const short *value, int count);
void WriteInt(const char *pname, const int *value, int count);
void WriteFloat(const char *pname, const float *value, int count);
void WriteTime(const char *pname, const float *value, int count);
void WriteData(const char *pname, int size, const char *pdata);
void WriteString(const char *pname, const char *pstring);
void WriteString(const char *pname, const int *stringId, int count);
void WriteVector(const char *pname, const Vector &value);
void WriteVector(const char *pname, const float *value, int count);
void WritePositionVector(const char *pname, const Vector &value);
void WritePositionVector(const char *pname, const float *value, int count);
void WriteFunction(const char *pname, void **data, int count);
int WriteEntVars(const char *pname, entvars_t *pev);
int WriteFields(const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount);
private:
#ifdef HOOK_GAMEDLL
public:
#endif // HOOK_GAMEDLL
int DataEmpty(const char *pdata, int size);
void BufferField(const char *pname, int size, const char *pdata);
void BufferString(char *pdata, int len);
void BufferData(const char *pdata, int size);
void BufferHeader(const char *pname, int size);
};/* size: 4, cachelines: 1, members: 1 */
/* <1d9f06> ../cstrike/dlls/saverestore.h:82 */
class CRestore: public CSaveRestoreBuffer
{
public:
CRestore(SAVERESTOREDATA *pdata) : CSaveRestoreBuffer(pdata)
{
m_global = 0;
m_precache = TRUE;
}
int ReadEntVars(const char *pname, entvars_t *pev);
int ReadFields(const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount);
int ReadField(void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount, int startField, int size, char *pName, void *pData);
int ReadInt(void);
short ReadShort(void);
int ReadNamedInt(const char *pName);
char *ReadNamedString(const char *pName);
inline int Empty(void)
{
return (m_pdata == NULL || ((m_pdata->pCurrentData - m_pdata->pBaseData) >= m_pdata->bufferSize));
}
inline void SetGlobalMode(int global)
{
m_global = global;
}
inline void PrecacheMode(BOOL mode)
{
m_precache = mode;
}
#ifdef HOOK_GAMEDLL
public:
#else
private:
#endif // HOOK_GAMEDLL
char *BufferPointer(void);
void BufferReadBytes(char *pOutput, int size);
void BufferSkipBytes(int bytes);
int BufferSkipZString(void);
int BufferCheckZString(const char *string);
void BufferReadHeader(HEADER *pheader);
private:
int m_global;
BOOL m_precache;
};/* size: 12, cachelines: 1, members: 3 */
/* <245f6> ../cstrike/dlls/saverestore.h:153 */
class CGlobalState
{
public:
NOBODY CGlobalState();
NOBODY void Reset(void);
NOBODY void ClearStates(void);
NOBODY void EntityAdd(string_t globalname, string_t mapName, GLOBALESTATE state);
void EntitySetState(string_t globalname, GLOBALESTATE state);
NOBODY void EntityUpdate(string_t globalname, string_t mapname);
NOBODY const globalentity_t *EntityFromTable(string_t globalname);
NOBODY GLOBALESTATE EntityGetState(string_t globalname);
int EntityInTable(string_t globalname)
{
if (Find(globalname) != NULL)
return 1;
return 0;
}
NOBODY int Save(CSave &save);
NOBODY int Restore(CRestore &restore);
void DumpGlobals(void);
static TYPEDESCRIPTION IMPLEMENT_ARRAY(m_SaveData)[1];
#ifdef HOOK_GAMEDLL
public:
#else
private:
#endif // HOOK_GAMEDLL
globalentity_t *Find(string_t globalname);
private:
globalentity_t *m_pList;
int m_listCount;
};/* size: 8, cachelines: 1, members: 3 */
#endif // SAVERESTORE_H

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +1,38 @@
#include "precompiled.h"
NOXREF void CBaseSpectator::SpectatorConnect(void)
{
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
m_pGoalEnt = NULL;
}
void CBaseSpectator::SpectatorDisconnect(void)
{
;
}
/* <17d35d> ../cstrike/dlls/spectator.cpp:61 */
void CBaseSpectator::SpectatorImpulseCommand(void)
{
static edict_t *pGoal = NULL;
#include "precompiled.h"
NOXREF void CBaseSpectator::SpectatorConnect(void)
{
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
m_pGoalEnt = NULL;
}
void CBaseSpectator::SpectatorDisconnect(void)
{
;
}
/* <17d35d> ../cstrike/dlls/spectator.cpp:61 */
void CBaseSpectator::SpectatorImpulseCommand(void)
{
static edict_t *pGoal = NULL;
edict_t *pPreviousGoal;
edict_t *pCurrentGoal;
BOOL bFound;
edict_t *pCurrentGoal;
BOOL bFound;
switch (pev->impulse)
{
case 1:
{
// teleport the spectator to the next spawn point
// note that if the spectator is tracking, this doesn't do
// much
pPreviousGoal = pGoal;
pCurrentGoal = pGoal;
// Start at the current goal, skip the world, and stop if we looped
// teleport the spectator to the next spawn point
// note that if the spectator is tracking, this doesn't do
// much
pPreviousGoal = pGoal;
pCurrentGoal = pGoal;
// Start at the current goal, skip the world, and stop if we looped
// back around
bFound = FALSE;
@ -71,36 +71,36 @@ void CBaseSpectator::SpectatorImpulseCommand(void)
break;
}
pev->impulse = 0;
}
NOXREF void CBaseSpectator::SpectatorThink(void)
{
if (!(pev->flags & FL_SPECTATOR))
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
if (pev->impulse)
SpectatorImpulseCommand();
}
/* <17d297> ../cstrike/dlls/spectator.cpp:142 */
NOXREF void CBaseSpectator::Spawn_(void)
{
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
m_pGoalEnt = NULL;
}
#ifdef HOOK_GAMEDLL
void CBaseSpectator::Spawn(void)
{
Spawn_();
}
#endif // HOOK_GAMEDLL
pev->impulse = 0;
}
NOXREF void CBaseSpectator::SpectatorThink(void)
{
if (!(pev->flags & FL_SPECTATOR))
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
if (pev->impulse)
SpectatorImpulseCommand();
}
/* <17d297> ../cstrike/dlls/spectator.cpp:142 */
NOXREF void CBaseSpectator::Spawn_(void)
{
pev->flags = FL_SPECTATOR;
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NOCLIP;
m_pGoalEnt = NULL;
}
#ifdef HOOK_GAMEDLL
void CBaseSpectator::Spawn(void)
{
Spawn_();
}
#endif // HOOK_GAMEDLL

View File

@ -1,69 +1,69 @@
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef SUBS_H
#define SUBS_H
#ifdef _WIN32
#pragma once
#endif
/* <182770> ../cstrike/dlls/subs.cpp:45 */
class CNullEntity: public CBaseEntity
{
public:
NOBODY virtual void Spawn(void);
/*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef SUBS_H
#define SUBS_H
#ifdef _WIN32
#pragma once
#endif
/* <182770> ../cstrike/dlls/subs.cpp:45 */
class CNullEntity: public CBaseEntity
{
public:
NOBODY virtual void Spawn(void);
#ifdef HOOK_GAMEDLL
void Spawn_(void);
#endif // HOOK_GAMEDLL
};/* size: 152, cachelines: 3, members: 1 */
/* <1827de> ../cstrike/dlls/subs.cpp:59 */
class CBaseDMStart: public CPointEntity
{
public:
NOBODY virtual void KeyValue(KeyValueData *pkvd);
NOBODY virtual BOOL IsTriggered(CBaseEntity *pEntity);
#endif // HOOK_GAMEDLL
};/* size: 152, cachelines: 3, members: 1 */
/* <1827de> ../cstrike/dlls/subs.cpp:59 */
class CBaseDMStart: public CPointEntity
{
public:
NOBODY virtual void KeyValue(KeyValueData *pkvd);
NOBODY virtual BOOL IsTriggered(CBaseEntity *pEntity);
#ifdef HOOK_GAMEDLL
void KeyValue_(KeyValueData *pkvd);
void KeyValue_(KeyValueData *pkvd);
BOOL IsTriggered_(CBaseEntity *pEntity);
#endif // HOOK_GAMEDLL
};/* size: 152, cachelines: 3, members: 1 */
void FireTargets(const char *targetName, CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value);
void SetMovedir(entvars_t *pev);
NOBODY BOOL FEntIsVisible(entvars_t *pev, entvars_t *pevTarget);
#endif // HOOK_GAMEDLL
};/* size: 152, cachelines: 3, members: 1 */
void FireTargets(const char *targetName, CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value);
void SetMovedir(entvars_t *pev);
NOBODY BOOL FEntIsVisible(entvars_t *pev, entvars_t *pevTarget);
#endif // SUBS_H

View File

@ -1,66 +1,66 @@
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
TYPEDESCRIPTION CFuncWeaponCheck::m_SaveData[] =
{
DEFINE_FIELD(CFuncWeaponCheck, sTriggerWithItems, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, sTriggerNoItems, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, iItemCount, FIELD_INTEGER),
DEFINE_ARRAY(CFuncWeaponCheck, sMaster, FIELD_STRING, MAX_ITEM_COUNTS),
DEFINE_FIELD(CFuncWeaponCheck, sItemName, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, iAnyWeapon, FIELD_INTEGER),
};
TYPEDESCRIPTION CBaseGrenCatch::m_SaveData[] =
{
DEFINE_FIELD(CBaseGrenCatch, m_NeedGrenadeType, FIELD_INTEGER),
DEFINE_FIELD(CBaseGrenCatch, m_fSmokeTouching, FIELD_BOOLEAN),
DEFINE_FIELD(CBaseGrenCatch, m_fFlashTouched, FIELD_BOOLEAN),
DEFINE_FIELD(CBaseGrenCatch, sTriggerOnGrenade, FIELD_STRING),
DEFINE_FIELD(CBaseGrenCatch, sDisableOnGrenade, FIELD_STRING),
};
#else
TYPEDESCRIPTION (*CFuncWeaponCheck::pm_SaveData)[6];
TYPEDESCRIPTION (*CBaseGrenCatch::pm_SaveData)[5];
#endif // HOOK_GAMEDLL
/* <18bcc4> ../cstrike/dlls/training_gamerules.cpp:23 */
NOBODY CHalfLifeTraining::CHalfLifeTraining(void)
{
PRECACHE_MODEL("models/w_weaponbox.mdl");
}
/* <18ae1b> ../cstrike/dlls/training_gamerules.cpp:27 */
BOOL CHalfLifeTraining::IsDeathmatch_(void)
{
return FALSE;
}
/* <18ae41> ../cstrike/dlls/training_gamerules.cpp:28 */
void CHalfLifeTraining::InitHUD_(CBasePlayer *pl)
{
;
}
/* <18bcff> ../cstrike/dlls/training_gamerules.cpp:29 */
void CHalfLifeTraining::HostageDied(void)
{
#include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
TYPEDESCRIPTION CFuncWeaponCheck::m_SaveData[] =
{
DEFINE_FIELD(CFuncWeaponCheck, sTriggerWithItems, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, sTriggerNoItems, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, iItemCount, FIELD_INTEGER),
DEFINE_ARRAY(CFuncWeaponCheck, sMaster, FIELD_STRING, MAX_ITEM_COUNTS),
DEFINE_FIELD(CFuncWeaponCheck, sItemName, FIELD_STRING),
DEFINE_FIELD(CFuncWeaponCheck, iAnyWeapon, FIELD_INTEGER),
};
TYPEDESCRIPTION CBaseGrenCatch::m_SaveData[] =
{
DEFINE_FIELD(CBaseGrenCatch, m_NeedGrenadeType, FIELD_INTEGER),
DEFINE_FIELD(CBaseGrenCatch, m_fSmokeTouching, FIELD_BOOLEAN),
DEFINE_FIELD(CBaseGrenCatch, m_fFlashTouched, FIELD_BOOLEAN),
DEFINE_FIELD(CBaseGrenCatch, sTriggerOnGrenade, FIELD_STRING),
DEFINE_FIELD(CBaseGrenCatch, sDisableOnGrenade, FIELD_STRING),
};
#else
TYPEDESCRIPTION (*CFuncWeaponCheck::pm_SaveData)[6];
TYPEDESCRIPTION (*CBaseGrenCatch::pm_SaveData)[5];
#endif // HOOK_GAMEDLL
/* <18bcc4> ../cstrike/dlls/training_gamerules.cpp:23 */
NOBODY CHalfLifeTraining::CHalfLifeTraining(void)
{
PRECACHE_MODEL("models/w_weaponbox.mdl");
}
/* <18ae1b> ../cstrike/dlls/training_gamerules.cpp:27 */
BOOL CHalfLifeTraining::IsDeathmatch_(void)
{
return FALSE;
}
/* <18ae41> ../cstrike/dlls/training_gamerules.cpp:28 */
void CHalfLifeTraining::InitHUD_(CBasePlayer *pl)
{
;
}
/* <18bcff> ../cstrike/dlls/training_gamerules.cpp:29 */
void CHalfLifeTraining::HostageDied(void)
{
CBasePlayer *pPlayer = (CBasePlayer *)UTIL_PlayerByIndex(1);
if (pPlayer)
pPlayer->pev->radsuit_finished = gpGlobals->time + 3;
}
/* <18b005> ../cstrike/dlls/training_gamerules.cpp:34 */
edict_t *CHalfLifeTraining::GetPlayerSpawnSpot_(CBasePlayer *pPlayer)
{
pPlayer->pev->radsuit_finished = gpGlobals->time + 3;
}
/* <18b005> ../cstrike/dlls/training_gamerules.cpp:34 */
edict_t *CHalfLifeTraining::GetPlayerSpawnSpot_(CBasePlayer *pPlayer)
{
CBaseEntity *pSpot = UTIL_FindEntityByClassname(NULL, "info_player_start");
if (FNullEnt(pSpot))
@ -76,37 +76,37 @@ edict_t *CHalfLifeTraining::GetPlayerSpawnSpot_(CBasePlayer *pPlayer)
pPlayer->pev->punchangle = g_vecZero;
pPlayer->pev->fixangle = 1;
return pSpot->edict();
}
/* <18b4aa> ../cstrike/dlls/training_gamerules.cpp:52 */
NOBODY void CHalfLifeTraining::PlayerThink_(CBasePlayer *pPlayer)
{
// {
// class CGrenade *pBomb; // 94
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 81
// {
// class CBasePlayerWeapon *pWeapon; // 82
// }
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 124
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 127
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 105
// }
}
/* <18b79c> ../cstrike/dlls/training_gamerules.cpp:151 */
void CHalfLifeTraining::PlayerSpawn_(CBasePlayer *pPlayer)
{
return pSpot->edict();
}
/* <18b4aa> ../cstrike/dlls/training_gamerules.cpp:52 */
NOBODY void CHalfLifeTraining::PlayerThink_(CBasePlayer *pPlayer)
{
// {
// class CGrenade *pBomb; // 94
// FClassnameIs(entvars_t *pev,
// const char *szClassname); // 81
// {
// class CBasePlayerWeapon *pWeapon; // 82
// }
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 124
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 127
// MESSAGE_BEGIN(int msg_dest,
// int msg_type,
// const float *pOrigin,
// entvars_t *ent); // 105
// }
}
/* <18b79c> ../cstrike/dlls/training_gamerules.cpp:151 */
void CHalfLifeTraining::PlayerSpawn_(CBasePlayer *pPlayer)
{
if (pPlayer->m_bNotKilled)
return;
@ -130,162 +130,162 @@ void CHalfLifeTraining::PlayerSpawn_(CBasePlayer *pPlayer)
pPlayer->SetPlayerModel(false);
pPlayer->Spawn();
pPlayer->m_iHideHUD |= (HIDEHUD_WEAPONS | HIDEHUD_HEALTH | HIDEHUD_TIMER | HIDEHUD_MONEY);
}
/* <18ae74> ../cstrike/dlls/training_gamerules.cpp:182 */
NOBODY int CHalfLifeTraining::ItemShouldRespawn_(CItem *pItem)
{
}
/* <18aea8> ../cstrike/dlls/training_gamerules.cpp:186 */
NOBODY BOOL CHalfLifeTraining::FPlayerCanRespawn_(CBasePlayer *pPlayer)
{
}
/* <18bd40> ../cstrike/dlls/training_gamerules.cpp:190 */
NOBODY bool CHalfLifeTraining::PlayerCanBuy(CBasePlayer *pPlayer)
{
}
/* <18afa5> ../cstrike/dlls/training_gamerules.cpp:195 */
NOBODY void CHalfLifeTraining::PlayerKilled_(CBasePlayer *pVictim, entvars_t *pKiller, entvars_t *pInflictor)
{
// edict(CBaseEntity *const this); // 198
}
/* <18b0fb> ../cstrike/dlls/training_gamerules.cpp:202 */
NOBODY void CHalfLifeTraining::CheckWinConditions_(void)
{
// {
// class CBaseEntity *pHostage; // 229
// {
// class CGrenade *pBomb; // 217
// Instance(edict_t *pent); // 225
// Instance(edict_t *pent); // 225
// }
// {
// class CGrenade *pBomb; // 205
// Instance(edict_t *pent); // 213
// Instance(edict_t *pent); // 213
// }
// FIND_ENTITY_BY_CLASSNAME(edict_t *entStart,
// const char *pszName); // 229
// Instance(edict_t *pent); // 229
// {
// class CBaseEntity *pRescueArea; // 236
// class CBaseEntity *pFirstRescueArea; // 237
// FIND_ENTITY_BY_CLASSNAME(edict_t *entStart,
// const char *pszName); // 236
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 235
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 235
// Instance(edict_t *pent); // 236
// }
// }
}
/* <18b74f> ../cstrike/dlls/training_gamerules.cpp:280 */
IMPLEMENT_SAVERESTORE(CBaseGrenCatch, CBaseEntity);
/* <18bd74> ../cstrike/dlls/training_gamerules.cpp:282 */
LINK_ENTITY_TO_CLASS(func_grencatch, CBaseGrenCatch);
/* <18af50> ../cstrike/dlls/training_gamerules.cpp:293 */
NOBODY void CBaseGrenCatch::Touch_(CBaseEntity *pOther)
{
// strstr(const char *__haystack,
// const char *__needle); // 297
}
/* <18af02> ../cstrike/dlls/training_gamerules.cpp:284 */
NOBODY void CBaseGrenCatch::Spawn_(void)
{
}
/* <18b835> ../cstrike/dlls/training_gamerules.cpp:300 */
NOBODY void CBaseGrenCatch::Think_(void)
{
// {
// class CGrenade *pGrenade; // 302
// BOOL m_fSmokeTouchingLastFrame; // 304
// class CBaseEntity *pTrigger; // 320
// {
// class Vector vMax; // 311
// class Vector vMin; // 311
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 312
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 312
// Vector(Vector *const this,
// const class Vector &const v); // 311
// Vector(Vector *const this,
// const class Vector &const v); // 311
// strstr(const char *__haystack,
// const char *__needle); // 314
// Length(const class Vector *const this); // 315
// }
// }
}
/* <18ba09> ../cstrike/dlls/training_gamerules.cpp:358 */
NOBODY void CBaseGrenCatch::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 360
// FStrEq(const char *sz1,
// const char *sz2); // 365
// FStrEq(const char *sz1,
// const char *sz2); // 370
// FStrEq(const char *sz1,
// const char *sz2); // 372
// KeyValue(CBaseEntity *const this,
// KeyValueData *pkvd); // 376
// FStrEq(const char *sz1,
// const char *sz2); // 373
}
/* <18af29> ../cstrike/dlls/training_gamerules.cpp:400 */
NOBODY void CFuncWeaponCheck::Spawn_(void)
{
}
/* <18b702> ../cstrike/dlls/training_gamerules.cpp:420 */
IMPLEMENT_SAVERESTORE(CFuncWeaponCheck, CBaseEntity);
/* <18be46> ../cstrike/dlls/training_gamerules.cpp:422 */
LINK_ENTITY_TO_CLASS(func_weaponcheck, CFuncWeaponCheck);
/* <18b5f6> ../cstrike/dlls/training_gamerules.cpp:424 */
NOBODY void CFuncWeaponCheck::Touch_(CBaseEntity *pOther)
{
// {
// class CBasePlayer *pPlayer; // 430
// }
// Touch(CFuncWeaponCheck *const this,
// class CBaseEntity *pOther); // 424
}
/* <18bb28> ../cstrike/dlls/training_gamerules.cpp:462 */
NOBODY void CFuncWeaponCheck::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 464
// FStrEq(const char *sz1,
// const char *sz2); // 469
// KeyValue(CFuncWeaponCheck *const this,
// KeyValueData *pkvd); // 462
}
pPlayer->m_iHideHUD |= (HIDEHUD_WEAPONS | HIDEHUD_HEALTH | HIDEHUD_TIMER | HIDEHUD_MONEY);
}
/* <18ae74> ../cstrike/dlls/training_gamerules.cpp:182 */
NOBODY int CHalfLifeTraining::ItemShouldRespawn_(CItem *pItem)
{
}
/* <18aea8> ../cstrike/dlls/training_gamerules.cpp:186 */
NOBODY BOOL CHalfLifeTraining::FPlayerCanRespawn_(CBasePlayer *pPlayer)
{
}
/* <18bd40> ../cstrike/dlls/training_gamerules.cpp:190 */
NOBODY bool CHalfLifeTraining::PlayerCanBuy(CBasePlayer *pPlayer)
{
}
/* <18afa5> ../cstrike/dlls/training_gamerules.cpp:195 */
NOBODY void CHalfLifeTraining::PlayerKilled_(CBasePlayer *pVictim, entvars_t *pKiller, entvars_t *pInflictor)
{
// edict(CBaseEntity *const this); // 198
}
/* <18b0fb> ../cstrike/dlls/training_gamerules.cpp:202 */
NOBODY void CHalfLifeTraining::CheckWinConditions_(void)
{
// {
// class CBaseEntity *pHostage; // 229
// {
// class CGrenade *pBomb; // 217
// Instance(edict_t *pent); // 225
// Instance(edict_t *pent); // 225
// }
// {
// class CGrenade *pBomb; // 205
// Instance(edict_t *pent); // 213
// Instance(edict_t *pent); // 213
// }
// FIND_ENTITY_BY_CLASSNAME(edict_t *entStart,
// const char *pszName); // 229
// Instance(edict_t *pent); // 229
// {
// class CBaseEntity *pRescueArea; // 236
// class CBaseEntity *pFirstRescueArea; // 237
// FIND_ENTITY_BY_CLASSNAME(edict_t *entStart,
// const char *pszName); // 236
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 235
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 235
// Instance(edict_t *pent); // 236
// }
// }
}
/* <18b74f> ../cstrike/dlls/training_gamerules.cpp:280 */
IMPLEMENT_SAVERESTORE(CBaseGrenCatch, CBaseEntity);
/* <18bd74> ../cstrike/dlls/training_gamerules.cpp:282 */
LINK_ENTITY_TO_CLASS(func_grencatch, CBaseGrenCatch);
/* <18af50> ../cstrike/dlls/training_gamerules.cpp:293 */
NOBODY void CBaseGrenCatch::Touch_(CBaseEntity *pOther)
{
// strstr(const char *__haystack,
// const char *__needle); // 297
}
/* <18af02> ../cstrike/dlls/training_gamerules.cpp:284 */
NOBODY void CBaseGrenCatch::Spawn_(void)
{
}
/* <18b835> ../cstrike/dlls/training_gamerules.cpp:300 */
NOBODY void CBaseGrenCatch::Think_(void)
{
// {
// class CGrenade *pGrenade; // 302
// BOOL m_fSmokeTouchingLastFrame; // 304
// class CBaseEntity *pTrigger; // 320
// {
// class Vector vMax; // 311
// class Vector vMin; // 311
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 312
// Vector(Vector *const this,
// float X,
// float Y,
// float Z); // 312
// Vector(Vector *const this,
// const class Vector &const v); // 311
// Vector(Vector *const this,
// const class Vector &const v); // 311
// strstr(const char *__haystack,
// const char *__needle); // 314
// Length(const class Vector *const this); // 315
// }
// }
}
/* <18ba09> ../cstrike/dlls/training_gamerules.cpp:358 */
NOBODY void CBaseGrenCatch::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 360
// FStrEq(const char *sz1,
// const char *sz2); // 365
// FStrEq(const char *sz1,
// const char *sz2); // 370
// FStrEq(const char *sz1,
// const char *sz2); // 372
// KeyValue(CBaseEntity *const this,
// KeyValueData *pkvd); // 376
// FStrEq(const char *sz1,
// const char *sz2); // 373
}
/* <18af29> ../cstrike/dlls/training_gamerules.cpp:400 */
NOBODY void CFuncWeaponCheck::Spawn_(void)
{
}
/* <18b702> ../cstrike/dlls/training_gamerules.cpp:420 */
IMPLEMENT_SAVERESTORE(CFuncWeaponCheck, CBaseEntity);
/* <18be46> ../cstrike/dlls/training_gamerules.cpp:422 */
LINK_ENTITY_TO_CLASS(func_weaponcheck, CFuncWeaponCheck);
/* <18b5f6> ../cstrike/dlls/training_gamerules.cpp:424 */
NOBODY void CFuncWeaponCheck::Touch_(CBaseEntity *pOther)
{
// {
// class CBasePlayer *pPlayer; // 430
// }
// Touch(CFuncWeaponCheck *const this,
// class CBaseEntity *pOther); // 424
}
/* <18bb28> ../cstrike/dlls/training_gamerules.cpp:462 */
NOBODY void CFuncWeaponCheck::KeyValue_(KeyValueData *pkvd)
{
// FStrEq(const char *sz1,
// const char *sz2); // 464
// FStrEq(const char *sz1,
// const char *sz2); // 469
// KeyValue(CFuncWeaponCheck *const this,
// KeyValueData *pkvd); // 462
}
#ifdef HOOK_GAMEDLL
void CBaseGrenCatch::Spawn(void)

File diff suppressed because it is too large Load Diff

View File

@ -207,16 +207,16 @@ private:
/* <19dfe1> ../cstrike/dlls/triggers.cpp:293 */
inline BOOL IsClone(void)
{
if(pev->spawnflags & SF_MULTIMAN_CLONE)
if (pev->spawnflags & SF_MULTIMAN_CLONE)
return TRUE;
return FALSE;
}
/* <19e4f3> ../cstrike/dlls/triggers.cpp:294 */
inline BOOL ShouldClone(void)
{
if(IsClone())
if (IsClone())
return FALSE;
if(pev->spawnflags & SF_MULTIMAN_THREAD)
if (pev->spawnflags & SF_MULTIMAN_THREAD)
return TRUE;
return FALSE;
}

File diff suppressed because it is too large Load Diff

View File

@ -224,7 +224,7 @@ inline EOFFSET OFFSET(const entvars_t *pev)
/* <4631> ../cstrike/dlls/util.h:180 */
inline entvars_t *VARS(edict_t *pent)
{
if(!pent)
if (!pent)
return NULL;
return &pent->v;

File diff suppressed because it is too large Load Diff

View File

@ -497,7 +497,7 @@ uchar16 *StripUnprintableWorker(uchar16 *pwch, bool *pbStrippedAny)
uchar16 *pwchDest = pwch;
*pbStrippedAny = 0;
while(*pwchSource)
while (*pwchSource)
{
uchar16 cc = *pwchSource;
if (*pwchSource >= 0x20u && !Q_IsUnprintableW(cc) && cc != 0x2026)

View File

@ -95,7 +95,7 @@ inline CBitVecAccessor::CBitVecAccessor(uint32 *pDWords, int iBit)
/* <2d37d7> ../game_shared/bitvec.h:80 */
inline void CBitVecAccessor::operator=(int val)
{
if(val)
if (val)
m_pDWords[m_iBit >> 5] |= (1 << (m_iBit & 31));
else
m_pDWords[m_iBit >> 5] &= ~(uint32)(1 << (m_iBit & 31));
@ -118,7 +118,7 @@ inline int CBitVec<NUM_BITS>::GetNumBits()
template<int NUM_BITS>
inline CBitVec<NUM_BITS>::CBitVec()
{
for(int i = 0; i < NUM_DWORDS; i++)
for (int i = 0; i < NUM_DWORDS; i++)
m_DWords[i] = 0;
}
@ -126,7 +126,7 @@ inline CBitVec<NUM_BITS>::CBitVec()
template<int NUM_BITS>
inline void CBitVec<NUM_BITS>::Init(int val)
{
for(int i = 0; i < GetNumBits(); i++)
for (int i = 0; i < GetNumBits(); i++)
{
(*this)[i] = val;
}
@ -152,8 +152,8 @@ inline CBitVecAccessor CBitVec<NUM_BITS>::operator[](int i)
template<int NUM_BITS>
inline bool CBitVec<NUM_BITS>::operator==(CBitVec<NUM_BITS> const &other)
{
for(int i = 0; i < NUM_DWORDS; i++)
if(m_DWords[i] != other.m_DWords[i])
for (int i = 0; i < NUM_DWORDS; i++)
if (m_DWords[i] != other.m_DWords[i])
return false;
return true;

View File

@ -29,7 +29,7 @@ const float smokeRadius = 115.0f; ///< for smoke grenades
/* <49f6d7> ../game_shared/bot/bot_manager.cpp:58 */
NOBODY GameEventType NameToGameEvent(const char *name)
{
/*for(int i=0; GameEventName[i]; ++i)
/*for (int i=0; GameEventName[i]; ++i)
if (!Q_stricmp(GameEventName[i], name))
return static_cast<GameEventType>(i);*/
@ -58,7 +58,7 @@ void CBotManager::StartFrame_(void)
Vector edge, lastEdge;
ActiveGrenadeList::iterator iter = m_activeGrenadeList.begin();
while(iter != m_activeGrenadeList.end())
while (iter != m_activeGrenadeList.end())
{
ActiveGrenade *ag = *iter;
@ -78,7 +78,7 @@ void CBotManager::StartFrame_(void)
lastEdge = Vector(smokeRadius + pos->x, pos->y, pos->z);
float angle;
for(angle = 0.0f; angle <= 180.0f; angle += 22.5f)
for (angle = 0.0f; angle <= 180.0f; angle += 22.5f)
{
edge.x = smokeRadius * BotCOS(angle) + pos->x;
edge.y = pos->y;
@ -90,7 +90,7 @@ void CBotManager::StartFrame_(void)
}
lastEdge = Vector(pos->x, smokeRadius + pos->y, pos->z);
for(angle = 0.0f; angle <= 180.0f; angle += 22.5f)
for (angle = 0.0f; angle <= 180.0f; angle += 22.5f)
{
edge.x = pos->x;
edge.y = smokeRadius * BotCOS(angle) + pos->y;
@ -174,7 +174,7 @@ void CBotManager::AddGrenade(int type, CGrenade *grenade)
/* <49f95a> ../game_shared/bot/bot_manager.cpp:267 */
void CBotManager::RemoveGrenade(CGrenade *grenade)
{
for(ActiveGrenadeList::iterator iter = m_activeGrenadeList.begin(); iter != m_activeGrenadeList.end(); ++iter)
for (ActiveGrenadeList::iterator iter = m_activeGrenadeList.begin(); iter != m_activeGrenadeList.end(); ++iter)
{
ActiveGrenade *ag = *iter;
@ -253,7 +253,7 @@ bool CBotManager::IsLineBlockedBySmoke(const Vector *from, const Vector *to)
float sightLength = sightDir.NormalizeInPlace();
ActiveGrenadeList::iterator iter = m_activeGrenadeList.begin();
while(iter != m_activeGrenadeList.end())
while (iter != m_activeGrenadeList.end())
{
ActiveGrenade *ag = *iter;

View File

@ -183,7 +183,7 @@ inline void BotProfile::Inherit(const BotProfile *parent, const BotProfile *base
if (parent->m_weaponPreferenceCount != baseline->m_weaponPreferenceCount)
{
m_weaponPreferenceCount = parent->m_weaponPreferenceCount;
for(int i = 0; i<parent->m_weaponPreferenceCount; i++)
for (int i = 0; i<parent->m_weaponPreferenceCount; i++)
m_weaponPreference[i] = parent->m_weaponPreference[i];
}

View File

@ -253,7 +253,7 @@ NOBODY bool UTIL_KickBotFromTeam(TeamName kickTeam)
NOBODY bool UTIL_IsTeamAllBots(int team)
{
int botCount = 0;
for(int i=1; i <= gpGlobals->maxClients; ++i)
for (int i=1; i <= gpGlobals->maxClients; ++i)
{
CBasePlayer *player = static_cast<CBasePlayer *>(UTIL_PlayerByIndex(i));
@ -365,7 +365,7 @@ NOBODY void UTIL_ConstructBotNetName(char *name, int nameLength, const BotProfil
/* <4adb6c> ../game_shared/bot/bot_util.cpp:440 */
NOBODY bool UTIL_IsVisibleToTeam(const Vector &spot, int team, float maxRange)
{
for(int i = 1; i <= gpGlobals->maxClients; ++i)
for (int i = 1; i <= gpGlobals->maxClients; ++i)
{
CBasePlayer *player = static_cast<CBasePlayer *>(UTIL_PlayerByIndex(i));
@ -529,7 +529,7 @@ void BotPrecache(void)
/* <4ae1b1> ../game_shared/bot/bot_util.cpp:666 */
void InitBotTrig(void)
{
for(int i = 0; i < COS_TABLE_SIZE; i++)
for (int i = 0; i < COS_TABLE_SIZE; i++)
{
float_precision angle = 2.0f * M_PI * (float)i / (float)(COS_TABLE_SIZE - 1);
cosTable[i] = cos( angle );

View File

@ -142,16 +142,16 @@ private:
/* <14ed68> ../game_shared/bot/bot_util.h:224 */
inline bool IsEntityValid(CBaseEntity *entity)
{
if(entity == NULL)
if (entity == NULL)
return false;
if(FNullEnt(entity->pev))
if (FNullEnt(entity->pev))
return false;
if(FStrEq(STRING(entity->pev->netname), ""))
if (FStrEq(STRING(entity->pev->netname), ""))
return false;
if(entity->pev->flags & FL_DORMANT)
if (entity->pev->flags & FL_DORMANT)
return false;
return true;
@ -198,16 +198,16 @@ template <
>
bool ForEachPlayer(Functor &func)
{
for(int i = 1; i <= gpGlobals->maxClients; i++)
for (int i = 1; i <= gpGlobals->maxClients; i++)
{
CBasePlayer *player = static_cast<CBasePlayer *>(UTIL_PlayerByIndex(i));
if(!IsEntityValid((CBaseEntity *)player))
if (!IsEntityValid((CBaseEntity *)player))
continue;
if(!player->IsPlayer())
if (!player->IsPlayer())
continue;
if(func(player) == false)
if (func(player) == false)
return false;
}
return true;

View File

@ -407,7 +407,7 @@ inline bool IsWalkableTraceLineClear(Vector &from, Vector &to, unsigned int flag
edict_t *ignore = NULL;
Vector useFrom = from;
while(true)
while (true)
{
UTIL_TraceLine(useFrom, to, ignore_monsters, ignore, &result);

View File

@ -638,7 +638,7 @@ inline bool CNavArea::IsDegenerate(void) const
inline CNavArea *CNavArea::GetAdjacentArea(NavDirType dir, int i) const
{
NavConnectList::const_iterator iter;
for(iter = m_connect[dir].begin(); iter != m_connect[dir].end(); ++iter)
for (iter = m_connect[dir].begin(); iter != m_connect[dir].end(); ++iter)
{
if (i == 0)
return (*iter).area;
@ -846,7 +846,7 @@ bool NavAreaBuildPath(CNavArea *startArea, CNavArea *goalArea, const Vector *goa
*closestArea = startArea;
float closestAreaDist = startArea->GetTotalCost();
while(!CNavArea::IsOpenListEmpty())
while (!CNavArea::IsOpenListEmpty())
{
CNavArea *area = CNavArea::PopOpenList();
if (area == goalArea)
@ -875,7 +875,7 @@ bool NavAreaBuildPath(CNavArea *startArea, CNavArea *goalArea, const Vector *goa
};
int ladderTopDir;
while(true)
while (true)
{
CNavArea *newArea;
NavTraverseType how;
@ -1014,7 +1014,7 @@ float NavAreaTravelDistance(CNavArea *startArea, CNavArea *endArea, CostFunctor
return -1.0f;
float distance = 0.0f;
for(CNavArea *area = endArea; area->GetParent(); area = area->GetParent())
for (CNavArea *area = endArea; area->GetParent(); area = area->GetParent())
{
distance += (*area->GetCenter() - *area->GetParent()->GetCenter()).Length();
}
@ -1043,7 +1043,7 @@ float NavAreaTravelDistance(const Vector *startPos, CNavArea *startArea, const V
CNavArea *area = goalArea->GetParent();
float distance = (*goalPos - *area->GetCenter()).Length();
for(; area->GetParent(); area = area->GetParent())
for (; area->GetParent(); area = area->GetParent())
{
distance += (*area->GetCenter() - *area->GetParent()->GetCenter()).Length();
}
@ -1098,16 +1098,16 @@ void SearchSurroundingAreas(CNavArea *startArea, const Vector *startPos, Functor
startArea->SetParent(NULL);
startArea->Mark();
while(!CNavArea::IsOpenListEmpty())
while (!CNavArea::IsOpenListEmpty())
{
CNavArea *area = CNavArea::PopOpenList();
if (func(area))
{
for(int dir = 0; dir < NUM_DIRECTIONS; ++dir)
for (int dir = 0; dir < NUM_DIRECTIONS; ++dir)
{
int count = area->GetAdjacentCount((NavDirType)dir);
for(int i = 0; i < count; ++i)
for (int i = 0; i < count; ++i)
{
CNavArea *adjArea = area->GetAdjacentArea((NavDirType)dir, i);
AddAreaToOpenList(adjArea, area, startPos, maxRange);
@ -1118,7 +1118,7 @@ void SearchSurroundingAreas(CNavArea *startArea, const Vector *startPos, Functor
const NavLadderList *ladderList = area->GetLadderList(LADDER_UP);
if (ladderList)
{
for(ladderIt = ladderList->begin(); ladderIt != ladderList->end(); ++ladderIt)
for (ladderIt = ladderList->begin(); ladderIt != ladderList->end(); ++ladderIt)
{
const CNavLadder *ladder = *ladderIt;
if (ladder->m_isDangling)
@ -1134,7 +1134,7 @@ void SearchSurroundingAreas(CNavArea *startArea, const Vector *startPos, Functor
ladderList = area->GetLadderList(LADDER_DOWN);
if (ladderList)
{
for(ladderIt = ladderList->begin(); ladderIt != ladderList->end(); ++ladderIt)
for (ladderIt = ladderList->begin(); ladderIt != ladderList->end(); ++ladderIt)
{
const CNavLadder *ladder = *ladderIt;
AddAreaToOpenList(ladder->m_bottomArea, area, startPos, maxRange);
@ -1149,7 +1149,7 @@ template <typename Functor>
void ForAllAreas(Functor &func)
{
NavAreaList::iterator iter;
for(iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
for (iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
{
CNavArea *area = *iter;
func(area);
@ -1190,7 +1190,7 @@ CNavArea *FindMinimumCostArea(CNavArea *startArea, CostFunctor &costFunc)
int cheapAreaSetCount = 0;
NavAreaList::iterator iter;
for(iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
for (iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
{
CNavArea *area = *iter;
const Extent *extent = area->GetExtent();
@ -1206,7 +1206,7 @@ CNavArea *FindMinimumCostArea(CNavArea *startArea, CostFunctor &costFunc)
else
{
int expensive = 0;
for(int i = 1; i < NUM_CHEAP_AREAS; i++)
for (int i = 1; i < NUM_CHEAP_AREAS; i++)
if (cheapAreaSet[i].cost > cheapAreaSet[expensive].cost)
expensive = i;
@ -1227,7 +1227,7 @@ CNavArea *FindMinimumCostArea(CNavArea *startArea, CostFunctor &costFunc)
int which = RANDOM_LONG(0, numAreas-1);
NavAreaList::iterator iter;
for(iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
for (iter = TheNavAreaList.begin(); iter != TheNavAreaList.end(); ++iter)
if (which-- == 0)
break;

View File

@ -90,7 +90,7 @@ inline void CPerformanceCounter::InitializePerformanceCounter(void)
highpart = (unsigned int)performanceFreq.HighPart;
m_iLowShift = 0;
while(highpart || (lowpart > 2000000.0))
while (highpart || (lowpart > 2000000.0))
{
m_iLowShift++;
lowpart >>= 1;
@ -116,7 +116,7 @@ inline double CPerformanceCounter::GetCurTime(void)
LARGE_INTEGER PerformanceCount;
QueryPerformanceCounter(&PerformanceCount);
if(!m_iLowShift)
if (!m_iLowShift)
temp = (unsigned int)PerformanceCount.LowPart;
else
temp = ((unsigned int)PerformanceCount.LowPart>>m_iLowShift)|((unsigned int)PerformanceCount.HighPart<<(32 - m_iLowShift));
@ -142,7 +142,7 @@ inline double CPerformanceCounter::GetCurTime(void)
if (m_flCurrentTime == m_flLastCurrentTime)
{
sametimecount++;
if(sametimecount > 100000)
if (sametimecount > 100000)
{
m_flCurrentTime += 1.0;
sametimecount = 0;
@ -160,7 +160,7 @@ inline double CPerformanceCounter::GetCurTime(void)
static int secbase = 0;
gettimeofday(&tp,NULL);
if(!secbase)
if (!secbase)
{
secbase = tp.tv_sec;
return (tp.tv_usec / 1000000.0);

View File

@ -39,7 +39,7 @@
inline unsigned int ComputeSimpleChecksum(const unsigned char *dataPointer, int dataLength)
{
unsigned int checksum = 0;
for(int i = 1; i <= dataLength; i++)
for (int i = 1; i <= dataLength; i++)
{
checksum += (*dataPointer) * i;
++dataPointer;

View File

@ -73,7 +73,7 @@ inline bool SteamFile::Read(void *data, int length)
return false;
byte *readCursor = static_cast<byte *>(data);
for(int i = 0; i < length; i++)
for (int i = 0; i < length; i++)
{
*readCursor++ = *m_cursor++;
--m_bytesLeft;

View File

@ -83,7 +83,7 @@ void CVoiceGameMgr::Update(double frametime)
// Only update periodically.
m_UpdateInterval += frametime;
if(m_UpdateInterval >= UPDATE_INTERVAL)
if (m_UpdateInterval >= UPDATE_INTERVAL)
UpdateMasks();
}

View File

@ -197,13 +197,13 @@ FunctionHook g_FunctionHooks[] =
{ 0x01DB0000, "AngleVectors", (size_t)&AngleVectors },
//{ 0x0, "AngleVectorsTranspose", (size_t)&AngleVectorsTranspose },
//{ 0x0, "AngleMatrix", (size_t)&AngleMatrix },
{ 0x01DB0200, "AngleMatrix", (size_t)&AngleMatrix },
//{ 0x0, "AngleIMatrix", (size_t)&AngleIMatrix },
//{ 0x0, "NormalizeAngles", (size_t)&NormalizeAngles },
//{ 0x0, "InterpolateAngles", (size_t)&InterpolateAngles },
//{ 0x0, "AngleBetweenVectors", (size_t)&AngleBetweenVectors },
//{ 0x0, "VectorTransform", (size_t)&VectorTransform },
//{ 0x0, "VectorCompare", (size_t)&VectorCompare },
{ 0x01DB0610, "VectorCompare", (size_t)&VectorCompare },
//{ 0x0, "VectorMA", (size_t)&VectorMA },
//{ 0x01DB0680, "_DotProduct", (size_t)&_DotProduct }, // NOXREF
//{ 0x01DB06A0, "_VectorSubtract", (size_t)&_VectorSubtract }, // NOXREF
@ -268,7 +268,7 @@ FunctionHook g_FunctionHooks[] =
//{ 0x01D64460, "CountTeamPlayers", (size_t)&CountTeamPlayers }, //extern c func
//{ 0x0, "_Z15ProcessKickVoteP11CBasePlayerS0_", (size_t)&ProcessKickVote },
//{ 0x0, "_Z17SelectDefaultTeamv", (size_t)&SelectDefaultTeam },
//{ 0x0, "_Z15CheckStartMoneyv", (size_t)&CheckStartMoney },
{ 0x01D649A0, "_Z15CheckStartMoneyv", (size_t)&CheckStartMoney },
//{ 0x01D649F0, "_Z17ClientPutInServerP7edict_s", (size_t)&ClientPutInServer },
//{ 0x0, "Q_strlen", (size_t)&Q_strlen_ },
//{ 0x0, "_Z8Host_SayP7edict_si", (size_t)&Host_Say },
@ -495,8 +495,8 @@ FunctionHook g_FunctionHooks[] =
//CBaseToggle
//virtual func
{ 0x01DBB7D0, "_ZN11CBaseToggle8KeyValueEP14KeyValueData_s", mfunc_ptr_cast(&CBaseToggle::KeyValue_) },
//{ 0x0, "_ZN11CBaseToggle4SaveER5CSave", mfunc_ptr_cast(&CBaseToggle::Save_) },
///{ 0x0, "_ZN11CBaseToggle7RestoreER8CRestore", mfunc_ptr_cast(&CBaseToggle::Restore_) },
{ 0x01DBB770, "_ZN11CBaseToggle4SaveER5CSave", mfunc_ptr_cast(&CBaseToggle::Save_) },
{ 0x01DBB7A0, "_ZN11CBaseToggle7RestoreER8CRestore", mfunc_ptr_cast(&CBaseToggle::Restore_) },
//{ 0x0, "_ZN11CBaseToggle14GetToggleStateEv", mfunc_ptr_cast(&CBaseToggle::GetToggleState_) },
//{ 0x0, "_ZN11CBaseToggle8GetDelayEv", mfunc_ptr_cast(&CBaseToggle::GetDelay_) },
//non-virtual func
@ -586,14 +586,14 @@ FunctionHook g_FunctionHooks[] =
#endif // BaseMonster_Region
#ifndef Player_Region
//CBasePlayer
//virtual func
//{ 0x01DA5200, "_ZN11CBasePlayer5SpawnEv", mfunc_ptr_cast(&CBasePlayer::Spawn_) },
//{ 0x01DA5E40, "_ZN11CBasePlayer8PrecacheEv", mfunc_ptr_cast(&CBasePlayer::Precache_) },
//{ 0x0, "_ZN11CBasePlayer4SaveER5CSave", mfunc_ptr_cast(&CBasePlayer::Save_) },
//{ 0x0, "_ZN11CBasePlayer7RestoreER8CRestore", mfunc_ptr_cast(&CBasePlayer::Restore_) },
//{ 0x0, "_ZN11CBasePlayer10ObjectCapsEv", mfunc_ptr_cast(&CBasePlayer::ObjectCaps_) },
{ 0x01DA5E40, "_ZN11CBasePlayer8PrecacheEv", mfunc_ptr_cast(&CBasePlayer::Precache_) },
{ 0x01DA5EE0, "_ZN11CBasePlayer4SaveER5CSave", mfunc_ptr_cast(&CBasePlayer::Save_) },
{ 0x01DA6080, "_ZN11CBasePlayer7RestoreER8CRestore", mfunc_ptr_cast(&CBasePlayer::Restore_) },
{ 0x01D210A0, "_ZN11CBasePlayer10ObjectCapsEv", mfunc_ptr_cast(&CBasePlayer::ObjectCaps_) },
{ 0x01DA3550, "_ZN11CBasePlayer8ClassifyEv", mfunc_ptr_cast(&CBasePlayer::Classify_) },
{ 0x01D9BE00, "_ZN11CBasePlayer11TraceAttackEP9entvars_sf6VectorP11TraceResulti", mfunc_ptr_cast(&CBasePlayer::TraceAttack_) },
//{ 0x0, "_ZN11CBasePlayer10TakeDamageEP9entvars_sS1_fi", mfunc_ptr_cast(&CBasePlayer::TakeDamage_) },
@ -617,13 +617,13 @@ FunctionHook g_FunctionHooks[] =
//{ 0x01D21060, "_ZN11CBasePlayer17ShouldFadeOnDeathEv", mfunc_ptr_cast(&CBasePlayer::ShouldFadeOnDeath_) },
{ 0x01DA9CB0, "_ZN11CBasePlayer13ResetMaxSpeedEv", mfunc_ptr_cast(&CBasePlayer::ResetMaxSpeed_) },
//{ 0x0, "_ZN11CBasePlayer4JumpEv", mfunc_ptr_cast(&CBasePlayer::Jump_) },
//{ 0x01DA3530, "_ZN11CBasePlayer4DuckEv", mfunc_ptr_cast(&CBasePlayer::Duck_) },
//{ 0x0, "_ZN11CBasePlayer8PreThinkEv", mfunc_ptr_cast(&CBasePlayer::PreThink_) },
{ 0x01DA3530, "_ZN11CBasePlayer4DuckEv", mfunc_ptr_cast(&CBasePlayer::Duck_) },
//{ 0x01DA3850, "_ZN11CBasePlayer8PreThinkEv", mfunc_ptr_cast(&CBasePlayer::PreThink_) },
//{ 0x01DA4610, "_ZN11CBasePlayer9PostThinkEv", mfunc_ptr_cast(&CBasePlayer::PostThink_) },
{ 0x01D9BD80, "_ZN11CBasePlayer14GetGunPositionEv", mfunc_ptr_cast(&CBasePlayer::GetGunPosition_) },
//{ 0x0, "_ZN11CBasePlayer5IsBotEv", mfunc_ptr_cast(&CBasePlayer::IsBot_) },
//{ 0x01DA8F90, "_ZN11CBasePlayer16UpdateClientDataEv", mfunc_ptr_cast(&CBasePlayer::UpdateClientData_) },
//{ 0x01DA7020, "_ZN11CBasePlayer15ImpulseCommandsEv", mfunc_ptr_cast(&CBasePlayer::ImpulseCommands_) }, // NOXREF
{ 0x01DA7020, "_ZN11CBasePlayer15ImpulseCommandsEv", mfunc_ptr_cast(&CBasePlayer::ImpulseCommands_) },
{ 0x01DA2490, "_ZN11CBasePlayer12RoundRespawnEv", mfunc_ptr_cast(&CBasePlayer::RoundRespawn_) },
{ 0x01DA9DC0, "_ZN11CBasePlayer16GetAutoaimVectorEf", mfunc_ptr_cast(&CBasePlayer::GetAutoaimVector_) },
{ 0x01DAA220, "_ZN11CBasePlayer5BlindEfffi", mfunc_ptr_cast(&CBasePlayer::Blind_) },
@ -652,9 +652,9 @@ FunctionHook g_FunctionHooks[] =
{ 0x01D9B9B0, "_ZN11CBasePlayer4PainEib", mfunc_ptr_cast(&CBasePlayer::Pain) },
{ 0x01D9F410, "_ZN11CBasePlayer9IsBombGuyEv", mfunc_ptr_cast(&CBasePlayer::IsBombGuy) },
{ 0x01DACC30, "_ZNK11CBasePlayer19IsLookingAtPositionEPK6Vectorf", mfunc_ptr_cast(&CBasePlayer::IsLookingAtPosition) },
//{ 0x01DA6310, "_ZN11CBasePlayer5ResetEv", mfunc_ptr_cast(&CBasePlayer::Reset) },
{ 0x01DA6310, "_ZN11CBasePlayer5ResetEv", mfunc_ptr_cast(&CBasePlayer::Reset) },
{ 0x01DA5F10, "_ZN11CBasePlayer23SetScoreboardAttributesEPS_", mfunc_ptr_cast(&CBasePlayer::SetScoreboardAttributes) },
//{ 0x0, "_ZN11CBasePlayer10RenewItemsEv", mfunc_ptr_cast(&CBasePlayer::RenewItems) },
//{ 0x01DA6070, "_ZN11CBasePlayer10RenewItemsEv", mfunc_ptr_cast(&CBasePlayer::RenewItems) }, // NOXREF
{ 0x01D9D630, "_ZN11CBasePlayer19PackDeadPlayerItemsEv", mfunc_ptr_cast(&CBasePlayer::PackDeadPlayerItems) },
{ 0x01D9DAD0, "_ZN11CBasePlayer16GiveDefaultItemsEv", mfunc_ptr_cast(&CBasePlayer::GiveDefaultItems) },
{ 0x01D9DD60, "_ZN11CBasePlayer14RemoveAllItemsEi", mfunc_ptr_cast(&CBasePlayer::RemoveAllItems) },
@ -717,7 +717,7 @@ FunctionHook g_FunctionHooks[] =
//{ 0x01DA6920, "_ZN11CBasePlayer10HasWeaponsEv", mfunc_ptr_cast(&CBasePlayer::HasWeapons) }, // NOXREF
//{ 0x01DA6940, "_ZN11CBasePlayer14SelectPrevItemEi", mfunc_ptr_cast(&CBasePlayer::SelectPrevItem) }, // NOXREF
//{ 0x01DA6470, "_ZN11CBasePlayer14SelectNextItemEi", mfunc_ptr_cast(&CBasePlayer::SelectNextItem) }, // NOXREF
//{ 0x01DA65E0, "_ZN11CBasePlayer10SelectItemEPKc", mfunc_ptr_cast(&CBasePlayer::SelectItem) },
{ 0x01DA65E0, "_ZN11CBasePlayer10SelectItemEPKc", mfunc_ptr_cast(&CBasePlayer::SelectItem) },
{ 0x01DA67A0, "_ZN11CBasePlayer14SelectLastItemEv", mfunc_ptr_cast(&CBasePlayer::SelectLastItem) },
//{ 0x01DA8BB0, "_ZN11CBasePlayer12ItemPreFrameEv", mfunc_ptr_cast(&CBasePlayer::ItemPreFrame) }, // NOXREF
//{ 0x01DA8BE0, "_ZN11CBasePlayer13ItemPostFrameEv", mfunc_ptr_cast(&CBasePlayer::ItemPostFrame) }, // NOXREF
@ -735,7 +735,7 @@ FunctionHook g_FunctionHooks[] =
{ 0x01DA14D0, "_ZN11CBasePlayer9MenuPrintEPS_PKc", mfunc_ptr_cast(&CBasePlayer::MenuPrint) },
//{ 0x01DA11F0, "_ZN11CBasePlayer9ResetMenuEv", mfunc_ptr_cast(&CBasePlayer::ResetMenu) }, // NOXREF
{ 0x01DA1240, "_ZN11CBasePlayer14SyncRoundTimerEv", mfunc_ptr_cast(&CBasePlayer::SyncRoundTimer) },
//{ 0x0, "_ZN11CBasePlayer15CheckSuitUpdateEv", mfunc_ptr_cast(&CBasePlayer::CheckSuitUpdate) },
//{ 0x01DA4220, "_ZN11CBasePlayer15CheckSuitUpdateEv", mfunc_ptr_cast(&CBasePlayer::CheckSuitUpdate) },
{ 0x01DA43E0, "_ZN11CBasePlayer13SetSuitUpdateEPcii", mfunc_ptr_cast(&CBasePlayer::SetSuitUpdate) }, // NOXREF
//{ 0x01DA4170, "_ZN11CBasePlayer19UpdateGeigerCounterEv", mfunc_ptr_cast(&CBasePlayer::UpdateGeigerCounter) }, // NOXREF
//{ 0x0, "_ZN11CBasePlayer20CheckTimeBasedDamageEv", mfunc_ptr_cast(&CBasePlayer::CheckTimeBasedDamage) },
@ -745,7 +745,7 @@ FunctionHook g_FunctionHooks[] =
{ 0x01DA8C60, "_ZN11CBasePlayer13AmmoInventoryEi", mfunc_ptr_cast(&CBasePlayer::AmmoInventory) },
//{ 0x01DAA150, "_ZN11CBasePlayer12ResetAutoaimEv", mfunc_ptr_cast(&CBasePlayer::ResetAutoaim) }, // NOXREF
//{ 0x01DAA120, "_ZN11CBasePlayer17AutoaimDeflectionER6Vectorff", mfunc_ptr_cast(&CBasePlayer::AutoaimDeflection) }, // NOXREF
//{ 0x01DA6FD0, "_ZN11CBasePlayer20ForceClientDllUpdateEv", mfunc_ptr_cast(&CBasePlayer::ForceClientDllUpdate) },
{ 0x01DA6FD0, "_ZN11CBasePlayer20ForceClientDllUpdateEv", mfunc_ptr_cast(&CBasePlayer::ForceClientDllUpdate) },
//{ 0x0, "_ZN11CBasePlayer12DeathMessageEP9entvars_s", mfunc_ptr_cast(&CBasePlayer::DeathMessage) },
{ 0x01DAA1E0, "_ZN11CBasePlayer20SetCustomDecalFramesEi", mfunc_ptr_cast(&CBasePlayer::SetCustomDecalFrames) },
//{ 0x01DAA210, "_ZN11CBasePlayer20GetCustomDecalFramesEv", mfunc_ptr_cast(&CBasePlayer::GetCustomDecalFrames) }, // NOXREF
@ -806,7 +806,7 @@ FunctionHook g_FunctionHooks[] =
{ 0x01DAEA40, "_ZN11CBasePlayer17IsObservingPlayerEPS_", mfunc_ptr_cast(&CBasePlayer::IsObservingPlayer) },
//{ 0x0, "_ZNK11CBasePlayer22CanSwitchObserverModesEv", mfunc_ptr_cast(&CBasePlayer::CanSwitchObserverModes) },
//{ 0x0, "_ZN11CBasePlayer7IntenseEv", mfunc_ptr_cast(&CBasePlayer::Intense) },
//{ 0x01D9AB20, "_Z16LinkUserMessagesv", (size_t)&LinkUserMessages },
{ 0x01D9AB20, "_Z16LinkUserMessagesv", (size_t)&LinkUserMessages },
{ 0x01D9B0F0, "_Z18WriteSigonMessagesv", (size_t)&WriteSigonMessages },
{ 0x01D9B280, "_Z14SendItemStatusP11CBasePlayer", (size_t)&SendItemStatus },
{ 0x01D9D8A0, "_ZL14GetCSModelNamei", (size_t)&GetCSModelName },
@ -819,9 +819,9 @@ FunctionHook g_FunctionHooks[] =
{ 0x01DA3110, "_ZL13CanSeeUseableP11CBasePlayerP11CBaseEntity_isra_13", (size_t)&CanSeeUseable },
//{ 0x01DA34E0, "_Z20FixPlayerCrouchStuckP7edict_s", (size_t)&FixPlayerCrouchStuck },
//{ 0x01DA4A90, "_Z17IsSpawnPointValidP11CBaseEntityS0_", (size_t)&IsSpawnPointValid }, // NOXREF
//{ 0x01DA4B10, "_Z16InitZombieSpawnsv", (size_t)&InitZombieSpawns }, // NOXREF
//{ 0x01DA4B20, "_Z16InitZombieSpawnsv", (size_t)&InitZombieSpawns }, // NOXREF
//{ 0x01DA4BC0, "_Z15FindZombieSpawnP11CBaseEntityb", (size_t)&FindZombieSpawn }, // NOXREF
//{ 0x01DA4BD0, "_Z19EntSelectSpawnPointP11CBaseEntity", (size_t)&EntSelectSpawnPoint },
{ 0x01DA4BD0, "_Z19EntSelectSpawnPointP11CBaseEntity", (size_t)&EntSelectSpawnPoint },
#ifdef _WIN32
{ 0x01DA5180, "", (size_t)&SetScoreAttrib },
@ -2485,8 +2485,8 @@ FunctionHook g_FunctionHooks[] =
{ 0x01D909E0, "_ZN18CHalfLifeMultiplay19FShouldSwitchWeaponEP11CBasePlayerP15CBasePlayerItem", mfunc_ptr_cast(&CHalfLifeMultiplay::FShouldSwitchWeapon_) },
{ 0x01D90A70, "_ZN18CHalfLifeMultiplay17GetNextBestWeaponEP11CBasePlayerP15CBasePlayerItem", mfunc_ptr_cast(&CHalfLifeMultiplay::GetNextBestWeapon_) },
{ 0x01D909B0, "_ZN18CHalfLifeMultiplay13IsMultiplayerEv", mfunc_ptr_cast(&CHalfLifeMultiplay::IsMultiplayer_) },
//{ 0x01D909C0, "_ZN18CHalfLifeMultiplay12IsDeathmatchEv", mfunc_ptr_cast(&CHalfLifeMultiplay::IsDeathmatch_) },
//{ 0x01D909D0, "_ZN18CHalfLifeMultiplay6IsCoOpEv", mfunc_ptr_cast(&CHalfLifeMultiplay::IsCoOp_) },
{ 0x01D909C0, "_ZN18CHalfLifeMultiplay12IsDeathmatchEv", mfunc_ptr_cast(&CHalfLifeMultiplay::IsDeathmatch_) },
{ 0x01D909D0, "_ZN18CHalfLifeMultiplay6IsCoOpEv", mfunc_ptr_cast(&CHalfLifeMultiplay::IsCoOp_) },
//{ 0x0, "_ZN18CHalfLifeMultiplay15ClientConnectedEP7edict_sPKcS3_Pc", mfunc_ptr_cast(&CHalfLifeMultiplay::ClientConnected_) },
//{ 0x01D90BC0, "_ZN18CHalfLifeMultiplay7InitHUDEP11CBasePlayer", mfunc_ptr_cast(&CHalfLifeMultiplay::InitHUD_) },
//{ 0x0, "_ZN18CHalfLifeMultiplay18ClientDisconnectedEP7edict_s", mfunc_ptr_cast(&CHalfLifeMultiplay::ClientDisconnected_) },
@ -3420,20 +3420,20 @@ FunctionHook g_FunctionHooks[] =
//{ 0x0, "_Z11SetBlendingPvP9entvars_sif", (size_t)&SetBlending },
//{ 0x0, "_Z14FindTransitionPviiPi", (size_t)&FindTransition },
//{ 0x0, "_Z12SetBodygroupPvP9entvars_sii", (size_t)&SetBodygroup },
//{ 0x0, "_Z12GetBodygroupPvP9entvars_si", (size_t)&GetBodygroup },
//{ 0x01D5B080, "Server_GetBlendingInterface", (size_t)&Server_GetBlendingInterface },
{ 0x01D5B0E0, "_Z15AngleQuaternionPfS_", (size_t)&AngleQuaternion }, /// TODO: FIXME CZERO!!! Test demo czer-testsmoke-1.bin
//{ 0x0, "_Z15QuaternionSlerpPfS_fS_", (size_t)&QuaternionSlerp },
//{ 0x0, "_Z16QuaternionMatrixPfPA4_f", (size_t)&QuaternionMatrix },
//{ 0x0, "_Z13StudioGetAnimP7model_sP16mstudioseqdesc_t", (size_t)&StudioGetAnim },
//{ 0x0, "_Z15LookupAnimationP11studiohdr_tP7model_sP16mstudioseqdesc_ti", (size_t)&LookupAnimation },
//{ 0x0, "_Z17StudioCalcBoneAdjfPfPKhS1_h", (size_t)&StudioCalcBoneAdj },
//{ 0x0, "_Z23StudioCalcBoneQuaterionifP13mstudiobone_tP13mstudioanim_tPfS3_", (size_t)&StudioCalcBoneQuaterion },
//{ 0x0, "_Z22StudioCalcBonePositionifP13mstudiobone_tP13mstudioanim_tPfS3_", (size_t)&StudioCalcBonePosition },
//{ 0x0, "_Z16StudioSlerpBonesPA4_fPA3_fS0_S2_f", (size_t)&StudioSlerpBones },
//{ 0x0, "_Z19StudioCalcRotationsP13mstudiobone_tPiiPfPA3_fPA4_fP16mstudioseqdesc_tP13mstudioanim_tff", (size_t)&StudioCalcRotations },
//{ 0x0, "_Z16ConcatTransformsPA4_fS0_S0_", (size_t)&ConcatTransforms },
//{ 0x0, "_Z19SV_StudioSetupBonesP7model_sfiPKfS2_PKhS4_iPK7edict_s", (size_t)&SV_StudioSetupBones },
{ 0x01D5B020, "_Z12GetBodygroupPvP9entvars_si", (size_t)&GetBodygroup },
{ 0x01D5B080, "Server_GetBlendingInterface", (size_t)&Server_GetBlendingInterface },
{ 0x01D5B0E0, "_Z15AngleQuaternionPfS_", (size_t)&AngleQuaternion },
{ 0x01D5B190, "_Z15QuaternionSlerpPfS_fS_", (size_t)&QuaternionSlerp },
//{ 0x01D5B350, "_Z16QuaternionMatrixPfPA4_f", (size_t)&QuaternionMatrix },
{ 0x01D5B430, "_Z13StudioGetAnimP7model_sP16mstudioseqdesc_t", (size_t)&StudioGetAnim },
//{ 0x01D5B4C0, "_Z15LookupAnimationP11studiohdr_tP7model_sP16mstudioseqdesc_ti", (size_t)&LookupAnimation }, // NOXREF
{ 0x01D5B500, "_Z17StudioCalcBoneAdjfPfPKhS1_h", (size_t)&StudioCalcBoneAdj },
{ 0x01D5B720, "_Z23StudioCalcBoneQuaterionifP13mstudiobone_tP13mstudioanim_tPfS3_", (size_t)&StudioCalcBoneQuaterion },
{ 0x01D5B8E0, "_Z22StudioCalcBonePositionifP13mstudiobone_tP13mstudioanim_tPfS3_", (size_t)&StudioCalcBonePosition },
{ 0x01D5BA20, "_Z16StudioSlerpBonesPA4_fPA3_fS0_S2_f", (size_t)&StudioSlerpBones },
//{ 0x01D5BB50, "_Z19StudioCalcRotationsP13mstudiobone_tPiiPfPA3_fPA4_fP16mstudioseqdesc_tP13mstudioanim_tff", (size_t)&StudioCalcRotations }, // NOXREF
{ 0x01D5BBE0, "_Z16ConcatTransformsPA4_fS0_S0_", (size_t)&ConcatTransforms },
//{ 0x01D5BD20, "_Z19SV_StudioSetupBonesP7model_sfiPKfS2_PKhS4_iPK7edict_s", (size_t)&SV_StudioSetupBones },
#endif // Animation_Region
@ -5177,6 +5177,8 @@ AddressRef g_FunctionRefs[] =
{ 0x01D6EEB0, "_ZN4CGib15SpawnRandomGibsEP9entvars_sii", (size_t)&pCGib__SpawnRandomGibs },
{ 0x01D5B350, "_Z16QuaternionMatrixPfPA4_f", (size_t)&pQuaternionMatrix },
#endif // Function_References_Region
{ NULL, NULL, NULL }
};
@ -5280,30 +5282,30 @@ AddressRef g_DataRefs[] =
{ 0x01E635A0, "gmsgShake", (size_t)&pgmsgShake },
{ 0x01E635A4, "gmsgFade", (size_t)&pgmsgFade },
{ 0x01E635A8, "gmsgFlashlight", (size_t)&pgmsgFlashlight },
//{ 0x0, "gmsgFlashBattery", (size_t)&pgmsgFlashBattery },
//{ 0x0, "gmsgResetHUD", (size_t)&pgmsgResetHUD },
//{ 0x0, "gmsgInitHUD", (size_t)&pgmsgInitHUD },
//{ 0x0, "gmsgViewMode", (size_t)&pgmsgViewMode },
//{ 0x01E635BC, "gmsgShowGameTitle", (size_t)&pgmsgShowGameTitle },
{ 0x01E635AC, "gmsgFlashBattery", (size_t)&pgmsgFlashBattery },
{ 0x01E635B0, "gmsgResetHUD", (size_t)&pgmsgResetHUD },
{ 0x01E635B4, "gmsgInitHUD", (size_t)&pgmsgInitHUD },
{ 0x01E635B8, "gmsgViewMode", (size_t)&pgmsgViewMode },
{ 0x01E635BC, "gmsgShowGameTitle", (size_t)&pgmsgShowGameTitle },
{ 0x01E635C0, "gmsgCurWeapon", (size_t)&pgmsgCurWeapon },
//{ 0x0, "gmsgHealth", (size_t)&pgmsgHealth },
//{ 0x0, "gmsgDamage", (size_t)&pgmsgDamage },
//{ 0x0, "gmsgBattery", (size_t)&pgmsgBattery },
//{ 0x0, "gmsgTrain", (size_t)&pgmsgTrain },
{ 0x01E635C4, "gmsgHealth", (size_t)&pgmsgHealth },
{ 0x01E635C8, "gmsgDamage", (size_t)&pgmsgDamage },
{ 0x01E635CC, "gmsgBattery", (size_t)&pgmsgBattery },
{ 0x01E635D0, "gmsgTrain", (size_t)&pgmsgTrain },
{ 0x01E635D4, "gmsgLogo", (size_t)&pgmsgLogo },
{ 0x01E635D8, "gmsgWeaponList", (size_t)&pgmsgWeaponList },
{ 0x01E635DC, "gmsgAmmoX", (size_t)&pgmsgAmmoX },
//{ 0x0, "gmsgDeathMsg", (size_t)&pgmsgDeathMsg },
{ 0x01E635E8, "gmsgDeathMsg", (size_t)&pgmsgDeathMsg },
{ 0x01E635EC, "gmsgScoreAttrib", (size_t)&pgmsgScoreAttrib },
{ 0x01E635F0, "gmsgScoreInfo", (size_t)&pgmsgScoreInfo },
{ 0x01E635F4, "gmsgTeamInfo", (size_t)&pgmsgTeamInfo },
//{ 0x0, "gmsgTeamScore", (size_t)&pgmsgTeamScore },
//{ 0x0, "gmsgGameMode", (size_t)&pgmsgGameMode },
//{ 0x0, "gmsgMOTD", (size_t)&pgmsgMOTD },
//{ 0x0, "gmsgServerName", (size_t)&pgmsgServerName },
{ 0x01E635F8, "gmsgTeamScore", (size_t)&pgmsgTeamScore },
{ 0x01E635FC, "gmsgGameMode", (size_t)&pgmsgGameMode },
{ 0x01E63600, "gmsgMOTD", (size_t)&pgmsgMOTD },
{ 0x01E63604, "gmsgServerName", (size_t)&pgmsgServerName },
{ 0x01E63608, "gmsgAmmoPickup", (size_t)&pgmsgAmmoPickup },
{ 0x01E63610, "gmsgItemPickup", (size_t)&pgmsgItemPickup },
//{ 0x0, "gmsgHideWeapon", (size_t)&pgmsgHideWeapon },
{ 0x01E63614, "gmsgHideWeapon", (size_t)&pgmsgHideWeapon },
{ 0x01E63618, "gmsgSayText", (size_t)&pgmsgSayText },
{ 0x01E6361C, "gmsgTextMsg", (size_t)&pgmsgTextMsg },
{ 0x01E63620, "gmsgSetFOV", (size_t)&pgmsgSetFOV },
@ -5320,28 +5322,28 @@ AddressRef g_DataRefs[] =
{ 0x01E6364C, "gmsgReloadSound", (size_t)&pgmsgReloadSound },
{ 0x01E63650, "gmsgCrosshair", (size_t)&pgmsgCrosshair },
{ 0x01E63654, "gmsgNVGToggle", (size_t)&pgmsgNVGToggle },
//{ 0x0, "gmsgRadar", (size_t)&pgmsgRadar },
{ 0x01E63658, "gmsgRadar", (size_t)&pgmsgRadar },
{ 0x01E6365C, "gmsgSpectator", (size_t)&pgmsgSpectator },
//{ 0x0, "gmsgVGUIMenu", (size_t)&pgmsgVGUIMenu },
{ 0x01E63660, "gmsgVGUIMenu", (size_t)&pgmsgVGUIMenu },
{ 0x01E63664, "gmsgCZCareer", (size_t)&pgmsgCZCareer },
//{ 0x0, "gmsgCZCareerHUD", (size_t)&pgmsgCZCareerHUD },
{ 0x01E63668, "gmsgCZCareerHUD", (size_t)&pgmsgCZCareerHUD },
{ 0x01E6366C, "gmsgTaskTime", (size_t)&pgmsgTaskTime },
//{ 0x0, "gmsgTutorText", (size_t)&pgmsgTutorText },
{ 0x01E63670, "gmsgTutorText", (size_t)&pgmsgTutorText },
{ 0x01E63674, "gmsgTutorLine", (size_t)&pgmsgTutorLine },
//{ 0x0, "gmsgShadowIdx", (size_t)&pgmsgShadowIdx },
{ 0x01E63678, "gmsgShadowIdx", (size_t)&pgmsgShadowIdx },
{ 0x01E6367C, "gmsgTutorState", (size_t)&pgmsgTutorState },
{ 0x01E63680, "gmsgTutorClose", (size_t)&pgmsgTutorClose },
//{ 0x0, "gmsgAllowSpec", (size_t)&pgmsgAllowSpec },
{ 0x01E63684, "gmsgAllowSpec", (size_t)&pgmsgAllowSpec },
{ 0x01E63688, "gmsgBombDrop", (size_t)&pgmsgBombDrop },
//{ 0x0, "gmsgBombPickup", (size_t)&pgmsgBombPickup },
{ 0x01E6368C, "gmsgBombPickup", (size_t)&pgmsgBombPickup },
{ 0x01E63690, "gmsgHostagePos", (size_t)&pgmsgHostagePos },
//{ 0x0, "gmsgHostageK", (size_t)&pgmsgHostageK },
{ 0x01E63694, "gmsgHostageK", (size_t)&pgmsgHostageK },
{ 0x01E63698, "gmsgGeigerRange", (size_t)&pgmsgGeigerRange },
{ 0x01E6369C, "gmsgSendCorpse", (size_t)&pgmsgSendCorpse },
//{ 0x0, "gmsgHLTV", (size_t)&pgmsgHLTV },
//{ 0x0, "gmsgSpecHealth", (size_t)&pgmsgSpecHealth },
//{ 0x0, "gmsgForceCam", (size_t)&pgmsgForceCam },
//{ 0x0, "gmsgADStop", (size_t)&pgmsgADStop },
{ 0x01E636A0, "gmsgHLTV", (size_t)&pgmsgHLTV },
{ 0x01E636A4, "gmsgSpecHealth", (size_t)&pgmsgSpecHealth },
{ 0x01E636A8, "gmsgForceCam", (size_t)&pgmsgForceCam },
{ 0x01E636AC, "gmsgADStop", (size_t)&pgmsgADStop },
{ 0x01E636B0, "gmsgReceiveW", (size_t)&pgmsgReceiveW },
{ 0x01E636B4, "gmsgScenarioIcon", (size_t)&pgmsgScenarioIcon },
{ 0x01E636B8, "gmsgBotVoice", (size_t)&pgmsgBotVoice },
@ -5351,9 +5353,9 @@ AddressRef g_DataRefs[] =
{ 0x01E636C8, "gmsgSpecHealth2", (size_t)&pgmsgSpecHealth2 },
{ 0x01E636CC, "gmsgBarTime2", (size_t)&pgmsgBarTime2 },
{ 0x01E636D0, "gmsgBotProgress", (size_t)&pgmsgBotProgress },
//{ 0x0, "gmsgBrass", (size_t)&pgmsgBrass },
//{ 0x0, "gmsgFog", (size_t)&pgmsgFog },
//{ 0x0, "gmsgShowTimer", (size_t)&pgmsgShowTimer },
{ 0x01E636D4, "gmsgBrass", (size_t)&pgmsgBrass },
{ 0x01E636D8, "gmsgFog", (size_t)&pgmsgFog },
{ 0x01E636DC, "gmsgShowTimer", (size_t)&pgmsgShowTimer },
{ 0x01E61B80, "g_psv_gravity", (size_t)&pg_psv_gravity },
{ 0x01E61B84, "g_psv_aim", (size_t)&pg_psv_aim },//TODO: unused, used cvar_t *sv_aim
@ -5525,7 +5527,7 @@ AddressRef g_DataRefs[] =
//{ 0x0, "_ZN9CPushable12m_soundNamesE", mfunc_ptr_cast(&CPushable::pm_soundNames) },
{ 0x01E1E00C, "_ZN8CDeadHEV9m_szPosesE", mfunc_ptr_cast(&CDeadHEV::pm_szPoses) },
{ 0x01E1DD88, "_ZN11CBasePlayer16m_playerSaveDataE", mfunc_ptr_cast(&CBasePlayer::pm_playerSaveData) },
//{ 0x01E14A68, "_ZN11CBaseEntity10m_SaveDataE", mfunc_ptr_cast(&CBaseEntity::pm_SaveData) },
//{ 0x0, "_ZN12CGlobalState10m_SaveDataE", mfunc_ptr_cast(&CGlobalState::pm_SaveData) },
//{ 0x0, "_ZN9CEnvSpark10m_SaveDataE", mfunc_ptr_cast(&CEnvSpark::pm_SaveData) },
@ -5569,7 +5571,7 @@ AddressRef g_DataRefs[] =
//{ 0x0, "_ZN12CMultiSource10m_SaveDataE", mfunc_ptr_cast(&CMultiSource::pm_SaveData) },
{ 0x01E20538, "_ZN10CBaseDelay10m_SaveDataE", mfunc_ptr_cast(&CBaseDelay::pm_SaveData) },
{ 0x01E13438, "_ZN14CBaseAnimating10m_SaveDataE", mfunc_ptr_cast(&CBaseAnimating::pm_SaveData) },
//{ 0x0, "_ZN11CBaseToggle10m_SaveDataE", mfunc_ptr_cast(&CBaseToggle::pm_SaveData) },
{ 0x01E20558, "_ZN11CBaseToggle10m_SaveDataE", mfunc_ptr_cast(&CBaseToggle::pm_SaveData) },
//{ 0x0, "_ZN11CBaseButton10m_SaveDataE", mfunc_ptr_cast(&CBaseButton::pm_SaveData) },
//{ 0x0, "_ZN15CAmbientGeneric10m_SaveDataE", mfunc_ptr_cast(&CAmbientGeneric::pm_SaveData) },
//{ 0x0, "_ZN9CEnvSound10m_SaveDataE", mfunc_ptr_cast(&CEnvSound::pm_SaveData) },
@ -5659,7 +5661,9 @@ AddressRef g_DataRefs[] =
{ 0x01E76594, "TheCareerTasks", (size_t)&pTheCareerTasks },
{ 0x01E28C7C, "TheBotProfiles", (size_t)&pTheBotProfiles },
{ 0x01E287CC, "g_pSelectedZombieSpawn", (size_t)&pg_pSelectedZombieSpawn },
{ 0x01E287F0, "TheBotPhrases", (size_t)&pTheBotPhrases },
{ 0x01E7657C, "TheTutor", (size_t)&pTheTutor },
{ 0x01E2A25C, "g_pHostages", (size_t)&pg_pHostages },
{ 0x01E2A258, "g_iHostageNumber", (size_t)&pg_iHostageNumber },
@ -5669,6 +5673,25 @@ AddressRef g_DataRefs[] =
{ 0x01E61740, "theDebugBuffer", (size_t)&ptheDebugBuffer },
{ 0x01E75D04, "g_LessCtx", (size_t)&pg_LessCtx },
{ 0x01E62788, "g_pLastSpawn", (size_t)&pg_pLastSpawn },
{ 0x01E63590, "g_pLastCTSpawn", (size_t)&pg_pLastCTSpawn },
{ 0x01E63594, "g_pLastTerroristSpawn", (size_t)&pg_pLastTerroristSpawn },
{ 0x01E62990, "_ZL11zombieSpawn", (size_t)&pzombieSpawn },
{ 0x01E636E8, "_ZL16zombieSpawnCount", (size_t)&pzombieSpawnCount },
{ 0x01E13838, "svBlending", (size_t)&psvBlending },
{ 0x01E312D0, "IEngineStudio", (size_t)&pIEngineStudio },
{ 0x01E2DAA8, "g_pstudiohdr", (size_t)&pg_pstudiohdr },
{ 0x01E2F8C0, "g_pRotationMatrix", (size_t)&pg_pRotationMatrix },
{ 0x01E2F8B0, "g_pBoneTransform", (size_t)&pg_pBoneTransform },
{ 0x01E2F8BC, "omega", (size_t)&pomega },
{ 0x01E312E0, "cosom", (size_t)&pcosom },
{ 0x01E306C8, "sinom", (size_t)&psinom },
{ 0x01E2F8B4, "sclp", (size_t)&psclp },
{ 0x01E2F8B8, "sclq", (size_t)&psclq },
#endif // Data_References_Region

View File

@ -726,7 +726,7 @@ bool HIDDEN HookFunction(Module *module, FunctionHook *hook)
patch[0] = 0xE9;
#if 1
if(strcmp(hook->symbolName,"_ZN11CBasePlayer10SwitchTeamEv")==0)
if (strcmp(hook->symbolName,"_ZN11CBasePlayer10SwitchTeamEv")==0)
{
addr_orig = (void *)hook->originalAddress;

View File

@ -60,19 +60,42 @@ NOBODY void AngleVectorsTranspose(const vec_t *angles, vec_t *forward, vec_t *ri
}
/* <2ce5d0> ../cstrike/pm_shared/pm_math.c:112 */
NOBODY void AngleMatrix(const vec_t *angles, float *matrix)
void AngleMatrix(const vec_t *angles, float (*matrix)[4])
{
// float angle; // 114
// float sr; // 115
// float sp; // 115
// float sy; // 115
// float cr; // 115
// float cp; // 115
// float cy; // 115
float_precision angle;
float_precision sr, sp, sy, cr, cp, cy;
angle = (float_precision)(angles[ROLL] * (M_PI * 2 / 360));
sy = sin(angle);
cy = cos(angle);
angle = (float_precision)(angles[YAW] * (M_PI * 2 / 360));
sp = sin(angle);
cp = cos(angle);
angle = (float_precision)(angles[PITCH] * (M_PI * 2 / 360));
sr = sin(angle);
cr = cos(angle);
matrix[0][0] = cr * cp;
matrix[1][0] = cr * sp;
matrix[2][0] = -sr;
matrix[0][1] = (sy * sr) * cp - cy * sp;
matrix[1][1] = (sy * sr) * sp + cy * cp;
matrix[2][1] = sy * cr;
matrix[0][2] = (cy * sr) * cp + sy * sp;
matrix[1][2] = (cy * sr) * sp - sy * cp;
matrix[2][2] = cy * cr;
matrix[0][3] = 0.0f;
matrix[1][3] = 0.0f;
matrix[2][3] = 0.0f;
}
/* <2ce67b> ../cstrike/pm_shared/pm_math.c:142 */
NOBODY void AngleIMatrix(const vec_t *angles, float *matrix)
NOBODY void AngleIMatrix(const vec_t *angles, float (*matrix)[4])
{
// float angle; // 144
// float sr; // 145
@ -117,9 +140,15 @@ NOBODY void VectorTransform(const vec_t *in1, float *in2, vec_t *out)
}
/* <2ce996> ../cstrike/pm_shared/pm_math.c:259 */
NOBODY int VectorCompare(const vec_t *v1, const vec_t *v2)
int VectorCompare(const vec_t *v1, const vec_t *v2)
{
// int i; // 261
int i;
for (i = 0 ; i < 3 ; i++)
{
if (v1[i] != v2[i])
return 0;
}
return 1;
}
/* <2ce9de> ../cstrike/pm_shared/pm_math.c:270 */

View File

@ -42,13 +42,13 @@ void AngleVectors(const vec_t *angles, vec_t *forward, vec_t *right, vec_t *up);
NOBODY void AngleVectorsTranspose(const vec_t *angles, vec_t *forward, vec_t *right, vec_t *up);
NOBODY void AngleMatrix(const vec_t *angles, float *matrix);
NOBODY void AngleIMatrix(const vec_t *angles, float *matrix);
void AngleMatrix(const vec_t *angles, float (*matrix)[4]);
NOBODY void AngleIMatrix(const vec_t *angles, float (*matrix)[4]);
NOBODY void NormalizeAngles(float *angles);
NOBODY void InterpolateAngles(float *start, float *end, float *output, float frac);
NOBODY float AngleBetweenVectors(const vec_t *v1, const vec_t *v2);
NOBODY void VectorTransform(const vec_t *in1, float *in2, vec_t *out);
NOBODY int VectorCompare(const vec_t *v1, const vec_t *v2);
int VectorCompare(const vec_t *v1, const vec_t *v2);
NOBODY void VectorMA(const vec_t *veca, float scale, const vec_t *vecb, vec_t *vecc);
NOXREF vec_t _DotProduct(vec_t *v1, vec_t *v2);

View File

@ -50,6 +50,7 @@ TEST(StructOffsets, ReversingChecks, 5000)
REPEAT_SIZEOF_PRINT(CHalfLifeTraining);
REPEAT_SIZEOF_PRINT(CGib);
REPEAT_SIZEOF_PRINT(CSprayCan);
REPEAT_SIZEOF_PRINT(CountdownTimer);
// offset the members
REPEAT_OFFSETOF_PRINT(CBaseEntity, pev);
@ -66,6 +67,7 @@ TEST(StructOffsets, ReversingChecks, 5000)
CHECK_CLASS_SIZE(CHalfLifeTraining, 0x2E8u, 0x2D8u);
CHECK_CLASS_SIZE(CGib, 0x98, 0xA8);
CHECK_CLASS_SIZE(CSprayCan, 0x88, 0x98);
//CHECK_CLASS_SIZE(CountdownTimer, 0xC, 0x8);
//CHECK_CLASS_SIZE(CBotManager, 12u, 12);
//CHECK_CLASS_SIZE(CCSBotManager, 740, 0x2E0u);//0x2E4u | 0x2E0u