From ccd63d4eeca9e6e5dd8304e73a6edf4555eeec16 Mon Sep 17 00:00:00 2001 From: Grant Bagwell Date: Thu, 6 Apr 2023 16:57:36 +0200 Subject: [PATCH] Forced for Extended Menu --- .../jni/OpenJK/codeJK2/game/NPC_stats.cpp | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Projects/Android/jni/OpenJK/codeJK2/game/NPC_stats.cpp b/Projects/Android/jni/OpenJK/codeJK2/game/NPC_stats.cpp index 83d31c6..0673214 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/game/NPC_stats.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/game/NPC_stats.cpp @@ -1268,6 +1268,50 @@ qboolean NPC_ParseParms( const char *NPCName, gentity_t *NPC ) if ( !Q_stricmp( token, "}" ) ) { + //Override scale due to TBDC + if(g_TeamBeefDirectorsCut->value) + { + if(!Q_stricmp( NPCName, "STOfficer" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_STOFFICER /100.0f; + } + else if(!Q_stricmp( NPCName, "STOfficerAlt" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_STOFFICERALT /100.0f; + } + else if(!Q_stricmp( NPCName, "STCommander" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_STOFFICERALT /100.0f; + } + else if(!Q_stricmp( NPCName, "Imperial" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_IMPERIAL /100.0f; + } + else if(!Q_stricmp( NPCName, "ImpOfficer" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_IMPERIALOFFICER /100.0f; + } + else if(!Q_stricmp( NPCName, "ImpCommander" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_IMPERIALCOMMANDER /100.0f; + } + else if(!Q_stricmp( NPCName, "RebornAcrobat" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_REBORNACROBAT /100.0f; + } + else if(!Q_stricmp( NPCName, "Reborn" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_REBORN /100.0f; + } + else if(!Q_stricmp( NPCName, "RebornForceUser" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_REBORNFORCEUSER /100.0f; + } + else if(!Q_stricmp( NPCName, "RebornFencer" )) + { + NPC->s.modelScale[0] = NPC->s.modelScale[1] = NPC->s.modelScale[2] = TBDC_SCALE_REBORNBOSS /100.0f; + } + } break; } //===MODEL PROPERTIES===========================================================