|
| 1 | +// This is injected at the end of Portal2.fgd. |
| 2 | + |
| 3 | +@BaseClass = BEETemplateEnt |
| 4 | + [ |
| 5 | + template_id(string): "Template ID" : "" : "The unique ID this template has (in the combined file)." |
| 6 | + visgroup(string): "Visgroup" : "" : "The visgroup this brush/overlay was contained in (in the combined file)." |
| 7 | + ] |
| 8 | + |
| 9 | +@SolidClass base(BEETemplateEnt) = bee2_template_world: "A set of world brushes which will be templated into a map." |
| 10 | + [ |
| 11 | + ] |
| 12 | + |
| 13 | +@SolidClass base(BEETemplateEnt) = bee2_template_detail: "A set of detail brushes which will be templated into a map." |
| 14 | + [ |
| 15 | + ] |
| 16 | + |
| 17 | +@PointClass base(BEETemplateEnt, info_overlay) |
| 18 | + size(-1 -1 0, 1 1 1) |
| 19 | + color(80 150 225) |
| 20 | + studio("models/editor/overlay_helper.mdl") |
| 21 | + iconsprite("BEE2/editor/bee2_icon.vmt") |
| 22 | + sphere(fademindist) |
| 23 | + sphere(fademaxdist) |
| 24 | + overlay() |
| 25 | + = bee2_template_overlay : |
| 26 | + "An overlay which will be templated into a map." |
| 27 | + [ |
| 28 | + ] |
| 29 | + |
| 30 | +@PointClass base(BEETemplateEnt) iconsprite("BEE2/editor/bee2_icon.vmt") = bee2_template_scaling: |
| 31 | + "Used to store the values for a scaling template." |
| 32 | + [ |
| 33 | + up_tex(material): "Up Texture" : "" : "Texture for the upward-pointing face." |
| 34 | + up_uaxis(string): "Up (U)" : "" : "Uaxis data for the upward-pointing face." |
| 35 | + up_vaxis(string): "Up (V)" : "" : "Vaxis data for the upward-pointing face." |
| 36 | + up_rotation(float): "Up Rotation" : 0 : "Rotation value fo the upward-pointing face." |
| 37 | + |
| 38 | + // Divider in the Hammer display, doesn't do anything. |
| 39 | + _sep1(string) readonly: "---------" : "" |
| 40 | + |
| 41 | + dn_tex(material): "Down Texture" : "" : "Texture for the downward-pointing face." |
| 42 | + dn_uaxis(string): "Down (U)" : "" : "Uaxis data for the downward-pointing face." |
| 43 | + dn_vaxis(string): "Down (V)" : "" : "Vaxis data for the downward-pointing face." |
| 44 | + dn_rotation(float): "Up Rotation" : 0 : "Rotation value for the downward-pointing face." |
| 45 | + |
| 46 | + _sep2(string) readonly: "---------" : "" |
| 47 | + |
| 48 | + n_tex(material): "North Texture" : "" : "Texture for the north-pointing face." |
| 49 | + n_uaxis(string): "North (U)" : "" : "Uaxis data for the north-pointing face." |
| 50 | + n_vaxis(string): "North (V)" : "" : "Vaxis data for the north-pointing face." |
| 51 | + n_rotation(float): "North Rotation" : 0 : "Rotation value for the north-pointing face." |
| 52 | + |
| 53 | + _sep3(string) readonly: "---------" : "" |
| 54 | + |
| 55 | + s_tex(material): "South Texture" : "" : "Texture for the south-pointing face." |
| 56 | + s_uaxis(string): "South (U)" : "" : "Uaxis data for the south-pointing face." |
| 57 | + s_vaxis(string): "South (V)" : "" : "Vaxis data for the south-pointing face." |
| 58 | + s_rotation(float): "South Rotation" : 0 : "Rotation value for the south-pointing face." |
| 59 | + |
| 60 | + _sep3(string) readonly: "---------" : "" |
| 61 | + |
| 62 | + e_tex(material): "East Texture" : "" : "Texture for the east-pointing face." |
| 63 | + e_uaxis(string): "East (U)" : "" : "Uaxis data for the east-pointing face." |
| 64 | + e_vaxis(string): "East (V)" : "" : "Vaxis data for the east-pointing face." |
| 65 | + e_rotation(float): "East Rotation" : 0 : "Rotation value for the north-pointing face." |
| 66 | + |
| 67 | + _sep4(string) readonly: "---------" : "" |
| 68 | + |
| 69 | + w_tex(material): "West Texture" : "" : "Texture for the west-pointing face." |
| 70 | + w_uaxis(string): "West (U)" : "" : "Uaxis data for the west-pointing face." |
| 71 | + w_vaxis(string): "West (V)" : "" : "Vaxis data for the west-pointing face." |
| 72 | + w_rotation(float): "West Rotation" : 0 : "Rotation value for the north-pointing face." |
| 73 | + ] |
| 74 | + |
| 75 | +@PointClass |
| 76 | + iconsprite("BEE2/editor/bee2_icon.vmt") |
| 77 | + sidelist(realign_faces) |
| 78 | + = bee2_template_conf: |
| 79 | + "Defines configuration options for a template." |
| 80 | + [ |
| 81 | + template_id(string): "Template ID" : "" : "The ID given to this template. If set this will be loaded automatically." |
| 82 | + |
| 83 | + realign_faces(sidelist): "Realign Faces" : : "Rotate and realign these faces to world." + |
| 84 | + "This should be used on axis-aligned tile surfaces, to make texturing match in different templates. " + |
| 85 | + "The faces must be axis-aligned." |
| 86 | + vertical_faces(sidelist): "Rotate Faces to Vertical" : : "Rotate these faces in 90 degree increments until they point upwards." |
| 87 | + skip_faces(sidelist): "Don't Retexture these faces" : : "Do not change textures on these faces." |
| 88 | + overlay_faces(sidelist): "Overlay Transfer Faces" : : "Apply overlays on the base surface to this, when using ReplaceBrush." |
| 89 | + |
| 90 | + temp_type(choices): "Template Type" : "default" : "Convert brushes to this type of entity." = |
| 91 | + [ |
| 92 | + "default" : "Original Type" |
| 93 | + "world" : "World Brush" |
| 94 | + "detail" : "func_detail" |
| 95 | + ] |
| 96 | + |
| 97 | + is_scaling(boolean): "Save as Scaling Template" : 0 : "Scaling templates are a world-aligned cube for texturing brush sides in specific orientations. " + |
| 98 | + "Set this to discard excess data." |
| 99 | + discard_brushes(boolean): "Discard Brushes" : 0 : "Don't keep brushes, for templates used to position overlays only." |
| 100 | + detail_auto_visgroup(boolean): "Group Detail Entities" : 0 : "If True, each func_detail entity will be put into a auto_xx visgroup. Otherwise, all func_detail will be ungrouped. World brushes stay ungrouped regardless." |
| 101 | + ] |
| 102 | + |
| 103 | +@PointClass |
| 104 | + base(Angles) |
| 105 | + iconsprite("BEE2/editor/bee2_icon.vmt") |
| 106 | + studioprop("models/editor/angle_helper.mdl") |
| 107 | + sidelist(faces) |
| 108 | + = bee2_template_colorpicker: |
| 109 | + "Applies the color of a surface at a position to template faces. The arrow should point out of the surface." |
| 110 | + [ |
| 111 | + template_id(string): "Template ID" : "" : "The unique ID this template has (in the combined file)." |
| 112 | + faces(sidelist): "Faces" : : "The faces this position is applied to." |
| 113 | + priority(integer): "Priority" : 0 : "Set this higher to make it apply in preference to other pickers. This allows using fallback positions for surfaces." |
| 114 | + grid_snap(boolean): "Snap To Grid" : 0 : "For items like fizzlers, snap to the closest grid position in side directions." |
| 115 | + remove_brush(boolean): "Remove Brush" : 0 : "After grabbing the surface, remove the brush. Should only be done when you know the brush isn't shared with other faces." |
| 116 | + ] |
| 117 | + |
| 118 | +// -------- |
| 119 | +// Entities used with editoritems_gen.py to make editoritems configs. |
| 120 | +// These should not appear in any maps. |
| 121 | + |
| 122 | +@PointClass |
| 123 | + base(Angles) |
| 124 | + studioprop("models/BEE2/editor/connection_point.mdl") |
| 125 | + = bee2_editor_connectionpoint: "Defines a connection point for antlines." |
| 126 | + [ |
| 127 | + skin(choices) : "Orientation" : 1 : "The position of the antline relative to the signage." = |
| 128 | + [ |
| 129 | + // 0 = useless, needed to distinguish materials in the model. |
| 130 | + 1: "Close Left" |
| 131 | + 2: "Close Right" |
| 132 | + 3: "Far Left" |
| 133 | + 4: "Far Right" |
| 134 | + ] |
| 135 | + priority(integer) : "Priority" : 0 : "Defines which connection points are used first." |
| 136 | + group_id(string) : "Group ID" : "" : "?" |
| 137 | + ] |
| 138 | + |
| 139 | +@PointClass wirebox(min, max) = bee2_editor_embeddedvoxel: "Defines an EmbeddedVoxel section of an item. The shape is aligned to the 128-grid." |
| 140 | + [ |
| 141 | + min(vecline) : "Minimum Position" : "-64 -64 0" : "The minimum position of the hollowed area." |
| 142 | + min(vecline) : "Maximum Position" : "64 64 0" : "The maximum position of the hollowed area." |
| 143 | + ] |
| 144 | + |
| 145 | +@PointClass wirebox(min, max)= bee2_editor_embedface: "Defines a EmbedFace section for an item." |
| 146 | + [ |
| 147 | + min(vecline) : "Minimum Position" : "-64 -64 0" : "The minimum position of the brush section. Vertical position is ignored." |
| 148 | + min(vecline) : "Maximum Position" : "64 64 0" : "The minimum position of the brush section. Vertical position is ignored." |
| 149 | + |
| 150 | + tile_type(choices) : "Tile Size" : "4x4" : "The size of tile to generate." = |
| 151 | + [ |
| 152 | + "4x4_checkered" : "4x4 Checkered Tiles" |
| 153 | + "4x4" : "4x4 Tiles" |
| 154 | + "2x2" : "2x2 Tiles" |
| 155 | + "1x1" : "1x1 Tiles" |
| 156 | + "Grid_Default" : "Normal Wall" |
| 157 | + ] |
| 158 | + ] |
| 159 | + |
| 160 | +@AutoVisGroup = "BEE2" |
| 161 | + [ |
| 162 | + "Templates" |
| 163 | + [ |
| 164 | + "bee2_template_world" |
| 165 | + "bee2_template_detail" |
| 166 | + "bee2_template_overlay" |
| 167 | + "bee2_template_scaling" |
| 168 | + "bee2_template_conf" |
| 169 | + ] |
| 170 | + "Editoritems" |
| 171 | + [ |
| 172 | + "bee2_editor_connectionpoint" |
| 173 | + "bee2_editor_embeddedvoxel" |
| 174 | + "bee2_editor_embedface" |
| 175 | + ] |
| 176 | + ] |
| 177 | + |
| 178 | +@AutoVisGroup = "Templates" |
| 179 | + [ |
| 180 | + "World" |
| 181 | + [ |
| 182 | + "bee2_template_world" |
| 183 | + ] |
| 184 | + "Detail" |
| 185 | + [ |
| 186 | + "bee2_template_detail" |
| 187 | + ] |
| 188 | + "Overlay" |
| 189 | + [ |
| 190 | + "bee2_template_overlay" |
| 191 | + ] |
| 192 | + "Scaling Temp" |
| 193 | + [ |
| 194 | + "bee2_template_scaling" |
| 195 | + ] |
| 196 | + "Configuration" |
| 197 | + [ |
| 198 | + "bee2_template_conf" |
| 199 | + "bee2_template_colorpicker" |
| 200 | + ] |
| 201 | + ] |
0 commit comments