1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-15 01:24:35 +02:00
This commit is contained in:
XProger
2017-07-02 23:49:27 +03:00
parent ec35c44a77
commit e8c22b950f
2 changed files with 30 additions and 27 deletions

View File

@@ -1764,7 +1764,10 @@ struct Lara : Character {
float ext = angle.y; float ext = angle.y;
if (input & FORTH) { if (input & FORTH) {
res = STATE_WALK; if (state == STATE_BACK)
res = STATE_STOP;
else
res = STATE_WALK;
} else if (input & BACK) { } else if (input & BACK) {
res = STATE_BACK; res = STATE_BACK;
ext += PI; ext += PI;

View File

@@ -194,32 +194,32 @@ namespace UI {
mesh->addBar(buffer.indices, buffer.vertices, buffer.iCount, buffer.vCount, type, pos, vec2(size.x * value, size.y), 0xFFFFFFFF); mesh->addBar(buffer.indices, buffer.vertices, buffer.iCount, buffer.vCount, type, pos, vec2(size.x * value, size.y), 0xFFFFFFFF);
} }
const char *helpText = \ const char *helpText =
"Controls gamepad, touch and keyboard:@"\ "Controls gamepad, touch and keyboard:@"
" H - Show or hide this help@"\ " H - Show or hide this help@"
" TAB - Inventory@"\ " TAB - Inventory@"
" LEFT - Left@"\ " LEFT - Left@"
" RIGHT - Right@"\ " RIGHT - Right@"
" UP - Run@"\ " UP - Run@"
" DOWN - Back@"\ " DOWN - Back@"
" SHIFT - Walk@"\ " SHIFT - Walk@"
" SPACE - Draw Weapon@"\ " SPACE - Draw Weapon@"
" CTRL - Action@"\ " CTRL - Action@"
" ALT - Jump@"\ " ALT - Jump@"
" Z - Step Left@"\ " Z - Step Left@"
" X - Step Right@"\ " X - Step Right@"
" A - Roll@"\ " A - Roll@"
" C - Look # not implemented #@"\ " C - Look # not implemented #@"
" V - First Person View@" " V - First Person View@"
" R - slow motion@"\ " R - slow motion@"
" T - fast motion@"\ " T - fast motion@"
" ALT + ENTER - Fullscreen@@"\ " ALT + ENTER - Fullscreen@@"
"Actions:@"\ "Actions:@"
" Out of water - Run + Action@"\ " Out of water - Run + Action@"
" Handstand - Run + Walk@"\ " Handstand - Run + Walk@"
" Swan dive - Run + Walk + jump@"\ " Swan dive - Run + Walk + jump@"
" DOZY on - Look + Step Right + Action + Jump@"\ " DOZY on - Look + Step Right + Action + Jump@"
" DOZY off - Walk@"; " DOZY off - Walk@";
void renderHelp() { void renderHelp() {
if (showHelp) if (showHelp)