New naming convention, new natives: cs_set/get/reset_user_model and cs_get/set_hostage_follow

This commit is contained in:
Johnny Bergström
2004-03-04 16:08:31 +00:00
parent 526d8a5de2
commit 3dcc2335b2
6 changed files with 580 additions and 137 deletions

72
dlls/cstrike/CstrikePlayer.cpp Executable file
View File

@ -0,0 +1,72 @@
// CstrikePlayer.cpp: implementation of the CCstrikePlayer class.
//
//////////////////////////////////////////////////////////////////////
#include "CstrikePlayer.h"
#include <string.h> // strcpy()
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCstrikePlayer::CCstrikePlayer()
{
//SetOnline(false);
SetModelled(false);
//SetTime(0.0);
SetInspectModel(false);
}
/*bool CCstrikePlayer::GetOnline()
{
return online;
}
bool CCstrikePlayer::SetOnline(bool onlineIn)
{
return online = onlineIn;
}*/
bool CCstrikePlayer::GetModelled()
{
return modelled;
}
bool CCstrikePlayer::SetModelled(bool modelledIn)
{
if (!modelledIn)
SetInspectModel(false);
return modelled = modelledIn;
}
const char* CCstrikePlayer::GetModel()
{
return model;
}
const char* CCstrikePlayer::SetModel(const char* modelIn)
{
//SetTime(0.0);
return strcpy(model, modelIn);
}
/*float CCstrikePlayer::GetTime()
{
return time;
}
void CCstrikePlayer::SetTime(float timeIn)
{
time = timeIn;
}
*/
bool CCstrikePlayer::GetInspectModel()
{
return inspectModel;
}
void CCstrikePlayer::SetInspectModel(bool inspectModelIn)
{
inspectModel = inspectModelIn;
}