-
Notifications
You must be signed in to change notification settings - Fork 179
fix(view): Change setup of default camera pitch and angle #2546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
2d92918
faf0276
400d58f
054c004
af343b8
410e7a0
2d1e47c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,6 +262,8 @@ static const LookupListRec GameMessageMetaTypeNames[] = | |
| { "DEMO_PLAY_OBJECTIVE_MOVIE6", GameMessage::MSG_META_DEMO_PLAY_OBJECTIVE_MOVIE6 }, | ||
| { "DEMO_BEGIN_ADJUST_PITCH", GameMessage::MSG_META_DEMO_BEGIN_ADJUST_PITCH }, | ||
| { "DEMO_END_ADJUST_PITCH", GameMessage::MSG_META_DEMO_END_ADJUST_PITCH }, | ||
| { "DEMO_BEGIN_ADJUST_DEFAULTPITCH", GameMessage::MSG_META_DEMO_BEGIN_ADJUST_DEFAULTPITCH }, | ||
| { "DEMO_END_ADJUST_DEFAULTPITCH", GameMessage::MSG_META_DEMO_END_ADJUST_DEFAULTPITCH }, | ||
| { "DEMO_BEGIN_ADJUST_FOV", GameMessage::MSG_META_DEMO_BEGIN_ADJUST_FOV }, | ||
| { "DEMO_END_ADJUST_FOV", GameMessage::MSG_META_DEMO_END_ADJUST_FOV }, | ||
| { "DEMO_LOCK_CAMERA_TO_PLANES", GameMessage::MSG_META_DEMO_LOCK_CAMERA_TO_PLANES }, | ||
|
|
@@ -895,6 +897,28 @@ MetaMapRec *MetaMap::getMetaMapRec(GameMessage::Type t) | |
| map->m_usableIn = COMMANDUSABLE_GAME; | ||
| } | ||
| } | ||
| { | ||
| // Is useful for Generals and Zero Hour. | ||
| MetaMapRec *map = TheMetaMap->getMetaMapRec(GameMessage::MSG_META_DEMO_BEGIN_ADJUST_DEFAULTPITCH); | ||
| if (map->m_key == MK_NONE) | ||
| { | ||
| map->m_key = MK_COMMA; | ||
| map->m_transition = DOWN; | ||
| map->m_modState = CTRL; | ||
| map->m_usableIn = COMMANDUSABLE_GAME; | ||
| } | ||
| } | ||
| { | ||
| // Is useful for Generals and Zero Hour. | ||
| MetaMapRec *map = TheMetaMap->getMetaMapRec(GameMessage::MSG_META_DEMO_END_ADJUST_DEFAULTPITCH); | ||
| if (map->m_key == MK_NONE) | ||
| { | ||
| map->m_key = MK_COMMA; | ||
| map->m_transition = UP; | ||
| map->m_modState = CTRL; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not work reliably. When releasing CTRL before Comma, then this action will not trigger. Maybe can be fixed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is common for all multi input controls at the moment.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked and there is no UP + Modifier mapping that is not MK_NONE. So it is not a practical issue in the original game, but will be with such new key mappings. I do not have an elegant idea how to address it.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have implemented a fix proposal with #2577 |
||
| map->m_usableIn = COMMANDUSABLE_GAME; | ||
| } | ||
| } | ||
| #endif // defined(RTS_DEBUG) | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.