mirror of
https://github.com/ENSL/NS.git
synced 2025-02-16 17:11:15 +00:00
weaponcfgs added. High res monitor sprite fix.
This commit is contained in:
parent
a52b1b3af3
commit
054381909b
34 changed files with 49 additions and 1 deletions
|
@ -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());
|
||||
|
|
|
@ -76,6 +76,7 @@ private:
|
|||
|
||||
int riAmmo[MAX_AMMO_TYPES]; // current ammo counts
|
||||
int iOldWeaponBits;
|
||||
int LastWeaponId;
|
||||
};
|
||||
|
||||
extern WeaponsResource gWR;
|
||||
|
|
1
main/weaponcfgs/weapon_acidrocketgun.cfg
Normal file
1
main/weaponcfgs/weapon_acidrocketgun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_bilebombgun.cfg
Normal file
1
main/weaponcfgs/weapon_bilebombgun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_bite2gun.cfg
Normal file
1
main/weaponcfgs/weapon_bite2gun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_bitegun.cfg
Normal file
1
main/weaponcfgs/weapon_bitegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_blink.cfg
Normal file
1
main/weaponcfgs/weapon_blink.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_charge.cfg
Normal file
1
main/weaponcfgs/weapon_charge.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_claws.cfg
Normal file
1
main/weaponcfgs/weapon_claws.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_devour.cfg
Normal file
1
main/weaponcfgs/weapon_devour.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_divinewind.cfg
Normal file
1
main/weaponcfgs/weapon_divinewind.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_grenade.cfg
Normal file
1
main/weaponcfgs/weapon_grenade.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_grenadegun.cfg
Normal file
1
main/weaponcfgs/weapon_grenadegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_healingspray.cfg
Normal file
1
main/weaponcfgs/weapon_healingspray.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_heavymachinegun.cfg
Normal file
1
main/weaponcfgs/weapon_heavymachinegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_hivegun.cfg
Normal file
1
main/weaponcfgs/weapon_hivegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_knife.cfg
Normal file
1
main/weaponcfgs/weapon_knife.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_leap.cfg
Normal file
1
main/weaponcfgs/weapon_leap.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_machinegun.cfg
Normal file
1
main/weaponcfgs/weapon_machinegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_metabolize.cfg
Normal file
1
main/weaponcfgs/weapon_metabolize.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_mine.cfg
Normal file
1
main/weaponcfgs/weapon_mine.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_nukegun.cfg
Normal file
1
main/weaponcfgs/weapon_nukegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_parasite.cfg
Normal file
1
main/weaponcfgs/weapon_parasite.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_pistol.cfg
Normal file
1
main/weaponcfgs/weapon_pistol.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_primalscream.cfg
Normal file
1
main/weaponcfgs/weapon_primalscream.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_shotgun.cfg
Normal file
1
main/weaponcfgs/weapon_shotgun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_spikegun.cfg
Normal file
1
main/weaponcfgs/weapon_spikegun.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_spit.cfg
Normal file
1
main/weaponcfgs/weapon_spit.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_spore.cfg
Normal file
1
main/weaponcfgs/weapon_spore.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_stomp.cfg
Normal file
1
main/weaponcfgs/weapon_stomp.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_swipe.cfg
Normal file
1
main/weaponcfgs/weapon_swipe.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_umbra.cfg
Normal file
1
main/weaponcfgs/weapon_umbra.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_webspinner.cfg
Normal file
1
main/weaponcfgs/weapon_webspinner.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
1
main/weaponcfgs/weapon_welder.cfg
Normal file
1
main/weaponcfgs/weapon_welder.cfg
Normal file
|
@ -0,0 +1 @@
|
|||
// Enter commands to be executed when this weapon is being used. Useful for per-weapon cl_cross commands or sensitivity.
|
Loading…
Reference in a new issue