?? hud_stats.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 + -