mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45:41 +03:00
3d252fe527
Fixed some critical bugs and typos (carrer_task, tutor, zbot and other) Added command line option `-bots` to run bots in CS 1.6 Removed the tests demo record/player from myself the project and also dependency of the steam library. Fixed the progress bar when generating a nav file.
23 lines
478 B
C++
23 lines
478 B
C++
#include "precompiled.h"
|
|
|
|
skilldata_t gSkillData;
|
|
|
|
// take the name of a cvar, tack a digit for the skill level
|
|
// on, and return the value.of that Cvar
|
|
NOXREF float GetSkillCvar(char *pName)
|
|
{
|
|
int iCount;
|
|
float flValue;
|
|
char szBuffer[64];
|
|
|
|
iCount = Q_sprintf(szBuffer, "%s%d", pName, gSkillData.iSkillLevel);
|
|
flValue = CVAR_GET_FLOAT(szBuffer);
|
|
|
|
if (flValue <= 0.0f)
|
|
{
|
|
ALERT(at_console, "\n\n** GetSkillCVar Got a zero for %s **\n\n",szBuffer);
|
|
}
|
|
|
|
return flValue;
|
|
}
|