adds fallbacks to the aiTurret's scannode to operate similar to the aimNode, letting folks skip out on adding either and just using pitch (or failing that, heading)

This commit is contained in:
Azaezel 2017-09-29 15:54:55 -05:00
parent 6db2f2f5bf
commit 41e7e32cf5

View file

@ -249,14 +249,11 @@ bool AITurretShapeData::preload(bool server, String &errorStr)
// We have mShape at this point. Resolve nodes.
scanNode = mShape->findNode("scanPoint");
aimNode = mShape->findNode("aimPoint");
if (aimNode == -1)
{
aimNode = pitchNode;
}
if (aimNode == -1)
{
aimNode = headingNode;
}
if (scanNode == -1) scanNode = pitchNode;
if (scanNode == -1) scanNode = headingNode;
if (aimNode == -1) aimNode = pitchNode;
if (aimNode == -1) aimNode = headingNode;
// Resolve state sequence names & emitter nodes
isAnimated = false;