Confirmed hostage follow offset for WON, tidied up csplayerclass

This commit is contained in:
Johnny Bergström 2004-03-08 09:18:06 +00:00
parent 913b72451d
commit da149e4580
4 changed files with 10 additions and 38 deletions

View File

@ -11,22 +11,10 @@
CCstrikePlayer::CCstrikePlayer() CCstrikePlayer::CCstrikePlayer()
{ {
//SetOnline(false);
SetModelled(false); SetModelled(false);
//SetTime(0.0);
SetInspectModel(false); SetInspectModel(false);
} }
/*bool CCstrikePlayer::GetOnline()
{
return online;
}
bool CCstrikePlayer::SetOnline(bool onlineIn)
{
return online = onlineIn;
}*/
bool CCstrikePlayer::GetModelled() bool CCstrikePlayer::GetModelled()
{ {
return modelled; return modelled;
@ -45,22 +33,11 @@ const char* CCstrikePlayer::GetModel()
return model; return model;
} }
const char* CCstrikePlayer::SetModel(const char* modelIn) void CCstrikePlayer::SetModel(const char* modelIn)
{ {
//SetTime(0.0); strcpy(model, modelIn);
return strcpy(model, modelIn);
} }
/*float CCstrikePlayer::GetTime()
{
return time;
}
void CCstrikePlayer::SetTime(float timeIn)
{
time = timeIn;
}
*/
bool CCstrikePlayer::GetInspectModel() bool CCstrikePlayer::GetInspectModel()
{ {
return inspectModel; return inspectModel;

View File

@ -10,22 +10,17 @@ class CCstrikePlayer
public: public:
CCstrikePlayer(); CCstrikePlayer();
/*bool GetOnline();
bool SetOnline(bool onlineIn);*/
bool GetModelled(); bool GetModelled();
bool SetModelled(bool modelledIn); bool SetModelled(bool modelledIn);
//float GetTime();
//void SetTime(float timeIn);
const char* GetModel(); const char* GetModel();
const char* SetModel(const char* modelIn); void SetModel(const char* modelIn);
bool GetInspectModel(); bool GetInspectModel();
void SetInspectModel(bool inspectModelIn); void SetInspectModel(bool inspectModelIn);
private: private:
bool online, inspectModel; bool inspectModel;
bool modelled; bool modelled;
char model[32]; char model[32];
//float time;
}; };
#endif // !defined(INCLUDED_CCSTRIKEPLAYER) #endif // !defined(INCLUDED_CCSTRIKEPLAYER)

View File

@ -53,10 +53,10 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"Release/cstrike_amxx.dll" # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# Begin Special Build Tool # Begin Special Build Tool
SOURCE="$(InputPath)" SOURCE="$(InputPath)"
PostBuild_Cmds=echo Copying dll... copy Release\cstrike_amxx.dll K:\S\cstrike\addons\amx\dlls echo Copying inc... copy cstrike_amxx.inc K:\S\cstrike\addons\amx\examples\include PostBuild_Cmds=echo Copying dll... copy Release\cstrike.dll K:\S\cstrike\addons\amx\dlls echo Copying inc... copy ..\plugins\include\cstrike.inc K:\S\cstrike\addons\amx\examples\include
# End Special Build Tool # End Special Build Tool
!ELSEIF "$(CFG)" == "cstrike - Win32 Debug" !ELSEIF "$(CFG)" == "cstrike - Win32 Debug"
@ -125,7 +125,7 @@ SOURCE=.\CstrikePlayer.h
# End Group # End Group
# Begin Source File # Begin Source File
SOURCE=.\cstrike_amxx.inc SOURCE=..\plugins\include\cstrike.inc
# End Source File # End Source File
# End Target # End Target
# End Project # End Project

View File

@ -66,11 +66,11 @@ pfnmodule_engine_g* g_engModuleFunc;
#define NAME "Counter-Strike" #define NAME "Counter-Strike"
#define AUTHOR "AMX Mod X Dev Team" #define AUTHOR "AMX Mod X Dev Team"
#if defined CS_WON_BUILD #if defined __cswonbuild__
#define VERSION "0.1 WON" // change both these versions #define VERSION "0.1 WON" // change both these versions
#else #else
#define VERSION "0.1" // change both these versions #define VERSION "0.1" // change both these versions
#endif // defined CS_WON_BUILD #endif // defined __cswonbuild__
#define URL "http://www.amxmodx.org" #define URL "http://www.amxmodx.org"
#define LOGTAG "AMXCS" #define LOGTAG "AMXCS"
#define DATE __DATE__ #define DATE __DATE__
@ -114,7 +114,7 @@ pfnmodule_engine_g* g_engModuleFunc;
#define OFFSET_WEAPONTYPE 43 + EXTRAOFFSET // same as STEAM #define OFFSET_WEAPONTYPE 43 + EXTRAOFFSET // same as STEAM
#define OFFSET_SILENCER_FIREMODE 70 + EXTRAOFFSET // differs -4 from STEAM #define OFFSET_SILENCER_FIREMODE 70 + EXTRAOFFSET // differs -4 from STEAM
// "hostage_entity" entities // "hostage_entity" entities
//#define OFFSET_HOSTAGEFOLLOW 86 + EXTRAOFFSET // NOT YET CHECKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! find out before build #define OFFSET_HOSTAGEFOLLOW 86 + EXTRAOFFSET // same as STEAM
#define OFFSET_HOSTAGEID 487 + EXTRAOFFSET // same as STEAM #define OFFSET_HOSTAGEID 487 + EXTRAOFFSET // same as STEAM
#else // from here STEAM build looks for offsets #else // from here STEAM build looks for offsets
// "player" entities // "player" entities