File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ bool Countermeasures_use_capacity;
154154bool Play_thruster_sounds_for_player;
155155std::array<std::tuple<float , float >, 6 > Fred_spacemouse_nonlinearity;
156156bool Randomize_particle_rotation;
157+ bool Disable_shield_effects;
157158bool Calculate_subsystem_hitpoints_after_parsing;
158159bool Disable_internal_loadout_restoration_system;
159160bool Contrails_use_absolute_speed;
@@ -980,6 +981,10 @@ void parse_mod_table(const char *filename)
980981 stuff_boolean (&Randomize_particle_rotation);
981982 }
982983
984+ if (optional_string (" $Disable shield effects:" )) {
985+ stuff_boolean (&Disable_shield_effects);
986+ }
987+
983988 optional_string (" #NETWORK SETTINGS" );
984989
985990 if (optional_string (" $FS2NetD port:" )) {
@@ -1732,6 +1737,7 @@ void mod_table_reset()
17321737 std::tuple<float , float >{ 1 .0f , 1 .0f }
17331738 }};
17341739 Randomize_particle_rotation = false ;
1740+ Disable_shield_effects = false ;
17351741 Calculate_subsystem_hitpoints_after_parsing = false ;
17361742 Disable_internal_loadout_restoration_system = false ;
17371743 Contrails_use_absolute_speed = false ;
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ extern bool Countermeasures_use_capacity;
169169extern bool Play_thruster_sounds_for_player;
170170extern std::array<std::tuple<float , float >, 6 > Fred_spacemouse_nonlinearity;
171171extern bool Randomize_particle_rotation;
172+ extern bool Disable_shield_effects;
172173extern bool Calculate_subsystem_hitpoints_after_parsing;
173174extern bool Disable_internal_loadout_restoration_system;
174175extern bool Contrails_use_absolute_speed;
Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ void render_shields()
546546
547547 int i;
548548
549- if (Detail.shield_effects == 0 ) {
549+ if (Detail.shield_effects == 0 || Disable_shield_effects) {
550550 return ; // No shield effect rendered at lowest detail level.
551551 }
552552
@@ -870,16 +870,16 @@ void shield_point_multi_setup()
870870 */
871871void create_shield_explosion_all (object *objp)
872872{
873+ if (Detail.shield_effects == 0 || Disable_shield_effects) {
874+ return ;
875+ }
876+
873877 int i;
874878 int num;
875879 int count;
876880 int objnum;
877881 ship *shipp;
878882
879- if (Detail.shield_effects == 0 ){
880- return ;
881- }
882-
883883 num = objp->instance ;
884884 shipp = &Ships[num];
885885
You can’t perform that action at this time.
0 commit comments