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

@ -460,6 +460,7 @@ PlayerData::PlayerData()
jumpTowardsNormal = true;
physicsPlayerType = StringTable->EmptyString();
mControlMap = StringTable->EmptyString();
dMemset( actionList, 0, sizeof(actionList) );
}
@ -739,7 +740,9 @@ void PlayerData::initPersistFields()
endGroup( "Camera" );
addGroup( "Movement" );
addField("controlMap", TypeString, Offset(mControlMap, PlayerData),
"@brief movemap used by these types of objects.\n\n");
addFieldV( "maxStepHeight", TypeRangedF32, Offset(maxStepHeight, PlayerData), &CommonValidators::PositiveFloat,
"@brief Maximum height the player can step up.\n\n"
"The player will automatically step onto changes in ground height less "