⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hud_stats.txt

📁 * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this
💻 TXT
字号:
Go to: client.h => Add this into "struct local_player_info"
code: 
1:
2:

 int headshots;
float hspercent;
 
 


Go to: client.h => Add this into "void init( int _entindex)"
code: 
1:
2:
3:
4:

 frags=0;
deaths=0;
ratio=0;
bestplayer = false;
 
 


Go to: client.h => Add this into "hud_player_info_t entinfo;"
code: 
1:
2:
3:
4:
5:

 int deaths;
int frags;
float ratio;
float distance;
bool bestplayer;
 
 


Go to: client.cpp => Add this into "void hudDrawInfoTexts()"
code: 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

 if (cvar.hudstats && me.alive)
{
PlayerInfo& r = vPlayers[me.ent->index];
int xx = cvar.hudstats_x;
int yy = cvar.hudstats_y;

DrawHudString(xx,yy,255,255,255,":: HUD-Stats Tutorial ::");
DrawHudString(xx,yy+15,255,255,255,"Deaths: %d", r.deaths);
DrawHudString(xx,yy+30,255,255,255,"Frags: %d", r.frags);
DrawHudString(xx,yy+45,255,255,255,"Headshots: %d", me.headshots);
DrawHudString(xx,yy+60,255,255,255,"Percent: %4.1f", me.hspercent);
}
 
 


Go to: cvar.cpp => Add this into "#define REGISTER_CVAR_INT(name,defaultvalue) cmd.AddCvarInt(#name, &##name );name=defaultvalue;"
code: 
1:
2:
3:

 REGISTER_CVAR_INT( hudstats ,1)
REGISTER_CVAR_INT( hudstats_x ,190)
REGISTER_CVAR_INT( hudstats_y ,20)
 
 


Go to: cvar.h => Add this
code: 
1:
2:
3:

 int hudstats;
int hudstats_x;
int hudstats_y;
 
 
If you have questions:

eMail: SilencerXL@aol.com
MSN: SilencerXL@hotmail.com
Clan: www.cia-clan.com 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -