Merge pull request #1443 from Azaezel/alpha41/controlModel

add a controlmap entry
This commit is contained in:
Brian Roberts 2025-04-28 10:50:02 -05:00 committed by GitHub
commit 2ac15f74f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 32 additions and 3 deletions

View file

@ -127,6 +127,7 @@ TurretShapeData::TurretShapeData()
recoilSequence[i] = -1;
pitchSequence = -1;
headingSequence = -1;
mControlMap = StringTable->EmptyString();
}
void TurretShapeData::initPersistFields()
@ -134,6 +135,8 @@ void TurretShapeData::initPersistFields()
docsURL;
Parent::initPersistFields();
addGroup("Steering");
addField("controlMap", TypeString, Offset(mControlMap, TurretShapeData),
"@brief movemap used by these types of objects.\n\n");
addField("zRotOnly", TypeBool, Offset(zRotOnly, TurretShapeData),
"@brief Should the turret allow only z rotations.\n\n"
"True indicates that the turret may only be rotated on its z axis, just like the Item class. "