Forced for Extended Menu

This commit is contained in:
Grant Bagwell 2023-04-06 16:57:36 +02:00
parent d6b3e8eb65
commit ccd63d4eec

View file

@ -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===========================================================