Skip to content

Commit

Permalink
imposter options
Browse files Browse the repository at this point in the history
  • Loading branch information
ILoveAGoodCrisp committed Jan 17, 2025
1 parent ef6c3b0 commit 433c427
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions blender/addons/io_scene_foundry/tools/halo_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ def launch_game(is_sapien, settings, filepath, scene_nwo, ignore_play=False):
file.write(f'game_set_variant "midnight_firefight_firefight"\n')
else:
file.write(f'game_set_variant "{settings.firefight_mission}"\n')

if settings.never_instance_imposter:
file.write(f"render_debug_instance_imposter_never 1\n")
if settings.never_object_imposter:
file.write(f"render_debug_object_imposter_never 1\n")

if settings.custom_functions != "":
try:
Expand Down Expand Up @@ -819,6 +824,16 @@ def bsp_name_items(self, context):
description="If disabled, will turn off debugging text spew and error geometry",
default=True,
)

never_instance_imposter: bpy.props.BoolProperty(
name="Never Use Instance Imposters",
description="Forces instances to render fully without ever switching to their imposter model",
)

never_object_imposter: bpy.props.BoolProperty(
name="Never Use Object Imposters",
description="Forces objects to render fully without ever switching to their imposter model",
)

prune_globals: bpy.props.BoolProperty(
options=set(),
Expand Down
5 changes: 4 additions & 1 deletion blender/addons/io_scene_foundry/ui/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ def draw_game_launcher_settings(scene_nwo_halo_launcher, col):
col.prop(scene_nwo_halo_launcher, "enable_firefight")
if scene_nwo_halo_launcher.enable_firefight:
col.prop(scene_nwo_halo_launcher, "firefight_mission")


col.separator()
col.prop(scene_nwo_halo_launcher, "never_instance_imposter")
col.prop(scene_nwo_halo_launcher, "never_object_imposter")

class NWO_HaloLauncherGamePruneSettings(bpy.types.Panel):
bl_label = "Pruning"
Expand Down

0 comments on commit 433c427

Please sign in to comment.