Commit Graph

325 Commits (move)

Author SHA1 Message Date
scrawl 6df71f6250 Factor out safePlaceObject function 9 years ago
scrawl 11f00e3aa9 Rename safePlaceObject to placeObject 9 years ago
scrawl c3ef387208 Vanilla-compatible creature/NPC respawning (Fixes #2369, Fixes #2467) 9 years ago
scrawl 383524c688 Run physics in fixed timesteps, use the remainder to interpolate between current and previous state
Based on http://gafferongames.com/game-physics/fix-your-timestep/
9 years ago
scrawl 1cda2bf796 Preload sky & water from the main menu 9 years ago
scrawl 300379617e Accept a const CellStore in findInteriorPositionInWorldSpace 9 years ago
scrawl 41ebf62fb1 Accept a const CellStore in getNorthVector 9 years ago
scrawl 41c571d4f4 Merge branch 'master' of https://github.com/OpenMW/openmw into lighting
Conflicts:
	apps/opencs/view/render/instancemode.cpp
9 years ago
scrawl 4e6a60672d When a spell explodes on an actor do not apply it to that actor twice (Fixes #3142) 9 years ago
scrawl 6546c05428 Move Fallback map to components/ 9 years ago
scrawl 4f8f166f69 Fix GetPcInJail to work as in the original engine 9 years ago
scrawl f052c05018 Move werewolf functions from World to MechanicsManager 9 years ago
scrawl e5d9ee30f4 Add count argument to copyObjectToCell
Fixes the gold bug introduced in c9ca5bc946
9 years ago
scrawl 29d0f448b4 Add const version of World::getAnimation 9 years ago
scrawl a0fb31e3b1 Accept a ConstPtr in getLOS 9 years ago
scrawl 029d467ea5 Accept a ConstPtr in getItemsOwnedBy, getContainersOwnedBy 9 years ago
scrawl 388aed1748 Accept a ConstPtr in findContainer, collision script functions, getUnderwater functions 9 years ago
scrawl c9ca5bc946 Accept a ConstPtr in placeObject 9 years ago
scrawl 6c505ca06f Accept a ConstPtr in getHitContact 9 years ago
scrawl 0796f49c17 Accept a ConstPtr in various physics getters 9 years ago
scrawl 553132cb51 Accept a ConstPtr in launchProjectile 9 years ago
scrawl 19d87c78f2 Add CellStore::forEachConst 9 years ago
scrawl 271fcb80c6 Remove container scripts before deleting container 9 years ago
Chris Robinson 808f701013 Use the actor's Head position for Say streams 9 years ago
scrawl 71cd57a3b5 Optimize World::getTimeStamp
World::getTimeStamp was searching through the globals store on every call. Not a big issue, but slow enough to show up in the profiler.
9 years ago
scrawl 3453353091 AiCombat distance check takes into account collision box (Fixes #1699) 9 years ago
scrawl 3647af8d73 Rotations: use different rotation order when object is rotated via script (Fixes #2062) 9 years ago
scrawl b4ce73f179 Rotations: remove LocalRotation
This never existed in vanilla MW in the first place. The reason we got confused was because of a strange behaviour where the order of applying rotations changes as soon as a script touches the object's rotation.
9 years ago
scrawl 666fbba1e0 Rotations: World::rotateObject takes radians instead of degrees
Cuts down on the amount of redundant degree<->radians conversions in the codebase.
9 years ago
scrawl e13eb625d3 New water WIP
Changes compared to old (Ogre) water:
- Uses depth-texture readback to handle the underwater fog in the water shader, instead of handling it in the object shader
- Different clipping mechanism (glClipPlane instead of a skewed viewing frustum)
- Fixed bug where the reflection camera would look strange when the viewer was very close to the water surface
- Toned down light scattering, made the waterColor a bit darker at night
- Fixed flipped water normals and strange resulting logic in the shader

Still to do: see comments...
9 years ago
scrawl c4b5a41ac3 Improve combat AI vertical aiming (Fixes #1366, Fixes #1330) 9 years ago
slothlife 4fd00a75d5 Merge advanceTime and advanceTimeByFrame 9 years ago
slothlife 54fa5273dc Refactor weather transitions to act more like MW
Fixed several issues:
* Waiting/jail time/training all now properly skip remaining transitions
* ChangeWeather no longer permanently sets the region's weather
* ChangeWeather being called during a transition now correctly queues up
another transition
* Corrected transition delta and factor calculations
* ModRegion settings are now saved
9 years ago
scrawl b583a2ec33 Make SetDelete a no-op for items in containers (Fixes #2864) 10 years ago
Alexander "Ace" Olofsson b3b55a5842 Explicitly instantiate MWWorld::Store 10 years ago
scrawl 882e359008 Move attackStrength to the CharacterController, where it should have been to begin with
Only relevant for actors in active cells, so doesn't belong in CreatureStats. This change should slightly reduce the game's memory usage.
10 years ago
scrawl 4bb3cbf0fb Remove last remains of Ogre 10 years ago
scrawl b70383d127 Remove last remains of Ogre math 10 years ago
scrawl 7bacb9418d Various math code ported to osg 10 years ago
scrawl 2a85a22dba Write savegame screenshot 10 years ago
scrawl de8e5f0db1 Restore projectiles 10 years ago
scrawl a066b24303 Restore WeaponAnimation 10 years ago
scrawl b2fe21dd3b Minor cleanup 10 years ago
scrawl 3dcb167066 Map rendering 10 years ago
scrawl 8b322fcd06 Implement getFacedObject using osgUtil::IntersectionVisitor 10 years ago
scrawl 22f01b1232 Merge branch 'master' of https://github.com/OpenMW/openmw into osg
Conflicts:
	apps/launcher/graphicspage.cpp
	apps/opencs/editor.cpp
	apps/opencs/model/doc/document.cpp
	apps/opencs/view/render/cell.cpp
	apps/opencs/view/render/mousestate.cpp
	apps/opencs/view/render/textoverlay.cpp
	apps/opencs/view/render/worldspacewidget.cpp
	apps/openmw/mwclass/creature.cpp
	apps/openmw/mwclass/npc.cpp
	apps/openmw/mwgui/inventorywindow.cpp
	apps/openmw/mwgui/loadingscreen.cpp
	apps/openmw/mwgui/mapwindow.cpp
	apps/openmw/mwgui/pickpocketitemmodel.cpp
	apps/openmw/mwgui/waitdialog.cpp
	apps/openmw/mwmechanics/combat.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
	apps/openmw/mwrender/globalmap.cpp
	apps/openmw/mwworld/physicssystem.cpp
	apps/openmw/mwworld/refdata.cpp
	apps/openmw/mwworld/scene.cpp
	apps/openmw/mwworld/worldimp.cpp
	components/sdlutil/sdlinputwrapper.cpp
	extern/shiny/Main/Factory.cpp
	extern/shiny/Main/MaterialInstance.cpp
	extern/shiny/Main/Platform.cpp
	extern/shiny/Main/ShaderSet.cpp
10 years ago
scrawl 85345e663a Restore getHitContact 10 years ago
scrawl 9b8e2e9db3 Port MWRender::Camera 10 years ago
scrawl 8bcfac1ea3 Fix adjustPosition not always working correctly (Fixes #2563)
moveObject was returning an incorrect Ptr for cell movements.
10 years ago
scrawl 24bb2e152c Apply texture filter setting changes 10 years ago