mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-06-03 10:11:35 +00:00
Added entityDef misc_model helper for TB
This commit is contained in:
parent
ef47fc9092
commit
55abfc26aa
4 changed files with 30 additions and 10 deletions
10
base/def/_rbdoom_env_probe.def
Normal file
10
base/def/_rbdoom_env_probe.def
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
entityDef env_probe
|
||||||
|
{
|
||||||
|
"editor_color" "0 0 1"
|
||||||
|
"editor_mins" "-8 -8 -8"
|
||||||
|
"editor_maxs" " 8 8 8"
|
||||||
|
|
||||||
|
"editor_usage" "Environment probe for Image Based Lighting"
|
||||||
|
|
||||||
|
"spawnclass" "EnvironmentProbe"
|
||||||
|
}
|
12
base/def/_rbdoom_misc_model.def
Normal file
12
base/def/_rbdoom_misc_model.def
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
entityDef misc_model
|
||||||
|
{
|
||||||
|
"inherit" "func_static"
|
||||||
|
"editor_color" "0 .5 .8"
|
||||||
|
"editor_mins" "-12 -12 -12"
|
||||||
|
"editor_maxs" "12 12 12"
|
||||||
|
"editor_rotatable" "1"
|
||||||
|
|
||||||
|
"editor_usage" "Inherits from a func_static but is fixed size and a FGD PointClass."
|
||||||
|
"editor_usage1" "Use it to place all kinds of models"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
|
@ -1,10 +1 @@
|
||||||
entityDef env_probe
|
// moved to _rbdoom_env_probe.def
|
||||||
{
|
|
||||||
"editor_color" "0 0 1"
|
|
||||||
"editor_mins" "-8 -8 -8"
|
|
||||||
"editor_maxs" " 8 8 8"
|
|
||||||
|
|
||||||
"editor_usage" "Environment probe for Image Based Lighting"
|
|
||||||
|
|
||||||
"spawnclass" "EnvironmentProbe"
|
|
||||||
}
|
|
|
@ -2904,6 +2904,13 @@ bool idMapFile::ConvertToValve220Format()
|
||||||
{
|
{
|
||||||
// just a regular entity
|
// just a regular entity
|
||||||
|
|
||||||
|
if( idStr::Icmp( classname, "func_static" ) == 0 && idStr::Icmp( model.c_str(), classname.c_str() ) != 0 )
|
||||||
|
{
|
||||||
|
// TrenchBroom doesn't allow models for SolidClasses
|
||||||
|
// use Quake 3 style misc_model helper class instead
|
||||||
|
ent->epairs.Set( "classname", "misc_model" );
|
||||||
|
}
|
||||||
|
|
||||||
// replace "rotation" with angles because it is not supported by TrenchBroom
|
// replace "rotation" with angles because it is not supported by TrenchBroom
|
||||||
if( ent->epairs.FindKey( "rotation" ) )
|
if( ent->epairs.FindKey( "rotation" ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue