Custom func_godot entities

This commit is contained in:
Marco 2025-06-12 11:50:22 +02:00
commit 929d993f99
360 changed files with 4983 additions and 3944 deletions

View file

@ -0,0 +1,23 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=3 format=3 uid="uid://5bc1qysixhmh"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_4prc0"]
[ext_resource type="Resource" uid="uid://x4g06004i574" path="res://3D/TrenchBroom/EntityDefinitions/base/globalname_base.tres" id="1_4xlxh"]
[resource]
script = ExtResource("1_4prc0")
classname = "Actor"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_4xlxh")])
class_properties = {
"flags": [["Player", 1, 0], ["BIG friend", 2, 0], ["Attentive friend", 4, 0], ["Happy friend", 8, 0]],
"scale": 1.0
}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0, 0, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""

View file

@ -0,0 +1,24 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=3 format=3 uid="uid://bfjnt8q3l2p65"]
[ext_resource type="Resource" uid="uid://x4g06004i574" path="res://3D/TrenchBroom/EntityDefinitions/base/globalname_base.tres" id="1_ftv6l"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_grnar"]
[resource]
script = ExtResource("1_grnar")
classname = "Func"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_ftv6l")])
class_properties = {
"_phong": false
}
class_property_descriptions = {
"_phong": "Set to 1 to give the brush entity smooth shading."
}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0.8, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""

View file

@ -0,0 +1,24 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=2 format=3 uid="uid://x4g06004i574"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_wlfmo"]
[resource]
script = ExtResource("1_wlfmo")
classname = "Globalname"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([])
class_properties = {
"globalname": ""
}
class_property_descriptions = {
"globalname": "Unique name in the Map Scene. When FuncGodot builds the map, this entity will be renamed to entity_ + globalname. This can be a useful alternative to targetname, especially when trying to reparent generated nodes."
}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0.8, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://6o4wbl0iau0v"

View file

@ -0,0 +1,33 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=3 format=3 uid="uid://bpiblsew5s5so"]
[ext_resource type="Resource" uid="uid://x4g06004i574" path="res://3D/TrenchBroom/EntityDefinitions/base/globalname_base.tres" id="1_1p2gj"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="2_7j6bh"]
[resource]
script = ExtResource("2_7j6bh")
classname = "Light"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_1p2gj")])
class_properties = {
"color": Color(1, 1, 1, 1),
"energy": 1.0,
"indirect_energy": 1.0,
"shadow_bias": 0.1,
"shadows": false
}
class_property_descriptions = {
"color": "The light's color.",
"energy": "The light's strength multiplier. For OmniLight3D and SpotLight3D, changing this value will only change the light color's intensity, not the light's radius.",
"indirect_energy": "The light's strength multiplier. For OmniLight3D and SpotLight3D, changing this value will only change the light color's intensity, not the light's radius.",
"shadow_bias": "Used to adjust shadow appearance. Too small a value results in self-shadowing, while too large a value causes shadows to separate from casters. Adjust as needed.",
"shadows": "If true, the light will cast real-time shadows. This has a significant performance cost. Only enable shadow rendering when it makes a noticeable difference in the scene's appearance"
}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://6o4wbl0iau0v"

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=2 format=3 uid="uid://kerywjgft7vh"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_uy4g8"]
[resource]
script = ExtResource("1_uy4g8")
classname = "Target"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([])
class_properties = {
"target": NodePath(""),
"targetfunc": ""
}
class_property_descriptions = {
"target": "Entity group to call the use function on when this entity is triggered.",
"targetfunc": "Function to call on target entities. As is, the target function cannot accept arguments, so make sure it doesn't require specifying arguments."
}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0.8, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""

View file

@ -0,0 +1,23 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=2 format=3 uid="uid://c1utxplehq2jl"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_7j8c1"]
[resource]
script = ExtResource("1_7j8c1")
classname = "Targetname"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([])
class_properties = {
"targetname": null
}
class_property_descriptions = {
"targetname": "Adds this entity to a group with this targetname."
}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0.8, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""

View file

@ -0,0 +1,22 @@
[gd_resource type="Resource" script_class="FuncGodotFGDBaseClass" load_steps=5 format=3 uid="uid://ermxog0n4mvn"]
[ext_resource type="Script" uid="uid://6o4wbl0iau0v" path="res://addons/func_godot/src/fgd/func_godot_fgd_base_class.gd" id="1_0kba8"]
[ext_resource type="Resource" uid="uid://kerywjgft7vh" path="res://3D/TrenchBroom/EntityDefinitions/base/target_base.tres" id="1_73jh0"]
[ext_resource type="Resource" uid="uid://c1utxplehq2jl" path="res://3D/TrenchBroom/EntityDefinitions/base/targetname_base.tres" id="2_f4xyy"]
[ext_resource type="Resource" uid="uid://x4g06004i574" path="res://3D/TrenchBroom/EntityDefinitions/base/globalname_base.tres" id="3_mslp0"]
[resource]
script = ExtResource("1_0kba8")
classname = "Trigger"
description = ""
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_73jh0"), ExtResource("2_f4xyy"), ExtResource("3_mslp0")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = {
"color": Color(0.8, 0.8, 0.8, 1),
"size": AABB(-8, -8, -8, 8, 8, 8)
}
node_class = ""
name_property = ""