*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@275 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-04-27 14:37:27 +00:00
parent 93ecf468ce
commit a4bab13d21
14 changed files with 147 additions and 140 deletions
+12 -1
View File
@@ -270,7 +270,18 @@ void damageblend(int n) { dblend += n; };
VAR(hidestats, 0, 0, 1);
VAR(crosshairfx, 0, 1, 1);
VAR(scoped, 0, 0, 1);
bool scoped = false;
int oldfov = 100;
void togglescope()
{
if(player1->gunselect!=GUN_SNIPER) return;
if(!scoped) oldfov = getvar("fov");
scoped = !scoped;
setvar("fov", scoped ? 50 : oldfov);
}
COMMAND(togglescope, ARG_NONE);
void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwater)
{