Skip to content

Commit

Permalink
Add cvar for disabling the fix for the borg1 freeze
Browse files Browse the repository at this point in the history
Might be wanted as it is fun to show off at marathons or similar
  • Loading branch information
kugelrund committed Jun 2, 2018
1 parent 051ab36 commit d17fbe4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions game/g_active.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,11 @@ void G_TouchTriggersLerped( gentity_t *ent ) {
return;
}

// let us not have an infinite loop
if ( ent->maxs[1] <= 0.0 ) {
return;
if ( g_fixFreezeBorg1->integer ) {
// let us not have an infinite loop
if (ent->maxs[1] <= 0.0) {
return;
}
}

VectorSubtract( ent->currentOrigin, ent->lastOrigin, diff );
Expand Down
1 change: 1 addition & 0 deletions game/g_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ extern cvar_t *g_virtualVoyager;

// new additions for Elite Reinforce
extern cvar_t *g_teamKnockback;
extern cvar_t *g_fixFreezeBorg1;

//
// g_spawn.c
Expand Down
2 changes: 2 additions & 0 deletions game/g_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ cvar_t *g_virtualVoyager;
// new additions for Elite Reinforce
cvar_t *g_skipDialogs;
cvar_t *g_teamKnockback;
cvar_t *g_fixFreezeBorg1;

qboolean stop_icarus = qfalse;

Expand Down Expand Up @@ -163,6 +164,7 @@ void G_InitCvars( void ) {
// new additions for Elite Reinforce
g_skipDialogs = gi.cvar( "g_skipDialogs", "0", CVAR_ARCHIVE );
g_teamKnockback = gi.cvar( "g_teamKnockback", "0", CVAR_CHEAT );
g_fixFreezeBorg1 = gi.cvar( "g_fixFreezeBorg1", "1", CVAR_ARCHIVE );
}

/*
Expand Down

0 comments on commit d17fbe4

Please sign in to comment.