NX/VITA: Fix crosshair values for weapons, add Springfield to engine

This commit is contained in:
Steam Deck User 2023-03-13 17:40:07 -04:00
parent d9143fdd66
commit f35a8a5d39
2 changed files with 85 additions and 139 deletions

View file

@ -1318,95 +1318,66 @@ int CrossHairWeapon (void)
{
case W_COLT:
case W_BIATCH:
i = 15;
break;
case W_KAR:
case W_ARMAGEDDON:
i = 50;
break;
case W_THOMPSON:
case W_GIBS:
i = 10;
break;
case W_357:
case W_KILLU:
i = 10;
i = 22;
break;
case W_PTRS:
case W_PENETRATOR:
case W_KAR_SCOPE:
case W_HEADCRACKER:
case W_KAR:
case W_ARMAGEDDON:
case W_SPRING:
case W_PULVERIZER:
i = 65;
break;
case W_MP40:
case W_AFTERBURNER:
case W_STG:
case W_SPATZ:
case W_THOMPSON:
case W_GIBS:
case W_BAR:
case W_WIDOW:
case W_PPSH:
case W_REAPER:
case W_RAY:
case W_PORTER:
case W_TYPE:
case W_SAMURAI:
case W_FG:
case W_IMPELLER:
case W_MP5:
case W_KOLLIDER:
i = 10;
break;
case W_BROWNING:
case W_ACCELERATOR:
i = 20;
break;
case W_DB:
case W_BORE:
i = 25;
break;
case W_FG:
case W_IMPELLER:
i = 10;
break;
case W_GEWEHR:
case W_COMPRESSOR:
i = 10;
break;
case W_KAR_SCOPE:
case W_HEADCRACKER:
i = 50;
break;
case W_M1:
case W_M1000:
i = 10;
break;
case W_M1A1:
case W_WIDDER:
i = 10;
break;
case W_MP40:
case W_AFTERBURNER:
i = 10;
break;
case W_MG:
case W_BARRACUDA:
i = 20;
break;
case W_PANZER:
case W_LONGINUS:
i = 0;
break;
case W_PPSH:
case W_REAPER:
i = 10;
break;
case W_PTRS:
case W_PENETRATOR:
i = 50;
break;
case W_RAY:
case W_PORTER:
i = 10;
i = 30;
break;
case W_SAWNOFF:
case W_SNUFF:
i = 30;
break;
case W_STG:
case W_SPATZ:
i = 10;
i = 50;
break;
case W_TRENCH:
case W_GUT:
i = 25;
case W_DB:
case W_BORE:
i = 35;
break;
case W_TYPE:
case W_SAMURAI:
i = 10;
break;
case W_MP5:
i = 10;
case W_GEWEHR:
case W_COMPRESSOR:
case W_M1:
case W_M1000:
case W_M1A1:
case W_WIDDER:
i = 5;
break;
case W_PANZER:
case W_LONGINUS:
case W_TESLA:
i = 0;
break;
@ -1415,6 +1386,8 @@ int CrossHairWeapon (void)
break;
}
i *= 0.75;
if (cl.perks & 64)
i *= 0.65;
@ -1427,95 +1400,60 @@ int CrossHairMaxSpread (void)
{
case W_COLT:
case W_BIATCH:
i = 30;
break;
case W_KAR:
case W_ARMAGEDDON:
i = 75;
break;
case W_STG:
case W_SPATZ:
case W_MP40:
case W_AFTERBURNER:
case W_THOMPSON:
case W_GIBS:
i = 25;
break;
case W_357:
case W_KILLU:
i = 20;
break;
case W_BAR:
case W_WIDOW:
i = 35;
break;
case W_357:
case W_KILLU:
case W_BROWNING:
case W_ACCELERATOR:
case W_FG:
case W_IMPELLER:
case W_MP5:
case W_KOLLIDER:
case W_MG:
case W_BARRACUDA:
case W_PPSH:
case W_REAPER:
case W_RAY:
case W_PORTER:
case W_TYPE:
case W_SAMURAI:
i = 48;
break;
case W_PTRS:
case W_PENETRATOR:
case W_KAR_SCOPE:
case W_HEADCRACKER:
case W_KAR:
case W_ARMAGEDDON:
case W_SPRING:
case W_PULVERIZER:
i = 75;
break;
case W_SAWNOFF:
case W_SNUFF:
i = 50;
break;
case W_DB:
case W_BORE:
i = 25;
break;
case W_FG:
case W_IMPELLER:
i = 40;
break;
case W_TRENCH:
case W_GUT:
case W_GEWEHR:
case W_COMPRESSOR:
i = 35;
break;
case W_KAR_SCOPE:
case W_HEADCRACKER:
i = 75;
break;
case W_M1:
case W_M1000:
i = 35;
break;
case W_M1A1:
case W_WIDDER:
i = 35;
break;
case W_MP40:
case W_AFTERBURNER:
i = 25;
break;
case W_MG:
case W_BARRACUDA:
i = 50;
break;
case W_PANZER:
case W_LONGINUS:
i = 0;
break;
case W_PPSH:
case W_REAPER:
i = 25;
break;
case W_PTRS:
case W_PENETRATOR:
i = 75;
break;
case W_RAY:
case W_PORTER:
i = 20;
break;
case W_SAWNOFF:
case W_SNUFF:
i = 30;
break;
case W_STG:
case W_SPATZ:
i = 35;
break;
case W_TRENCH:
case W_GUT:
i = 25;
break;
case W_TYPE:
case W_SAMURAI:
i = 25;
break;
case W_MP5:
i = 25;
break;
case W_TESLA:
i = 0;
break;
@ -1524,6 +1462,8 @@ int CrossHairMaxSpread (void)
break;
}
i *= 0.75;
if (cl.perks & 64)
i *= 0.65;
@ -2013,6 +1953,8 @@ int GetWeaponZoomAmmount (void)
case W_COLT:
return 10;
break;
case W_SPRING:
case W_PULVERIZER:
case W_KAR:
case W_ARMAGEDDON:
return 25;

View file

@ -183,6 +183,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define W_M14 55
#define W_TESLA 56
#define W_DG3 57 //tesla
#define W_SPRING 58
#define W_PULVERIZER 59
#define W_NOWEP 420
#define IT_SHOTGUN 1