mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
@ work on (G)ZDoom Editing plugin
This commit is contained in:
parent
aaa526bf5a
commit
726c949b4a
4 changed files with 24 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{B42D5AA0-F9A6-4234-9C4B-A05B11A64851}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
|
@ -235,7 +235,6 @@
|
|||
<EmbeddedResource Include="Resources\HeightsMode.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ClassicModes\TriangulatorMode.cs" />
|
||||
<Compile Include="ErrorChecks\CheckMissingTextures.cs" />
|
||||
<Compile Include="ErrorChecks\CheckUnknownFlats.cs" />
|
||||
<Compile Include="ErrorChecks\CheckUnknownTextures.cs" />
|
||||
|
|
|
@ -77,7 +77,7 @@ thingsmode
|
|||
allowscroll = true;
|
||||
}
|
||||
|
||||
///*
|
||||
/*
|
||||
triangulatormode
|
||||
{
|
||||
title = "Triangulator Mode";
|
||||
|
@ -87,7 +87,7 @@ triangulatormode
|
|||
allowmouse = true;
|
||||
allowscroll = true;
|
||||
}
|
||||
//*/
|
||||
*/
|
||||
|
||||
drawlinesmode
|
||||
{
|
||||
|
|
|
@ -541,7 +541,7 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
foreach(Thing t in General.Map.Map.Things)
|
||||
{
|
||||
// ========== Copy slope ==========
|
||||
if((t.Type == 9510) || (t.Type == 9500))
|
||||
if((t.Type == 9510) || (t.Type == 9511))
|
||||
{
|
||||
t.DetermineSector(blockmap);
|
||||
if(t.Sector != null)
|
||||
|
@ -550,6 +550,16 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
sd.AddEffectCopySlope(t);
|
||||
}
|
||||
}
|
||||
// ========== Thing line slope ==========
|
||||
else if((t.Type == 9500) || (t.Type == 9501))
|
||||
{
|
||||
t.DetermineSector(blockmap);
|
||||
if(t.Sector != null)
|
||||
{
|
||||
SectorData sd = GetSectorData(t.Sector);
|
||||
sd.AddEffectThingLineSlope(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -178,10 +178,13 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
if(Thing.Sector != null)
|
||||
{
|
||||
SectorData sd = mode.GetSectorData(Thing.Sector);
|
||||
pos.z = sd.Ceiling.plane.GetZ(Thing.Position) - info.Height;
|
||||
if(Thing.Position.z > 0)
|
||||
pos.z = sd.Ceiling.plane.GetZ(Thing.Position) - info.Height;
|
||||
else
|
||||
pos.z = Thing.Sector.CeilHeight;
|
||||
}
|
||||
|
||||
if(Thing.Position.z > 0) pos.z -= Thing.Position.z;
|
||||
pos.z -= Thing.Position.z;
|
||||
|
||||
// Check if below floor
|
||||
if((Thing.Sector != null) && (pos.z < Thing.Sector.FloorHeight))
|
||||
|
@ -197,10 +200,13 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
if(Thing.Sector != null)
|
||||
{
|
||||
SectorData sd = mode.GetSectorData(Thing.Sector);
|
||||
pos.z = sd.Floor.plane.GetZ(Thing.Position);
|
||||
if(Thing.Position.z == 0)
|
||||
pos.z = sd.Floor.plane.GetZ(Thing.Position);
|
||||
else
|
||||
pos.z = Thing.Sector.FloorHeight;
|
||||
}
|
||||
|
||||
if(Thing.Position.z > 0) pos.z += Thing.Position.z;
|
||||
pos.z += Thing.Position.z;
|
||||
|
||||
// Check if above ceiling
|
||||
if((Thing.Sector != null) && ((pos.z + info.Height) > Thing.Sector.CeilHeight))
|
||||
|
|
Loading…
Reference in a new issue