Ai
1 Star 0 Fork 0

yoyojacky/CSMoE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
skill.cpp 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
萌殇小白白๑ 提交于 2019-05-20 23:21 +08:00 . namespace sv, cl, ui #64
#include "extdll.h"
#include "util.h"
#include "skill.h"
namespace sv {
DLL_GLOBAL 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;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyojacky/CSMoE.git
git@gitee.com:yoyojacky/CSMoE.git
yoyojacky
CSMoE
CSMoE
master

搜索帮助