Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // flam_bitmasks.h
- // blood
- //
- // Created by silent on 5/13/19.
- // Copyright © 2019 galaxyverge. All rights reserved.
- //
- #ifndef bitmasks_h
- #define bitmasks_h
- /*
- includes
- */
- /*
- bool
- */
- #include <stdbool.h>
- /*
- uint8_t
- uint16_t
- uint32_t
- */
- #include <stdint.h>
- union FLAM_empty_32bit_flags {
- uint32_t integer;
- struct {
- bool:0;
- } bitfield;
- };
- union FLAM_empty_16bit_flags {
- uint16_t integer;
- struct {
- bool:0;
- } bitfield;
- };
- union FLAM_color_interpolation_32bit_flags {
- uint32_t integer;
- struct {
- bool blend_in_hsv:1;
- bool more_colors:1;
- } bitfield;
- };
- union FLAM_color_interpolation_16bit_flags {
- uint16_t integer;
- struct {
- bool interpolate_color_in_hsv:1;
- bool more_colors:1;
- } bitfield;
- };
- union FLAM_particle_bitmap_flags {
- uint16_t integer;
- struct {
- bool unfiltered:1;
- } bitfield;
- };
- union FLAM_particle_shader_flags {
- uint16_t integer;
- struct {
- bool sort_bias:1;
- bool nonlinear_tint:1;
- bool dont_overdraw_fp_weapon:1;
- } bitfield;
- };
- union FLAM_model_flags {
- uint32_t integer;
- struct {
- bool blend_shared_normals:1;
- bool parts_have_local_nodes:1;
- bool ignore_skinning:1;
- } bitfield;
- };
- union FLAM_model_region_permutation_block_flags {
- uint32_t integer;
- struct {
- bool cannot_be_chosen_randomly:1;
- } bitfield;
- };
- union FLAM_model_geometry_part_block_flags {
- uint32_t integer;
- struct {
- bool stripped_internal:1;
- bool zoner_model_part_local_nodes:1;
- } bitfield;
- };
- union FLAM_model_animations_flags {
- uint16_t integer;
- struct {
- bool compress_all_animations:1;
- bool force_idle_compression:1;
- } bitfield;
- };
- union FLAM_animation_graph_node_block_node_joint_flags {
- uint32_t integer;
- struct {
- bool ball_socket:1;
- bool hinge:1;
- bool no_movement:1;
- } bitfield;
- };
- union FLAM_animation_block_flags {
- uint16_t integer;
- struct {
- bool compressed_data:1;
- bool world_relative:1;
- bool pal_25hz:1;
- } bitfield;
- };
- union FLAM_bitmap_flags {
- uint16_t integer;
- struct {
- bool enable_diffusion_dithering:1;
- bool disable_height_map_compression:1;
- bool uniform_sprite_sequences:1;
- bool filthy_sprite_bug_fix:1;
- } bitfield;
- };
- union FLAM_bitmap_data_block_flags {
- uint16_t integer;
- struct {
- bool power_of_two_dimensions:1;
- bool compressed:1;
- bool palettized:1;
- bool swizzled:1;
- bool linear:1;
- bool v16u16:1;
- } bitfield;
- };
- union FLAM_unit_flags {
- uint32_t integer;
- struct {
- bool circular_aiming:1;
- bool destroyed_after_dying:1;
- bool half_speed_interpolation:1;
- bool fires_from_camera:1;
- bool entrance_inside_bounding_sphere:1;
- bool:1;
- bool causes_passenger_dialogue:1;
- bool resists_pings:1;
- bool melee_attack_is_fatal:1;
- bool dont_reface_during_pings:1;
- bool has_no_aiming:1;
- bool simple_creature:1;
- bool impact_melee_attaches_to_unit:1;
- bool impact_melee_dies_on_shields:1;
- bool cannot_open_doors_automatically:1;
- bool melee_attackers_cannot_attach:1;
- bool not_instantly_killed_by_melee:1;
- bool shield_sapping:1;
- bool runs_around_flaming:1;
- bool inconsequential:1;
- bool special_cinematic_unit:1;
- bool ignored_by_autoaiming:1;
- bool shields_fry_infection_forms:1;
- bool integrated_light_controls_weapon:1;
- bool integrated_light_lasts_forever:1;
- } bitfield;
- };
- union FLAM_unit_seat_block_flags {
- uint32_t integer;
- struct {
- bool invisible:1;
- bool locked:1;
- bool driver:1;
- bool gunner:1;
- bool third_person_camera:1;
- bool allows_weapons:1;
- bool third_person_on_enter:1;
- bool first_person_camera_slaved_to_gun:1;
- bool allow_vehicle_communication_animations:1;
- bool not_valid_without_driver:1;
- bool allow_ai_noncombatants:1;
- } bitfield;
- };
- union FLAM_biped_flags {
- uint32_t integer;
- struct {
- bool turns_without_animating:1;
- bool uses_player_physics:1;
- bool flying:1;
- bool physics_pill_centered_at_origin:1;
- bool spherical:1;
- bool passes_through_other_bipeds:1;
- bool can_climb_any_surface:1;
- bool immune_to_falling_damage:1;
- bool rotate_while_airborne:1;
- bool uses_limp_body_physics:1;
- bool has_no_dying_airborne:1;
- bool random_speed_increase:1;
- bool unit_uses_old_ntsc_player_physics:1;
- } bitfield;
- };
- union FLAM_vehicle_flags {
- uint32_t integer;
- struct {
- bool speed_wakes_physics:1;
- bool turn_wakes_physics:1;
- bool driver_power_wakes_physics:1;
- bool gunner_power_wakes_physics:1;
- bool control_opposite_speed_sets_brake:1;
- bool slide_wakes_physics:1;
- bool kills_riders_at_terminal_velocity:1;
- bool causes_collision_damage:1;
- bool ai_weapon_cannot_rotate:1;
- bool ai_does_not_require_driver:1;
- bool ai_unused:1;
- bool ai_driver_enable:1;
- bool ai_driver_flying:1;
- bool ai_driver_can_sidestep:1;
- bool ai_driver_hovering:1;
- } bitfield;
- };
- union FLAM_powered_mass_point_block_flags {
- uint32_t integer;
- struct {
- bool ground_friction:1;
- bool water_friction:1;
- bool air_friction:1;
- bool water_lift:1;
- bool air_lift:1;
- bool thrust:1;
- bool antigrav:1;
- } bitfield;
- };
- union FLAM_mass_point_block_flags {
- uint32_t integer;
- struct {
- bool metallic:1;
- } bitfield;
- };
- union FLAM_object_flags {
- uint16_t integer;
- struct {
- bool does_not_cast_shadow:1;
- bool transparent_self_occlusion:1;
- bool brighter_than_it_should_be:1;
- bool not_a_pathfinding_obstacle:1;
- } bitfield;
- };
- union FLAM_object_function_block_flags {
- uint32_t integer;
- struct {
- bool invert:1;
- bool additive:1;
- bool always_active:1;
- } bitfield;
- };
- union FLAM_contrail_flags {
- uint16_t integer;
- struct {
- bool first_point_unfaded:1;
- bool last_point_unfaded:1;
- bool points_start_pinned_to_media:1;
- bool points_start_pinned_to_ground:1;
- bool points_always_pinned_to_media:1;
- bool points_always_pinned_to_ground:1;
- bool edge_effect_fades_slowly:1;
- } bitfield;
- };
- union FLAM_contrail_scale_flags {
- uint16_t integer;
- struct {
- bool point_generation_rate:1;
- bool point_velocity:1;
- bool point_velocity_delta:1;
- bool point_velocity_cone_angle:1;
- bool inherited_velocity_fraction:1;
- bool sequence_animation_rate:1;
- bool texture_scale_u:1;
- bool texture_scale_v:1;
- bool texture_animation_u:1;
- bool texture_animation_v:1;
- } bitfield;
- };
- union FLAM_contrail_point_states_block_scale_flags {
- uint32_t integer;
- struct {
- bool duration:1;
- bool duration_delta:1;
- bool transition_duration:1;
- bool transition_duration_delta:1;
- bool width:1;
- bool color:1;
- } bitfield;
- };
- union FLAM_weapon_flags {
- uint32_t integer;
- struct {
- bool vertical_heat_display:1;
- bool mutually_exclusive_triggers:1;
- bool attacks_automatically_on_bump:1;
- bool must_be_readied:1;
- bool doesnt_count_toward_maximum:1;
- bool aim_assists_only_when_zoomed:1;
- bool prevents_grenade_throwing:1;
- bool must_be_picked_up:1;
- bool holds_triggers_when_dropped:1;
- bool prevents_melee_attack:1;
- bool detonates_when_dropped:1;
- bool cannot_fire_at_maximum_age:1;
- bool secondary_trigger_overrides_grenades:1;
- bool obsolete_does_not_depower_active_camo_in_multiplayer:1;
- bool enables_integrated_night_vision:1;
- bool ais_use_weapon_melee_damage:1;
- } bitfield;
- };
- union FLAM_magazines_flags {
- uint32_t integer;
- struct {
- bool wastes_rounds_when_reloaded:1;
- bool every_round_must_be_chambered:1;
- } bitfield;
- };
- union FLAM_triggers_flags {
- uint32_t integer;
- struct {
- bool tracks_fired_projectile:1;
- bool random_firing_effects:1;
- bool can_fire_with_partial_ammo:1;
- bool does_not_repeat_automatically:1;
- bool locks_in_on_off_state:1;
- bool projectiles_use_weapon_origin:1;
- bool sticks_when_dropped:1;
- bool ejects_during_chamber:1;
- bool discharging_spews:1;
- bool analog_rate_of_fire:1;
- bool use_error_when_unzoomed:1;
- bool projectile_vector_cannot_be_adjusted:1;
- bool projectiles_have_identical_error:1;
- bool projectile_is_client_side_only:1;
- } bitfield;
- };
- union FLAM_light_flags {
- uint32_t integer;
- struct {
- bool dynamic:1;
- bool no_specular:1;
- bool dont_light_own_object:1;
- bool supersize_in_first_person:1;
- bool first_person_flashlight:1;
- bool dont_fade_active_camouflage:1;
- } bitfield;
- };
- union FLAM_effect_flags {
- uint32_t integer;
- struct {
- bool deleted_when_attachment_deactivates:1;
- bool required_for_gameplay_cannot_optimize_out:1;
- } bitfield;
- };
- union FLAM_effect_part_block_flags {
- uint16_t integer;
- struct {
- bool face_down_regardless_of_location_decals:1;
- } bitfield;
- };
- union FLAM_effect_part_block_channel_value_scales {
- uint32_t integer;
- struct {
- bool velocity:1;
- bool velocity_delta:1;
- bool velocity_cone_angle:1;
- bool angular_velocity:1;
- bool angular_velocity_delta:1;
- bool type_specific_scale:1;
- } bitfield;
- };
- union FLAM_effect_particles_block_flags {
- uint32_t integer;
- struct {
- bool stay_attached_to_marker:1;
- bool random_initial_angle:1;
- bool tint_from_object_color:1;
- bool interpolate_tint_as_hsv:1;
- bool across_the_long_hue_path:1;
- } bitfield;
- };
- union FLAM_effect_particles_block_channel_value_scales {
- uint32_t integer;
- struct {
- bool velocity:1;
- bool velocity_delta:1;
- bool velocity_cone_angle:1;
- bool angular_velocity:1;
- bool angular_velocity_delta:1;
- bool count:1;
- bool count_delta:1;
- bool distribution_radius:1;
- bool distribution_radius_delta:1;
- bool particle_radius:1;
- bool particle_radius_delta:1;
- bool tint:1;
- } bitfield;
- };
- union FLAM_particle_flags {
- uint32_t integer;
- struct {
- bool can_animate_backwards:1;
- bool animation_stops_at_rest:1;
- bool animation_starts_on_random_frame:1;
- bool animate_once_per_frame:1;
- bool dies_at_rest:1;
- bool dies_on_contact_with_structure:1;
- bool tint_from_diffuse_texture:1;
- bool dies_on_contact_with_water:1;
- bool dies_on_contact_with_air:1;
- bool self_illuminated:1;
- bool random_horizontal_mirroring:1;
- bool random_vertical_mirroring:1;
- } bitfield;
- };
- union FLAM_rasterizer_data_block_flags {
- uint16_t integer;
- struct {
- bool tint_edge_density:1;
- } bitfield;
- };
- union FLAM_sound_flags {
- uint32_t integer;
- struct {
- bool fit_to_adpcm_blocksize:1;
- bool split_long_sound_into_permutations:1;
- } bitfield;
- };
- union FLAM_sound_looping_flags {
- uint32_t integer;
- struct {
- bool deafening_to_ais:1;
- bool not_a_loop:1;
- bool stops_music:1;
- } bitfield;
- };
- union FLAM_looping_sound_track_block_flags {
- uint32_t integer;
- struct {
- bool fade_in_at_start:1;
- bool fade_out_at_stop:1;
- bool fade_in_alternate:1;
- } bitfield;
- };
- union FLAM_looping_sound_detail_block_flags {
- uint32_t integer;
- struct {
- bool dont_play_with_alternate:1;
- bool dont_play_without_alternate:1;
- } bitfield;
- };
- union FLAM_item_flags {
- uint32_t integer;
- struct {
- bool always_maintains_z_up:1;
- bool destroyed_by_explosions:1;
- bool unaffected_by_gravity:1;
- } bitfield;
- };
- union FLAM_weather_particle_type_block_flags {
- uint32_t integer;
- struct {
- bool interpolate_colors_in_hsv:1;
- bool along_long_hue_path:1;
- bool random_rotation:1;
- } bitfield;
- };
- union FLAM_glow_flags {
- uint32_t integer;
- struct {
- bool modify_particle_color_in_range:1;
- bool particles_move_backwards:1;
- bool particles_move_in_both_directions:1;
- bool trailing_particles_fade_over_time:1;
- bool trailing_particles_shrink_over_time:1;
- bool trailing_particles_slow_over_time:1;
- } bitfield;
- };
- union FLAM_lightning_marker_block_flags {
- uint16_t integer;
- struct {
- bool not_connected_to_next_marker:1;
- } bitfield;
- };
- union FLAM_particle_system_types_block_flags {
- uint32_t integer;
- struct {
- bool type_states_loop:1;
- bool type_states_loop_forward_backward:1;
- bool particle_states_loop:1;
- bool particle_states_loop_forward_backward:1;
- bool particles_die_in_water:1;
- bool particles_die_in_air:1;
- bool particles_die_on_ground:1;
- bool rotational_sprites_animate_sideways:1;
- bool disabled:1;
- bool tint_by_effect_color:1;
- bool initial_count_scales_with_effect:1;
- bool minimum_count_scales_with_effect:1;
- bool creation_rate_scales_with_effect:1;
- bool scale_scales_with_effect:1;
- bool animation_rate_scales_with_effect:1;
- bool rotation_rate_scales_with_effect:1;
- bool dont_draw_in_first_person:1;
- bool dont_draw_in_third_person:1;
- } bitfield;
- };
- union FLAM_projectile_flags {
- uint32_t integer;
- struct {
- bool oriented_along_velocity:1;
- bool ai_must_use_ballistic_aiming:1;
- bool detonation_max_time_if_attached:1;
- bool has_super_combining_explosion:1;
- bool combine_initial_velocity_with_parent_velocity:1;
- bool random_attached_detonation_time:1;
- bool minimum_unattached_detonation_time:1;
- } bitfield;
- };
- union FLAM_projectile_material_response_block_flags {
- uint16_t integer;
- struct {
- bool cannot_be_overpenetrated:1;
- } bitfield;
- };
- union FLAM_projectile_material_response_block_potential_result_flags {
- uint16_t integer;
- struct {
- bool only_against_units:1;
- } bitfield;
- };
- union FLAM_model_collision_geometry_flags {
- uint32_t integer;
- struct {
- bool takes_shield_damage_for_children:1;
- bool takes_body_damage_for_children:1;
- bool always_shields_friendly_damage:1;
- bool passes_area_damage_to_children:1;
- bool parent_never_takes_body_damage_for_us:1;
- bool only_damaged_by_explosives:1;
- bool only_damaged_while_occupied:1;
- } bitfield;
- };
- union FLAM_damage_materials_block_flags {
- uint32_t integer;
- struct {
- bool head:1;
- } bitfield;
- };
- union FLAM_damage_regions_block_flags {
- uint32_t integer;
- struct {
- bool lives_until_object_dies:1;
- bool forces_object_to_die:1;
- bool dies_when_object_dies:1;
- bool dies_when_object_is_damaged:1;
- bool disappears_when_shield_is_off:1;
- bool inhibits_melee_attack:1;
- bool inhibits_weapon_attack:1;
- bool inhibits_walking:1;
- bool forces_drop_weapon:1;
- bool causes_head_maimed_scream:1;
- } bitfield;
- };
- union FLAM_leaf_flags {
- uint16_t integer;
- struct {
- bool contains_double_sided_surfaces:1;
- } bitfield;
- };
- union FLAM_surface_flags {
- uint8_t integer;
- struct {
- bool two_sided:1;
- bool invisible:1;
- bool climbable:1;
- bool breakable:1;
- } bitfield;
- };
- union FLAM_device_flags {
- uint32_t integer;
- struct {
- bool position_loops:1;
- bool position_not_interpolated:1;
- } bitfield;
- };
- union FLAM_device_machine_flags {
- uint16_t integer;
- struct {
- bool pathfinding_obstacle:1;
- bool but_not_when_open:1;
- bool elevator:1;
- } bitfield;
- };
- union FLAM_point_physics_flags {
- uint32_t integer;
- struct {
- bool flamethrower_particle_collision:1;
- bool collides_with_structures:1;
- bool collides_with_water_surface:1;
- bool uses_simple_wind:1;
- bool uses_damped_wind:1;
- bool no_gravity:1;
- } bitfield;
- };
- union FLAM_structure_bsp_material_block_flags {
- uint16_t integer;
- struct {
- bool coplanar:1;
- bool fog_plane:1;
- } bitfield;
- };
- union FLAM_structure_bsp_cluster_portal_block_flags {
- uint32_t integer;
- struct {
- bool ai_cant_hear_through_this:1;
- } bitfield;
- };
- union FLAM_scenario_flags {
- uint16_t integer;
- struct {
- bool cortana_hack:1;
- bool use_demo_ui:1;
- } bitfield;
- };
- union FLAM_scenario_function_block_flags {
- uint32_t integer;
- struct {
- bool scripted:1;
- bool invert:1;
- bool additive:1;
- bool always_active:1;
- } bitfield;
- };
- union FLAM_scenario_object_not_placed_flags {
- uint16_t integer;
- struct {
- bool automatically:1;
- bool on_easy:1;
- bool on_normal:1;
- bool on_hard:1;
- } bitfield;
- };
- union FLAM_scenario_unit_flags {
- uint32_t integer;
- struct {
- bool dead:1;
- } bitfield;
- };
- union FLAM_scenario_vehicle_block_multiplayer_spawn_flags {
- uint16_t integer;
- struct {
- bool slayer_default:1;
- bool ctf_default:1;
- bool king_default:1;
- bool oddball_default:1;
- bool:1;
- bool:1;
- bool:1;
- bool:1;
- bool slayer_allowed:1;
- bool ctf_allowed:1;
- bool king_allowed:1;
- bool oddball_allowed:1;
- bool:1;
- bool:1;
- bool:1;
- bool:1;
- } bitfield;
- };
- union FLAM_scenario_item_flags {
- uint16_t integer;
- struct {
- bool initially_at_rest_doesnt_fall:1;
- bool obsolete:1;
- bool does_accelerate_moves_due_to_explosions:1;
- } bitfield;
- };
- union FLAM_device_group_block_flags {
- uint32_t integer;
- struct {
- bool can_change_only_once:1;
- } bitfield;
- };
- union FLAM_scenario_device_flags {
- uint32_t integer;
- struct {
- bool initially_open:1;
- bool initially_off:1;
- bool can_change_only_once:1;
- bool position_reversed:1;
- bool not_usable_from_any_side:1;
- } bitfield;
- };
- union FLAM_scenario_control_block_flags {
- uint32_t integer;
- struct {
- bool usable_from_both_sides:1;
- } bitfield;
- };
- union FLAM_scenario_netgame_equipment_block_flags {
- uint32_t integer;
- struct {
- bool levitate:1;
- } bitfield;
- };
- union FLAM_scenario_starting_equipment_block_flags {
- uint32_t integer;
- struct {
- bool no_grenades:1;
- bool plasma_grenades:1;
- } bitfield;
- };
- union FLAM_encounter_block_flags {
- uint32_t integer;
- struct {
- bool not_initially_created:1;
- bool respawn_enabled:1;
- bool initially_blind:1;
- bool initially_deaf:1;
- bool initially_braindead:1;
- bool use_3d_firing_positions:1;
- bool manual_bsp_index_specified:1;
- } bitfield;
- };
- union FLAM_squads_block_flags {
- uint32_t integer;
- struct {
- bool:1;
- bool never_search:1;
- bool start_timer_immediately:1;
- bool no_timer_delay_forever:1;
- bool magic_sight_after_timer:1;
- bool automatic_migration:1;
- } bitfield;
- };
- union FLAM_squads_block_firing_position_group_indices {
- uint32_t integer;
- struct {
- bool A:1;
- bool B:1;
- bool C:1;
- bool D:1;
- bool E:1;
- bool F:1;
- bool G:1;
- bool H:1;
- bool I:1;
- bool J:1;
- bool K:1;
- bool L:1;
- bool M:1;
- bool N:1;
- bool O:1;
- bool P:1;
- bool Q:1;
- bool R:1;
- bool S:1;
- bool T:1;
- bool U:1;
- bool V:1;
- bool W:1;
- bool X:1;
- bool Y:1;
- bool Z:1;
- } bitfield;
- };
- union FLAM_actor_starting_locations_block_flags {
- uint8_t integer;
- struct {
- bool required:1;
- } bitfield;
- };
- union FLAM_platoons_block_flags {
- uint32_t integer;
- struct {
- bool flee_when_maneuvering:1;
- bool say_advancing_when_maneuver:1;
- bool start_in_defending_state:1;
- } bitfield;
- };
- union FLAM_ai_command_list_block_flags {
- uint32_t integer;
- struct {
- bool allow_initiative:1;
- bool allow_targeting:1;
- bool disable_looking:1;
- bool disable_communication:1;
- bool disable_falling_damage:1;
- bool manual_bsp_index:1;
- } bitfield;
- };
- union FLAM_ai_conversation_block_flags {
- uint16_t integer;
- struct {
- bool stop_if_death:1;
- bool stop_if_damaged:1;
- bool stop_if_visible_enemy:1;
- bool stop_if_alerted_to_enemy:1;
- bool player_must_be_visible:1;
- bool stop_other_actions:1;
- bool keep_trying_to_play:1;
- bool player_must_be_looking:1;
- } bitfield;
- };
- union FLAM_ai_conversation_participant_block_flags {
- uint16_t integer;
- struct {
- bool optional:1;
- bool has_alternate:1;
- bool is_alternate:1;
- } bitfield;
- };
- union FLAM_ai_conversation_line_block_flags {
- uint16_t integer;
- struct {
- bool addressee_look_at_speaker:1;
- bool everyone_look_at_speaker:1;
- bool everyone_look_at_addressee:1;
- bool wait_after_until_told_to_advance:1;
- bool wait_until_speaker_nearby:1;
- bool wait_until_everyone_nearby:1;
- } bitfield;
- };
- union FLAM_shader_radiosity_flags {
- uint16_t integer;
- struct {
- bool simple_parameterization:1;
- bool ignore_normals:1;
- bool transparent_lit:1;
- } bitfield;
- };
- union FLAM_shader_environment_flags {
- uint16_t integer;
- struct {
- bool alpha_tested:1;
- bool bump_map_is_specular_mask:1;
- bool true_atmospheric_fog:1;
- } bitfield;
- };
- union FLAM_shader_environment_diffuse_flags {
- uint16_t integer;
- struct {
- bool rescale_detail_maps:1;
- bool rescale_bump_map:1;
- } bitfield;
- };
- union FLAM_shader_environment_specular_flags {
- uint16_t integer;
- struct {
- bool overbright:1;
- bool extra_shiny:1;
- bool lightmap_is_specular:1;
- } bitfield;
- };
- union FLAM_shader_environment_reflection_flags {
- uint16_t integer;
- struct {
- bool dynamic_mirror:1;
- } bitfield;
- };
- union FLAM_shader_model_flags {
- uint16_t integer;
- struct {
- bool detail_after_reflection:1;
- bool two_sided:1;
- bool not_alpha_tested:1;
- bool alpha_blended_decal:1;
- bool true_atmospheric_fog:1;
- bool disable_two_sided_culling:1;
- } bitfield;
- };
- union FLAM_shader_model_self_illumination_flags {
- uint16_t integer;
- struct {
- bool no_random_phase:1;
- } bitfield;
- };
- union FLAM_shader_transparent_flags {
- uint8_t integer;
- struct {
- bool alpha_tested:1;
- bool decal:1;
- bool two_sided:1;
- bool first_map_is_in_screenspace:1;
- bool draw_before_water:1;
- bool ignore_effect:1;
- bool scale_first_map_with_distance:1;
- bool numeric:1;
- } bitfield;
- };
- union FLAM_shader_transparent_generic_map_block_flags {
- uint16_t integer;
- struct {
- bool unfiltered:1;
- bool u_clamped:1;
- bool v_clamped:1;
- } bitfield;
- };
- union FLAM_shader_transparent_generic_stage_block_flags {
- uint16_t integer;
- struct {
- bool color_mux:1;
- bool alpha_mux:1;
- bool a_out_controls_color0_animation:1;
- } bitfield;
- };
- union FLAM_shader_transparent_chicago_map_block_flags {
- uint16_t integer;
- struct {
- bool unfiltered:1;
- bool alpha_replicate:1;
- bool u_clamped:1;
- bool v_clamped:1;
- } bitfield;
- };
- union FLAM_shader_transparent_chicago_extra_flags {
- uint32_t integer;
- struct {
- bool dont_fade_active_camouflage:1;
- bool numeric_countdown_timer:1;
- } bitfield;
- };
- union FLAM_shader_transparent_water_flags {
- uint16_t integer;
- struct {
- bool base_map_alpha_modulates_reflection:1;
- bool base_map_color_modulates_background:1;
- bool atmospheric_fog:1;
- bool draw_before_fog:1;
- } bitfield;
- };
- union FLAM_shader_transparent_glass_flags {
- uint16_t integer;
- struct {
- bool alpha_tested:1;
- bool decal:1;
- bool two_sided:1;
- bool bump_map_is_specular_mask:1;
- } bitfield;
- };
- union FLAM_shader_transparent_meter_flags {
- uint16_t integer;
- struct {
- bool decal:1;
- bool two_sided:1;
- bool flash_color_is_negative:1;
- bool tint_mode_2:1;
- bool unfiltered:1;
- } bitfield;
- };
- union FLAM_actor_flags {
- uint32_t integer;
- struct {
- bool can_see_in_darkness:1;
- bool sneak_uncovering_target:1;
- bool sneak_uncovering_pursuit_position:1;
- bool:1;
- bool shoot_at_targets_last_location:1;
- bool try_to_stay_still_when_crouched:1;
- bool crouch_when_not_in_combat:1;
- bool crouch_when_guarding:1;
- bool:1;
- bool must_crouch_to_shoot:1;
- bool panic_when_surprised:1;
- bool always_charge_at_enemies:1;
- bool gets_in_vehicles_with_player:1;
- bool start_firing_before_aligned:1;
- bool standing_must_move_forward:1;
- bool crouching_must_move_forward:1;
- bool defensive_crouch_while_charging:1;
- bool use_stalking_behavior:1;
- bool stalking_freeze_if_exposed:1;
- bool always_berserk_in_attacking_mode:1;
- bool berserking_uses_panicked_movement:1;
- bool flying:1;
- bool panicked_by_unopposable_enemy:1;
- bool crouch_when_hiding_from_unopposable:1;
- bool always_charge_in_attacking_mode:1;
- bool dive_off_ledges:1;
- bool swarm:1;
- bool suicidal_melee_attack:1;
- bool cannot_move_while_crouching:1;
- bool fixed_crouch_facing:1;
- bool crouch_when_in_line_of_fire:1;
- bool avoid_friends_line_of_fire:1;
- } bitfield;
- };
- union FLAM_actor_more_flags {
- uint32_t integer;
- struct {
- bool avoid_all_enemy_attack_vectors:1;
- bool must_stand_to_fire:1;
- bool must_stop_to_fire:1;
- bool disallow_vehicle_combat:1;
- bool pathfinding_ignores_danger:1;
- bool panic_in_groups:1;
- bool no_corpse_shooting:1;
- } bitfield;
- };
- union FLAM_actor_variant_flags {
- uint32_t integer;
- struct {
- bool can_shoot_while_flying:1;
- bool interpolate_color_in_hsv:1;
- bool has_unlimited_grenades:1;
- bool moveswitch_stay_with_friends:1;
- bool active_camouflage:1;
- bool super_active_camouflage:1;
- bool cannot_use_ranged_weapons:1;
- bool prefer_passenger_seat:1;
- } bitfield;
- };
- union FLAM_sky_light_block_flags {
- uint32_t integer;
- struct {
- bool affects_exteriors:1;
- bool affects_interiors:1;
- } bitfield;
- };
- union FLAM_lens_flare_flags {
- uint16_t integer;
- struct {
- bool sun:1;
- } bitfield;
- };
- union FLAM_lens_flare_reflection_block_flags {
- uint16_t integer;
- struct {
- bool align_rotation_with_screen_center:1;
- bool radius_not_scaled_by_distance:1;
- bool radius_scaled_by_occlusion_factor:1;
- bool occluded_by_solid_objects:1;
- } bitfield;
- };
- union FLAM_fog_flags {
- uint32_t integer;
- struct {
- bool is_water:1;
- bool atmosphere_dominant:1;
- bool fog_screen_only:1;
- } bitfield;
- };
- union FLAM_fog_screen_layer_flags {
- uint16_t integer;
- struct {
- bool no_environment_multipass:1;
- bool no_model_multipass:1;
- bool no_texture_based_falloff:1;
- } bitfield;
- };
- union FLAM_decal_flags {
- uint16_t integer;
- struct {
- bool geometry_inherited_by_next_decal_in_chain:1;
- bool interpolate_color_in_hsv:1;
- bool more_colors:1;
- bool no_random_rotation:1;
- bool water_effect:1;
- bool sapien_snap_to_axis:1;
- bool sapien_incremental_counter:1;
- bool animation_loop:1;
- bool preserve_aspect:1;
- } bitfield;
- };
- union FLAM_damage_effect_flags {
- uint32_t integer;
- struct {
- bool dont_scale_damage_by_distance:1;
- } bitfield;
- };
- union FLAM_damage_effect_damage_flags {
- uint32_t integer;
- struct {
- bool does_not_hurt_owner:1;
- bool can_cause_headshots:1;
- bool pings_resistant_units:1;
- bool does_not_hurt_friends:1;
- bool does_not_ping_units:1;
- bool detonates_explosives:1;
- bool only_hurts_shields:1;
- bool causes_flaming_death:1;
- bool damage_indicators_always_point_down:1;
- bool skips_shields:1;
- bool only_hurts_one_infection_form:1;
- bool can_cause_multiplayer_headshots:1;
- bool infection_form_pop:1;
- } bitfield;
- };
- union FLAM_weapon_hud_interface_flags {
- uint16_t integer;
- struct {
- bool use_parent_hud_flashing_parameters:1;
- } bitfield;
- };
- union FLAM_hud_scaling_flags {
- uint16_t integer;
- struct {
- bool dont_scale_offset:1;
- bool dont_scale_size:1;
- bool use_high_resolution_scale:1;
- } bitfield;
- };
- union FLAM_hud_flash_flags {
- uint16_t integer;
- struct {
- bool reverse_default_flashing_colors:1;
- } bitfield;
- };
- union FLAM_hud_meter_flags {
- uint8_t integer;
- struct {
- bool use_min_max_for_state_changes:1;
- bool interpolate_between_min_max_flash_colors_as_state_changes:1;
- bool interpolate_color_along_hsv_space:1;
- bool more_colors_for_hsv_interpolation:1;
- bool invert_interpolation:1;
- } bitfield;
- };
- union FLAM_hud_number_flags {
- uint8_t integer;
- struct {
- bool show_leading_zeros:1;
- bool only_show_when_zoomed:1;
- bool draw_a_trailing_m:1;
- } bitfield;
- };
- union FLAM_weapon_hud_number_block_weapon_specific_flags {
- uint16_t integer;
- struct {
- bool divide_number_by_clip_size:1;
- } bitfield;
- };
- union FLAM_weapon_hud_crosshair_item_block_flags {
- uint32_t integer;
- struct {
- bool flashes_when_active:1;
- bool not_a_sprite:1;
- bool show_only_when_zoomed:1;
- bool show_sniper_data:1;
- bool hide_area_outside_reticle:1;
- bool one_zoom_level:1;
- bool dont_show_when_zoomed:1;
- } bitfield;
- };
- union FLAM_weapon_hud_overlay_block_type {
- uint16_t integer;
- struct {
- bool show_on_flashing:1;
- bool show_on_empty:1;
- bool show_on_reload_overheating:1;
- bool show_on_default:1;
- bool show_always:1;
- } bitfield;
- };
- union FLAM_hud_overlay_flags {
- uint32_t integer;
- struct {
- bool flashes_when_active:1;
- } bitfield;
- };
- union FLAM_global_hud_screen_effect_definition_flags {
- uint16_t integer;
- struct {
- bool only_when_zoomed:1;
- } bitfield;
- };
- union FLAM_global_hud_screen_effect_definition_night_vision_flags {
- uint16_t integer;
- struct {
- bool only_when_zoomed:1;
- bool connect_to_flashlight:1;
- bool masked:1;
- } bitfield;
- };
- union FLAM_global_hud_screen_effect_definition_desaturation_flags {
- uint16_t integer;
- struct {
- bool only_when_zoomed:1;
- bool connect_to_flashlight:1;
- bool additive:1;
- bool masked:1;
- } bitfield;
- };
- union FLAM_hud_messaging_flags {
- uint8_t integer;
- struct {
- bool use_text_from_string_list_instead:1;
- bool override_default_color:1;
- bool width_offset_is_absolute_icon_width:1;
- } bitfield;
- };
- union FLAM_grenade_hud_overlay_block_type {
- uint16_t integer;
- struct {
- bool show_on_flashing:1;
- bool show_on_empty:1;
- bool show_on_default:1;
- bool show_always:1;
- } bitfield;
- };
- union FLAM_grenade_hud_sound_block_latched_to {
- uint32_t integer;
- struct {
- bool low_grenade_count:1;
- bool no_grenades_left:1;
- bool throw_on_no_grenades:1;
- } bitfield;
- };
- union FLAM_unit_hud_auxiliary_overlay_block_flags {
- uint16_t integer;
- struct {
- bool use_team_color:1;
- } bitfield;
- };
- union FLAM_unit_hud_sound_block_latched_to {
- uint32_t integer;
- struct {
- bool shield_recharging:1;
- bool shield_damaged:1;
- bool shield_low:1;
- bool shield_empty:1;
- bool health_low:1;
- bool health_empty:1;
- bool health_minor_damage:1;
- bool health_major_damage:1;
- } bitfield;
- };
- union FLAM_unit_hud_auxiliary_panel_block_meter_flags {
- uint32_t integer;
- struct {
- bool show_only_when_active:1;
- bool flash_once_if_activated_while_disabled:1;
- } bitfield;
- };
- union FLAM_hud_waypoint_arrow_block_flags {
- uint32_t integer;
- struct {
- bool dont_rotate_when_pointing_offscreen:1;
- } bitfield;
- };
- union FLAM_detail_object_type_block_type_flags {
- uint8_t integer;
- struct {
- bool:1;
- bool:1;
- bool interpolate_color_in_hsv:1;
- bool more_colors:1;
- } bitfield;
- };
- union FLAM_ui_widget_definition_flags {
- uint32_t integer;
- struct {
- bool pass_unhandled_events_to_focused_child:1;
- bool pause_game_time:1;
- bool flash_background_bitmap:1;
- bool dpad_up_down_tabs_through_children:1;
- bool dpad_left_right_tabs_through_children:1;
- bool dpad_up_down_tabs_through_list_items:1;
- bool dpad_left_right_tabs_through_list_items:1;
- bool dont_focus_a_specific_child_widget:1;
- bool pass_unhandled_events_to_all_children:1;
- bool render_regardless_of_controller_index:1;
- bool pass_handled_events_to_all_children:1;
- bool return_to_main_menu_if_no_history:1;
- bool always_use_tag_controller_index:1;
- bool always_use_nifty_render_fx:1;
- bool dont_push_history:1;
- bool force_handle_mouse:1;
- } bitfield;
- };
- union FLAM_event_handler_references_block_flags {
- uint32_t integer;
- struct {
- bool close_current_widget:1;
- bool close_other_widget:1;
- bool close_all_widgets:1;
- bool open_widget:1;
- bool reload_self:1;
- bool reload_other_widget:1;
- bool give_focus_to_widget:1;
- bool run_function:1;
- bool replace_self_with_widget:1;
- bool go_back_to_previous_widget:1;
- bool run_scenario_script:1;
- bool try_to_branch_on_failure:1;
- } bitfield;
- };
- union FLAM_ui_widget_definition_text_box_flags {
- uint32_t integer;
- struct {
- bool editable:1;
- bool password:1;
- bool flashing:1;
- bool dont_do_that_weird_focus_test:1;
- } bitfield;
- };
- union FLAM_ui_widget_definition_list_items_flags {
- uint32_t integer;
- struct {
- bool list_items_generated_in_code:1;
- bool list_items_from_string_list_tag:1;
- bool list_items_only_one_tooltip:1;
- bool list_single_preview_no_scroll:1;
- } bitfield;
- };
- union FLAM_conditional_widget_reference_block_flags {
- uint32_t integer;
- struct {
- bool load_if_event_handler_function_fails:1;
- } bitfield;
- };
- union FLAM_child_widget_reference_block_flags {
- uint32_t integer;
- struct {
- bool use_custom_controller_index:1;
- } bitfield;
- };
- union FLAM_input_device_defaults_flags {
- uint16_t integer;
- struct {
- bool:1;
- } bitfield;
- };
- #endif /* bitmasks_h */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement