Commit Graph

5799 Commits (cd131e7f867fbc0c9a8d28259960dab40a23f248)

Author SHA1 Message Date
Fil Krynicki cd131e7f86 1196/1217 fix
Fixes an issue where inputs could be processed by both GUI and
gameplay systems. An enabled/disable has been added to OIS
channels, and OpenMW now disables player gameplay hotkeys when
a GUI element has focus. GUI hotkeys are left enabled.
11 years ago
Fil Krynicki 6cc6172779 Update in response to comments.
It turns out I was erroneous about problem (1) in my original commit
message. I thought that in an edge case the OpenMWGUI could both handle
the same event on the frame the GUI was closed. My test for
this was broken. So after brainstorming many possible unsatisfactory
solutions to this event handling, it's luckily not necessary!
11 years ago
Fil Krynicki 91f4967614 Fix for bug 1196.
This bug would cause the player to jump when jump was assigned to
Space and they closed a dialog with Space. I tested vanilla
MW for behaviour and found that Jump was the only basic input which
MW does not allow when closing dialogs (i.e. if Space is assigned to
move forward, MW will move you forward after closing the dialog).

There were two reasons for the bug:
1) OpenMW GUI does not consume UI events
2) Jump occurs so long as key is down (not only on first key down)

To minimally fix the bug, I made it so that keypress events can be
consumed by the GUI and not passed along to the player control
input manager (1). However, if the player holds space, they will still
jump (as the subsequent key held events will be captured and cause
a jump).

Unfortunately, there is no idiomatic way that I could find in the
OpenMW input manager to perform events only on key down. Instead,
I introduced a variable which tracks whether the jump key has been
pressed for the first time within the current frame (2).

Note: I was initially concerned that limiting the jump event to
KeyDown and not Key Hold would cause issues with swimming,
levitating, or variable height jumping. However, after a bunch
of testing in vanilla MW and exploration of the OpenMW codebase
I could find nothing suggesting the need to capture the jump
key being held.
11 years ago
Marc Zinnschlag 30d5040f2f Merge remote-tracking branch 'cc9cii/Bug-No-1260' 11 years ago
cc9cii 1fc030653f Avoid hard coding "thief.dds" string. 11 years ago
Marc Zinnschlag 86e65944b8 Merge remote-tracking branch 'jeffreyhaines/master'
Conflicts:
	apps/openmw/CMakeLists.txt
11 years ago
Jeffrey Haines e2fab228f9 Save state is handled correctly now. 11 years ago
cc9cii 89be1069a7 Bug #1260: show thief.dds image for a custom class level up menu 11 years ago
cc9cii 966ed46870 Better performance but less tolerant of collision induced glitches. Also had to use const_cast to cache on ground status. 11 years ago
cc9cii 3e6e325e5b Instead of hacking character.cpp, provide a more reliable check for world->isOnGround(mPtr). 11 years ago
cc9cii e9be6d3f42 Fix falling animation where vec.z is set to zero. 11 years ago
cc9cii 0bef754873 Fix jumping animation glitches caused by minor vertical movements. Should resolve Bug #1271. 11 years ago
cc9cii d2a41167d0 Allow flying and swimming creatures to step inclines. Should have listen to Chris in the first place, see https://forum.openmw.org/viewtopic.php?f=6&t=2075 11 years ago
Emanuel Guevel 09bd0324c9 Fail properly when a content file is not found 11 years ago
Marc Zinnschlag 03b3487f1b minor cleanup 11 years ago
Marc Zinnschlag fafb7501e3 Merge remote-tracking branch 'cc9cii/PathFinder-split' 11 years ago
Emanuel Guevel ce7aa96371 Fix visual glitch happening when closing inventory while sneaking
(bug #1255)
11 years ago
Marc Zinnschlag c7f2cfeca0 Merge remote-tracking branch 'gus/AIFix2' 11 years ago
Jeffrey Haines a274b48f2f States are saved. Crime is reacted to.
Issues where some crime is ignored. Needs a lot more work
11 years ago
Jeffrey Haines 940c88d2ec Cleaned up code, implemented crime ids
There is a problem with my game freezing. ToggleAi stops my character
11 years ago
Jeffrey Haines df5cbe5dec Minor changes 11 years ago
cc9cii 28f7c42fb7 One more comment fix. 11 years ago
cc9cii f59226265a Remove redundant parameter from aStarSearch. Also update some comments. 11 years ago
Jeffrey Haines 70919ba60a Removed witnesses and minor changes 11 years ago
cc9cii 5cf8e7e933 Remove logging. 11 years ago
cc9cii 040d4f8fc4 Move PathgridGraph into separate files. 11 years ago
Jeffrey Haines 0c957a3cde Added witnesses to the mix 11 years ago
cc9cii a8b2eb1fe9 Make Travis happy. 11 years ago
cc9cii 325d0616bb Cleanup debug statements. 11 years ago
cc9cii 98f77714ce Per-cell pathgrid data and calculation moved off PathFinder. Now the edge cost calculations and strongly connected component searches are done only once per cell. Per-actor data and methods still remain with PathFinder.
This version still has debugging statements and needs cleaning up.
11 years ago
Jeffrey Haines b1abef7a38 Cleaned up code 11 years ago
Jeffrey Haines 58b135a2be Crime is now checked every frame call 11 years ago
cc9cii f597d3e88b Use duration rather than frame counts. Stops false detection of being "stuck" with high frame rates (e.g. indoors). 11 years ago
Jeffrey Haines 510f2d10ac Replaces broken code with todo 11 years ago
Jeffrey Haines 6f1211dd8d Moved mWitnesses into Player. resetCrime for paying fine. 11 years ago
Jeffrey Haines 7c0b51fb7e Ai pursue now controls guards pursuit of crimes
Should extend AiActivate in the future
11 years ago
Jeffrey Haines 50dac98a2b Feature 1154 & 73: Crime and NPC reactions 11 years ago
Jeffrey Haines 4037f3705e Feature 1154 & 73: NPCs react to crime 11 years ago
Marc Zinnschlag 12e46c5dc7 Merge remote-tracking branch 'megaton/master' 11 years ago
Marc Zinnschlag 4ee1069baa Merge remote-tracking branch 'scrawl/master' 11 years ago
scrawl f5810b8e1c Consider aspect ratio for loading screen background
More consistent with the main menu.
11 years ago
scrawl 1265131203 Set the selected index after all items are added (workaround for MyGUI bug) 11 years ago
megaton 50af9bc0d3 General perfomance optimizations. 11 years ago
cc9cii d04bb3befb MSVC uses C version of locale. 11 years ago
Jeffrey Haines 8ce938c6f1 Revert 6b28c06..98fd381
This rolls back to commit 6b28c06b2c.
11 years ago
Jeffrey Haines 98fd381564 Feature #1154 Not all NPCs get aggressive when one is attacked
Compiling fix
11 years ago
Jeffrey Haines 6c866deb1b Feature #1154 Not all NPCs get aggressive when one is attacked
Partially implemented
11 years ago
scrawl 5eeed03f5b Only exchange bribe gold if the bribe was accepted 11 years ago
scrawl 72df9e77c6 Don't show version text in the pause menu 11 years ago
gus d9ea7107b7 compile fix. 11 years ago