Fixed wrong view model animations for mohta and mohtt weapons

This commit is contained in:
smallmodel 2023-07-09 21:24:57 +02:00
parent b8ff6d0f21
commit 2dc43f9104
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -59,7 +59,6 @@ static const char *AnimPrefixList[] = {
"enfieldl42a1", "enfieldl42a1",
"carcano", "carcano",
"delisle", "delisle",
"thompson",
"sten", "sten",
"ppsh", "ppsh",
"moschetto", "moschetto",
@ -78,7 +77,8 @@ static const char *AnimPrefixList[] = {
"minedetectoraxis", "minedetectoraxis",
"detonator", "detonator",
"kar98mortar", "kar98mortar",
"PIAT"}; "PIAT"
};
enum animPrefix_e { enum animPrefix_e {
WPREFIX_NONE, WPREFIX_NONE,
@ -192,7 +192,7 @@ int CG_GetVMAnimPrefixIndex()
// Team Assault and Team Tactics // Team Assault and Team Tactics
// //
if (!Q_stricmp(szWeaponName, "Lee-Enfield")) { if (!Q_stricmp(szWeaponName, "Lee-Enfield")) {
return WPREFIX_SPRINGFIELD; return WPREFIX_ENFIELD;
} }
if (!Q_stricmp(szWeaponName, "SVT 40")) { if (!Q_stricmp(szWeaponName, "SVT 40")) {
return WPREFIX_SVT; return WPREFIX_SVT;
@ -204,7 +204,7 @@ int CG_GetVMAnimPrefixIndex()
return WPREFIX_G43; return WPREFIX_G43;
} }
if (!Q_stricmp(szWeaponName, "Enfield L42A1")) { if (!Q_stricmp(szWeaponName, "Enfield L42A1")) {
return WPREFIX_ENFIELD; return WPREFIX_ENFIELDL42A;
} }
if (!Q_stricmp(szWeaponName, "Carcano")) { if (!Q_stricmp(szWeaponName, "Carcano")) {
return WPREFIX_CARCANO; return WPREFIX_CARCANO;
@ -249,10 +249,10 @@ int CG_GetVMAnimPrefixIndex()
return WPREFIX_MP44; return WPREFIX_MP44;
} }
if (!Q_stricmp(szWeaponName, "Vickers-Berthier")) { if (!Q_stricmp(szWeaponName, "Vickers-Berthier")) {
return WPREFIX_MP44; return WPREFIX_VICKERS;
} }
if (!Q_stricmp(szWeaponName, "Breda")) { if (!Q_stricmp(szWeaponName, "Breda")) {
return WPREFIX_MP44; return WPREFIX_BREDA;
} }
return WPREFIX_BAR; return WPREFIX_BAR;