mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
0eed08c133
Fixed a bug after killing czbot by headshot, angles turn at 180 degrees. Fixed some bugs with mp_nadedrops
23 lines
479 B
C++
23 lines
479 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;
|
|
}
|