Skip to content

Commit

Permalink
Disabled G-LOC text when stock G limits are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SerTheGreat committed Jan 18, 2017
1 parent 4100090 commit b90696a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion G-Effects/G-Effects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ void loseConsciousness(ProtoCrewMember crewMember, KerbalGState kerbalGData, boo
kerbalGData.gLocFadeAmount = G_Effects.MAX_GLOC_FADE;
if (isCommander) {
GEffectsAudio.prepareAudioSources(FindObjectsOfType(typeof(AudioSource)) as AudioSource[]); //a barbarian way to prevent audiosources from being immune to G-LOC mute
if (outputAllowed && (conf.gLocScreenWarning != null) && (conf.gLocScreenWarning.Length > 0) ) {
if (outputAllowed && (conf.gLocScreenWarning != null) && (conf.gLocScreenWarning.Length > 0) &&
!HighLogic.CurrentGame.Parameters.CustomParams<GameParameters.AdvancedParams>().GKerbalLimits) {
ScreenMessages.PostScreenMessage(conf.gLocScreenWarning);
}
Vessel vessel = crewMember.KerbalRef.InVessel;
Expand Down
Binary file modified GameData/G-Effects/Plugins/G-Effects.dll
Binary file not shown.

0 comments on commit b90696a

Please sign in to comment.