Skip to content

Commit 35ff039

Browse files
committed
Update DOTA FGDs for testing, add new missing variable types
Fixes #46
1 parent 1bc888c commit 35ff039

File tree

12 files changed

+1477
-1470
lines changed

12 files changed

+1477
-1470
lines changed

Sledge.Formats.GameData.Tests/Resources/fgd/source2/ai_basenpc.fgd

Lines changed: 355 additions & 354 deletions
Large diffs are not rendered by default.

Sledge.Formats.GameData.Tests/Resources/fgd/source2/ai_defaultnpc.fgd

Lines changed: 137 additions & 147 deletions
Large diffs are not rendered by default.

Sledge.Formats.GameData.Tests/Resources/fgd/source2/base.fgd

Lines changed: 586 additions & 540 deletions
Large diffs are not rendered by default.

Sledge.Formats.GameData.Tests/Resources/fgd/source2/lights.fgd

Lines changed: 20 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -6,67 +6,6 @@
66

77
@include "lights_base.fgd"
88

9-
@PointClass light() base(light_base, light_base_legacy_params, light_base_attenuation_params, CanBeClientOnly) leansphere(lightsourceradius,255,255,255) sphere(range,255,255,0)
10-
iconsprite
11-
{
12-
image = "materials/editor/light_omni.vmat"
13-
tintKey = "color"
14-
}
15-
metadata
16-
{
17-
entity_tool_name = "Point Light"
18-
entity_tool_tip = "Omni directional point light source"
19-
entity_tool_group = "Lighting"
20-
}
21-
= light_omni : "A point light source."
22-
[
23-
castshadows(choices) [ group = "Shadows" ] : "Cast Shadows" : "0" : "Whether this light casts shadow" =
24-
[
25-
"0" : "No"
26-
"1" : "Yes"
27-
"2" : "Baked Only"
28-
]
29-
]
30-
31-
32-
@PointClass light() base(light_base, light_base_legacy_params, light_base_attenuation_params, CanBeClientOnly) editormodel( "models/editor/spot", lightModeTint, "124 255 157", "255 64 64" ) leansphere(lightsourceradius,255,255,255) lightcone()
33-
iconsprite
34-
{
35-
image = "materials/editor/light_spot_icon.vmat"
36-
tintKey = "color"
37-
}
38-
metadata
39-
{
40-
entity_tool_name = "Spot Light"
41-
entity_tool_tip = "Spot light source"
42-
entity_tool_group = "Lighting"
43-
}
44-
= light_spot : "A spot light source."
45-
[
46-
lightcookie(resource:vtex) : "Light Cookie" : ""
47-
48-
falloff(float) : "Falloff" : "1" : "angular falloff exponent for spot lights"
49-
innerconeangle(float) { min="1" max="89" } : "Inner Cone Angle" : "45" : "inner cone angle. no angular falloff within this cone"
50-
outerconeangle(float) { min="1" max="89" } : "Outer Cone Angle" : "60" : "outer cone angle"
51-
52-
shadowfademindist(float) : "Shadow Start Fade Dist" : -250 : "Distance at which the shadow starts to fade (<0 = use fademaxdist)."
53-
shadowfademaxdist(float) : "Shadow End Fade Dist" : 1000 : "Maximum distance at which the shadow is visible (0 = don't fade out)."
54-
55-
shadowtexturewidth(integer) [ group = "Shadows" ] : "Shadow Texture Width" : 0 : "0 = use default texture resolution"
56-
shadowtextureheight(integer) [ group = "Shadows" ] : "Shadow Texture Height" : 0 : "0 = use default texture resolution"
57-
]
58-
59-
@PointClass light() base(light_base, light_base_legacy_params, CanBeClientOnly) editormodel( "models/editor/spot", lightModeTint, "0 255 192", "255 64 64" ) lightortho() = light_ortho : "An orthographic spot light source."
60-
[
61-
lightcookie(resource:vtex) : "Light Cookie" : ""
62-
63-
ortholightwidth(float) { min="1" } : "Width" : "512.0" : "Ortho light rectangle width"
64-
ortholightheight(float) { min="1" } : "Height" : "512.0" : "Ortho light rectangle height"
65-
range(float) { min="0" } : "Range" : "2048.0" : "Distance range for light. 0=infinite"
66-
angulardiameter(float) : "Sun Spread Angle" : "1.0" : "The angular extent of the sun for casting soft shadows. Higher numbers are more diffuse. 1 is a good starting value."
67-
shadowtexturewidth(integer) [ group = "Shadows" ] : "Shadow Texture Width" : 0 : "0 = use default texture resolution"
68-
]
69-
709
@BaseClass = IndoorOutdoorLevel
7110
[
7211
indoor_outdoor_level(choices) : "Priority" : "0" : "If multiple volumes contain an object, the highest priority volume takes precedence." =
@@ -87,22 +26,21 @@
8726

8827
@BaseClass tags( Lighting ) = BaseLightProbeVolume
8928
[
90-
lightprobetexture(resource:texture) : "Light Probe Texture" : "" : "Name of the light probe texture"
91-
box_mins(vector) : "Box Mins" : "-72 -72 -72"
92-
box_maxs(vector) : "Box Maxs" : "72 72 72"
93-
voxel_size(choices) : "Voxel Size" : "48.0" : "" =
29+
lightprobetexture(resource:texture) [ group = "Lightprobes" ] : "Light Probe Texture" : "" : "Name of the light probe texture"
30+
box_mins(vector) [ group = "Bounds" ] : "Box Mins" : "-72 -72 -72"
31+
box_maxs(vector) [ group = "Bounds" ] : "Box Maxs" : "72 72 72"
32+
voxel_size(choices) [ group = "Lightprobes" ] : "Voxel Size" : "48.0" : "" =
9433
[
9534
"12.0" : "Very High Resolution"
9635
"24.0" : "High Resolution"
9736
"48.0" : "Medium Resolution"
9837
"108.0" : "Low Resolution"
9938
]
100-
flood_fill(boolean) : "Ignore Unreachable Space" : 1
101-
voxelize(boolean) : "Ignore Voxelized Solid Space" : 1
102-
light_probe_volume_from_cubemap(boolean) : "Calculate Diffuse Lighting Using Cubemap" : 0
103-
lightgroup(string) : "Light Group" : "" : "Semicolon-delimited list of light groups to affect"
104-
moveable(boolean) : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime."
105-
storage(choices) : "Storage" : "-1" : "" =
39+
flood_fill(boolean) [ group = "Lightprobes" ] : "Ignore Unreachable Space" : 1
40+
voxelize(boolean) [ group = "Lightprobes" ] : "Ignore Voxelized Solid Space" : 1
41+
light_probe_volume_from_cubemap(boolean) [ group = "Lightprobes" ] : "Calculate Diffuse Lighting Using Cubemap" : 0
42+
moveable(boolean) [ group = "Lightprobes" ] : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime."
43+
storage(choices) [ group = "Lightprobes" ] : "Storage" : "-1" : "" =
10644
[
10745
"-1" : "Default"
10846
"0" : "AmbientCube RGBM8888 Uncompressed"
@@ -112,11 +50,10 @@
11250

11351
@BaseClass tags( Lighting ) = BaseCubemap
11452
[
115-
cubemaptexture(resource:texture) : "Cubemap Texture" : "" : "Name of the cubemap texture"
116-
bakenearz(float) : "Bake Near Z" : "2.0" : "Near clip plane used for the camera when baking the cube map"
117-
bakefarz(float) : "Bake Far Z" : "4096.0" : "Far clip plane used for the camera when baking the cube map"
118-
lightgroup(string) : "Light Group" : "" : "Semicolon-delimited list of light groups to affect"
119-
moveable(boolean) : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime."
53+
cubemaptexture(resource:texture) [ group = "Cubemap" ] : "Cubemap Texture" : "" : "Name of the cubemap texture"
54+
bakenearz(float) [ group = "Cubemap" ] : "Bake Near Z" : "2.0" : "Near clip plane used for the camera when baking the cube map"
55+
bakefarz(float) [ group = "Cubemap" ] : "Bake Far Z" : "4096.0" : "Far clip plane used for the camera when baking the cube map"
56+
moveable(boolean) [ group = "Cubemap" ] : "Moveable" : "0" : "Can be moved, parented, enabled, or disabled at runtime."
12057
]
12158

12259
@PointClass
@@ -128,6 +65,7 @@
12865
box_min = "box_mins"
12966
box_max = "box_maxs"
13067
is_light_probe_volume = true
68+
toggle_faces_with_selection_overlay = true
13169
}
13270
bakeresource( lightprobetexture, vtex, env_light_probe_volume, "ToolObjects/LightProbeVolume" )
13371
= env_light_probe_volume : "A grid of precomputed light probes."
@@ -149,9 +87,7 @@
14987
[
15088
influenceradius(float) { min=12 } : "Influence Radius" : "256.0" : "The radius of influence for this cubemap"
15189

152-
// Subclasses in mods which want to support this feature can add this property.
153-
// The name cannot be changed, as it is used by the leansphere helper.
154-
//edge_fade_dist(float) : "Edge Fade" : "0.0"
90+
edge_fade_dist(float) : "Edge Fade" : "0.0"
15591
]
15692

15793
@PointClass
@@ -163,19 +99,17 @@
16399
box_min = "box_mins"
164100
box_max = "box_maxs"
165101
auto_center = false
166-
// will not do anything until this property is added
167102
edge_fades = "edge_fade_dists"
168-
// will not do anything until this property is added
169103
single_edge_fade = "edge_fade_dist"
104+
toggle_faces_with_selection_overlay = true
170105
}
171106
bakeresource( cubemaptexture, vtex, env_cubemap, "ToolObjects/CubeMap" )
172107
= env_cubemap_box : "An env_cubemap with box projection."
173108
[
174109
box_mins(vector) : "Box Projection Mins" : "-72 -72 -72"
175110
box_maxs(vector) : "Box Projection Maxs" : "72 72 72"
176-
// Subclasses in mods which want to support this feature can add this property.
177-
// The name cannot be changed, as it is used by the box_oriented helper.
178-
//edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0"
111+
112+
edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0"
179113
]
180114

181115
@PointClass
@@ -188,14 +122,12 @@
188122
box_max = "box_maxs"
189123
auto_center = false
190124
is_light_probe_volume = true
191-
// will not do anything until this property is added
192125
edge_fades = "edge_fade_dists"
126+
toggle_faces_with_selection_overlay = true
193127
}
194128
bakeresource( lightprobetexture, vtex, env_light_probe_volume, "ToolObjects/LightProbeVolume" )
195129
bakeresource( cubemaptexture, vtex, env_cubemap, "ToolObjects/CubeMap" )
196130
= env_combined_light_probe_volume : "Combination of an env_cubemap_box and an env_light_probe_volume"
197131
[
198-
// Subclasses in mods which want to support this feature can add this property.
199-
// The name cannot be changed, as it is used by the box_oriented helper.
200-
//edge_fade_dists(vector) : "Edge Fade Dist" : "0 0 0"
132+
edge_fade_dists(vector) [ group = "Cubemap" ] : "Edge Fade Dist" : "0 0 0"
201133
]

0 commit comments

Comments
 (0)