weaponcfgs added. High res monitor sprite fix.

This commit is contained in:
pierow 2021-01-27 20:54:45 -05:00
parent a52b1b3af3
commit 054381909b
34 changed files with 49 additions and 1 deletions

View file

@ -132,13 +132,18 @@ void WeaponsResource :: LoadWeaponSprites( WEAPON *pWeapon, int custom )
int screenWidth=ScreenWidth();
for ( j=0; j < numRes; j++ ) {
if (screenWidth > resolutions[5])
{
iRes = resolutions[5];
break;
}
if ( screenWidth == resolutions[j] ) {
iRes=resolutions[j];
break;
}
if ( j > 0 && screenWidth > resolutions[j-1] && screenWidth < resolutions[j] ) {
iRes=resolutions[j-1];
break;
break;
}
}
@ -689,6 +694,16 @@ void CHudAmmo::Think(void)
}
if (gHUD.GetCurrentWeaponID() != gWR.LastWeaponId)
{
gWR.LastWeaponId = gHUD.GetCurrentWeaponID();
WEAPON* currentWeapon = gWR.GetWeapon(gHUD.GetCurrentWeaponID());
char weapcfg[128];
sprintf(weapcfg, "exec weaponcfgs/%s.cfg", currentWeapon->szName);
ClientCmd(weapcfg);
}
if(gHUD.GetIsAlien()) //check for hive death causing loss of current weapon
{
WEAPON* currentWeapon = gWR.GetWeapon(gHUD.GetCurrentWeaponID());

View file

@ -76,6 +76,7 @@ private:
int riAmmo[MAX_AMMO_TYPES]; // current ammo counts
int iOldWeaponBits;
int LastWeaponId;
};
extern WeaponsResource gWR;

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.

View file

@ -0,0 +1 @@
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.