mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-28 06:52:07 +00:00
Switch to use Bummser's NPC file if TBDC is disabled
This commit is contained in:
parent
a2f1644d72
commit
a271b61ac7
2 changed files with 3495 additions and 2 deletions
|
@ -2220,15 +2220,21 @@ Ghoul2 Insert End
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
extern cvar_t *g_TeamBeefDirectorsCut;
|
||||
|
||||
void NPC_LoadParms( void )
|
||||
{
|
||||
int len, totallen, npcExtFNLen, mainBlockLen, fileCnt, i;
|
||||
const char filename[] = "ext_data/NPCs.cfg";
|
||||
|
||||
char npcs_filename[64];
|
||||
Com_sprintf(npcs_filename, sizeof(npcs_filename), "ext_data/%s.cfg",
|
||||
g_TeamBeefDirectorsCut->integer ? "npcs" : "npcs_og");
|
||||
|
||||
char *buffer, *holdChar, *marker;
|
||||
char npcExtensionListBuf[2048]; // The list of file names read in
|
||||
|
||||
//First, load in the npcs.cfg
|
||||
len = gi.FS_ReadFile( filename, (void **) &buffer );
|
||||
len = gi.FS_ReadFile( npcs_filename, (void **) &buffer );
|
||||
if ( len == -1 ) {
|
||||
gi.Printf( "file not found\n" );
|
||||
return;
|
||||
|
|
3487
z_vr_assets_jko/ext_data/npcs_og.cfg
Normal file
3487
z_vr_assets_jko/ext_data/npcs_og.cfg
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue