Added entityDef misc_model helper for TB

This commit is contained in:
Robert Beckebans 2022-01-09 11:41:01 +01:00
parent ef47fc9092
commit 55abfc26aa
4 changed files with 30 additions and 10 deletions

View 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"
}

View 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"
}

View file

@ -1,10 +1 @@
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"
}
// moved to _rbdoom_env_probe.def

View file

@ -2904,6 +2904,13 @@ bool idMapFile::ConvertToValve220Format()
{
// 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
if( ent->epairs.FindKey( "rotation" ) )
{