Skip to content

Commit

Permalink
full palette for brush entities
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Oct 1, 2021
1 parent b42ba17 commit 97f0b5e
Showing 1 changed file with 39 additions and 30 deletions.
69 changes: 39 additions & 30 deletions io_import_rbsp/rbsp/titanfall/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,38 +183,47 @@ def trigger_brushes(entity: Entity) -> bpy.types.Mesh:
bm.free()
mesh_data.update()
# trigger materials
purple = (0.527, 0.006, 1.000)
orange = (0.947, 0.202, 0.004)
mauve = (1.000, 0.026, 0.290)
red = (1.000, 0.007, 0.041)
teal = (0.017, 1.000, 0.246)
lime = (0.224, 1.000, 0.000)
pink = (0.947, 0.010, 0.549)
blue = (0.028, 0.584, 0.947)

palette = { # classnames
"envmap_volume": (1.0, 1.0, 1.0),
"light_probe_volume": (1.0, 1.0, 1.0),
"light_environment_volume": (1.0, 1.0, 1.0),
"trigger_capture_point": (0.273, 0.104, 0.409), # purple
"trigger_hurt": (0.944, 0.048, 0.004), # red
"trigger_indoor_area": (0.003, 0.913, 0.442), # teal
"trigger_multiple": (0.944, 0.201, 0.004), # orange
"trigger_once": (0.944, 0.201, 0.004), # orange
"trigger_out_of_bounds": (0.913, 0.39, 0.003), # yellow-green
"trigger_soundscape": (0.004, 0.142, 0.944), # blue
"envmap_volume": purple,
"light_probe_volume": purple,
"light_environment_volume": purple,
"trigger_capture_point": orange,
"trigger_hurt": red,
"trigger_indoor_area": purple,
"trigger_multiple": orange,
"trigger_once": orange,
"trigger_out_of_bounds": mauve,
"trigger_soundscape": purple,
# editorclasses
"trigger_checkpoint": (1.0, 1.0, 1.0),
"trigger_checkpoint_forced": (1.0, 1.0, 1.0),
"trigger_checkpoint_safe": (1.0, 1.0, 1.0),
"trigger_checkpoint_silent": (1.0, 1.0, 1.0),
"trigger_checkpoint_to_safe_spots": (1.0, 1.0, 1.0),
"trigger_deadly_fog": (1.0, 1.0, 1.0),
"trigger_death_fall": (0.966, 0.0, 0.966), # magenta
"trigger_flag_clear": (0.944, 0.201, 0.004), # orange
"trigger_flag_set": (0.944, 0.201, 0.004), # orange
"trigger_flag_touching": (1.0, 1.0, 1.0),
"trigger_friendly": (1.0, 1.0, 1.0),
"trigger_friendly_follow": (1.0, 1.0, 1.0),
"trigger_fw_territory": (1.0, 1.0, 1.0),
"trigger_level_transition": (0.294, 0.996, 0.944), # lime green
"trigger_mp_spawn_zone": (1.0, 1.0, 1.0),
"trigger_no_grapple": (1.0, 1.0, 1.0),
"trigger_quickdeath": (1.0, 1.0, 1.0),
"trigger_quickdeath_checkpoint": (1.0, 1.0, 1.0),
"trigger_spawn": (1.0, 1.0, 1.0),
"trigger_teleporter": (1.0, 1.0, 1.0)}
"trigger_checkpoint": teal,
"trigger_checkpoint_forced": teal,
"trigger_checkpoint_safe": teal,
"trigger_checkpoint_silent": teal,
"trigger_checkpoint_to_safe_spots": teal,
"trigger_deadly_fog": red,
"trigger_death_fall": red,
"trigger_flag_clear": lime,
"trigger_flag_set": lime,
"trigger_flag_touching": lime,
"trigger_friendly": pink,
"trigger_friendly_follow": pink,
"trigger_fw_territory": blue,
"trigger_level_transition": teal,
"trigger_mp_spawn_zone": blue,
"trigger_no_grapple": mauve,
"trigger_quickdeath": red,
"trigger_quickdeath_checkpoint": red,
"trigger_spawn": blue,
"trigger_teleporter": blue}
classname = entity.get("editorclass", entity["classname"])
if classname not in bpy.data.materials:
trigger_material = bpy.data.materials.new(classname)
Expand Down

0 comments on commit 97f0b5e

Please sign in to comment.