* Feature: Implement a TurretObjectType bit for typemasks.

This commit is contained in:
Robert MacGregor 2021-11-10 19:20:03 -05:00
parent e0e3ebc69d
commit 227b1e3f51
3 changed files with 6 additions and 1 deletions

View file

@ -668,6 +668,7 @@ static void RegisterGameFunctions()
// PATHSHAPE // PATHSHAPE
Con::setIntVariable("$TypeMasks::PathShapeObjectType", PathShapeObjectType); Con::setIntVariable("$TypeMasks::PathShapeObjectType", PathShapeObjectType);
// PATHSHAPE END // PATHSHAPE END
Con::setIntVariable("$TypeMasks::TurretObjectType", TurretObjectType);
Con::addVariable("Ease::InOut", TypeS32, &gEaseInOut, Con::addVariable("Ease::InOut", TypeS32, &gEaseInOut,
"InOut ease for curve movement.\n" "InOut ease for curve movement.\n"

View file

@ -167,6 +167,10 @@ enum SceneObjectTypes
PathShapeObjectType = BIT( 28 ), PathShapeObjectType = BIT( 28 ),
// PATHSHAPE END // PATHSHAPE END
/// A turret object.
/// @see TurretShape
TurretObjectType = BIT(29),
/// @} /// @}
}; };

View file

@ -257,7 +257,7 @@ ConsoleDocClass( TurretShape,
TurretShape::TurretShape() TurretShape::TurretShape()
{ {
mTypeMask |= VehicleObjectType | DynamicShapeObjectType; mTypeMask |= VehicleObjectType | DynamicShapeObjectType | TurretObjectType;
mDataBlock = 0; mDataBlock = 0;
allowManualRotation = true; allowManualRotation = true;