Skip to content

Commit

Permalink
added a bunch of xl building block variants, refined minelayer
Browse files Browse the repository at this point in the history
  • Loading branch information
xianson committed Sep 3, 2024
1 parent 88679da commit 3401860
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 10 deletions.
24 changes: 24 additions & 0 deletions ModernWarfareCore/Data/CubeBlocks/ApartmentCorner-XL.sbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" ?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CubeBlocks>
<Definition>
<Id>
<TypeId>CubeBlock</TypeId>
<SubtypeId>ApartmentCorner-XL</SubtypeId>
</Id>
<DisplayName>{LOC:DisplayName_ApartmentCorner-XL}</DisplayName>
<Description>{LOC:Description_ApartmentCorner-XL}</Description>
<Icon>Textures\GUI\Icons\AstronautBackpack.dds</Icon>
<CubeSize>Large</CubeSize>
<BlockTopology>TriangleMesh</BlockTopology>
<Size x="5" y="5" z="5"/>
<ModelOffset x="0" y="0" z="0"/>
<Model>Models\Cubes\large\ApartmentCorner-XL.mwm</Model>
<Components>
<Component Subtype="SteelPlate" Count="10"/>
</Components>
<CriticalComponent Subtype="SteelPlate" Index="0"/>
<BlockPairName>ApartmentCorner-XL</BlockPairName>
</Definition>
</CubeBlocks>
</Definitions>
24 changes: 24 additions & 0 deletions ModernWarfareCore/Data/CubeBlocks/ApartmentSide-XL.sbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" ?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CubeBlocks>
<Definition>
<Id>
<TypeId>CubeBlock</TypeId>
<SubtypeId>ApartmentSide-XL</SubtypeId>
</Id>
<DisplayName>{LOC:DisplayName_ApartmentSide-XL}</DisplayName>
<Description>{LOC:Description_ApartmentSide-XL}</Description>
<Icon>Textures\GUI\Icons\AstronautBackpack.dds</Icon>
<CubeSize>Large</CubeSize>
<BlockTopology>TriangleMesh</BlockTopology>
<Size x="5" y="5" z="5"/>
<ModelOffset x="0" y="0" z="0"/>
<Model>Models\Cubes\large\ApartmentSide-XL.mwm</Model>
<Components>
<Component Subtype="SteelPlate" Count="10"/>
</Components>
<CriticalComponent Subtype="SteelPlate" Index="0"/>
<BlockPairName>ApartmentSide-XL</BlockPairName>
</Definition>
</CubeBlocks>
</Definitions>
24 changes: 24 additions & 0 deletions ModernWarfareCore/Data/CubeBlocks/ApartmentSideCramped-XL.sbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" ?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CubeBlocks>
<Definition>
<Id>
<TypeId>CubeBlock</TypeId>
<SubtypeId>ApartmentSideCramped-XL</SubtypeId>
</Id>
<DisplayName>{LOC:DisplayName_ApartmentSideCramped-XL}</DisplayName>
<Description>{LOC:Description_ApartmentSideCramped-XL}</Description>
<Icon>Textures\GUI\Icons\AstronautBackpack.dds</Icon>
<CubeSize>Large</CubeSize>
<BlockTopology>TriangleMesh</BlockTopology>
<Size x="5" y="5" z="5"/>
<ModelOffset x="0" y="0" z="0"/>
<Model>Models\Cubes\large\ApartmentSideCramped-XL.mwm</Model>
<Components>
<Component Subtype="SteelPlate" Count="10"/>
</Components>
<CriticalComponent Subtype="SteelPlate" Index="0"/>
<BlockPairName>ApartmentSideCramped-XL</BlockPairName>
</Definition>
</CubeBlocks>
</Definitions>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ModernWarfareCore/Models/Cubes/Large/BuildingCorner-XL.mwm
Binary file not shown.
Binary file modified ModernWarfareCore/Models/Cubes/Large/BuildingSide-XL.mwm
Binary file not shown.
16 changes: 6 additions & 10 deletions ModernWarfareGuns/Data/Main Weapons/Caltrops.sbc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TypeId>SmallMissileLauncher</TypeId>
<SubtypeId>CaltropsGunBlock</SubtypeId>
</Id>
<DisplayName>Caltrops Minelayer (experimental)</DisplayName>
<DisplayName>Caltrops Minelayer</DisplayName>
<Icon>Textures\Icons\Turrets\HwachaIcon.png</Icon>
<Description>Rocket barrage artillery</Description>
<CubeSize>Small</CubeSize>
Expand Down Expand Up @@ -95,24 +95,20 @@
<IsExplosive>true</IsExplosive>
<BackkickForce>1</BackkickForce>
<PhysicalMaterial></PhysicalMaterial>
<ExplosiveDamageMultiplier>0</ExplosiveDamageMultiplier>
<ExplosiveDamageMultiplier>1</ExplosiveDamageMultiplier>
<EndOfLifeEffect>Smoke_Construction</EndOfLifeEffect>
</BasicProperties>
<MissileProperties>
<MissileMass>0</MissileMass>
<MissileExplosionRadius>0</MissileExplosionRadius>
<MissileMass>1</MissileMass>
<MissileExplosionRadius>0.1</MissileExplosionRadius>
<MissileModelName>Models\Ammo\SmallBomb.mwm</MissileModelName>
<MissileAcceleration>0</MissileAcceleration>
<MissileInitialSpeed>50</MissileInitialSpeed>
<MissileSkipAcceleration>false</MissileSkipAcceleration>
<MissileExplosionDamage>0</MissileExplosionDamage>
<MissileHealthPool>0</MissileHealthPool>
<MissileHealthPool>1</MissileHealthPool>
<MissileTrailEffect></MissileTrailEffect>
<MissileGravityEnabled>true</MissileGravityEnabled>
<MissileRicochetAngle>0</MissileRicochetAngle>
<MissileRicochetDamage>0</MissileRicochetDamage>
<MissileRicochetProbability>0</MissileRicochetProbability>
<ExplosionFlags>FORCE_CUSTOM_END_OF_LIFE_EFFECT</ExplosionFlags>
<ExplosionFlags>APPLY_FORCE_AND_DAMAGE CREATE_DECALS CREATE_SHRAPNELS FORCE_CUSTOM_END_OF_LIFE_EFFECT</ExplosionFlags>
</MissileProperties>
</Ammo>
</Ammos>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ protected override void UnloadData()

private void OnMissileCollided(IMyMissile missile)
{

if(IsMine(missile) && missile.CollisionPoint != null && missile.CollidedEntity is IMyVoxelBase)
{
MatrixD matrix = MatrixD.CreateFromDir(-missile.CollisionNormal);
Expand Down

0 comments on commit 3401860

Please sign in to comment.