1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 07:45:31 +00:00
openmw-tes3mp/apps/openmw/mwmechanics
David Cernat 4b30a44816 [Client] Compare crimeTime and deathTime when NPCs forgive player crimes
Previously, all crime witnesses stopped being hostile to a respawning player for as long as the player's diedSinceArrestAttempt was true. That meant that, in an area with no guards to arrest the player, crime witnesses did not enage in combat with the player at all ever again until diedSinceArrestAttempt became false.

This commit makes it so the time of the last crime is recorded for each witness, and that is then compared with the time of the LocalPlayer's last death for a one-time crime forgiveness during that player's current life.

This is essentially a gameplay adjustment for "singleplayer with respawns," and will have to be reworked to make sense for every player in multiplayer, though that requires reworking the crime system as a whole and is thus on hold.
2018-07-06 14:17:54 +03:00
..
activespells.cpp [Client] Return 0 if effect not found 2018-07-03 03:43:38 +08:00
activespells.hpp [General] Send summon duration to server in ObjectSpawn packets 2018-07-01 00:43:29 +03:00
actor.cpp
actor.hpp convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis 2017-06-09 16:49:25 +02:00
actors.cpp [Client] Compare crimeTime and deathTime when NPCs forgive player crimes 2018-07-06 14:17:54 +03:00
actors.hpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
actorutil.cpp
actorutil.hpp
aiactivate.cpp convert std::autor_ptr to std::unique_ptr, originally by Ewan Higgs and updated by Bret Curtis 2017-06-09 16:49:25 +02:00
aiactivate.hpp Cleanup of #include statements 2016-06-18 10:56:28 +09:00
aiavoiddoor.cpp Cleanup of #include statements 2016-06-18 10:56:28 +09:00
aiavoiddoor.hpp Cleanup of #include statements 2016-06-18 10:56:28 +09:00
aibreathe.cpp Added AiBreathe package (feature #1374) 2017-07-25 10:58:04 +04:00
aibreathe.hpp Added AiBreathe package (feature #1374) 2017-07-25 10:58:04 +04:00
aicombat.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
aicombat.hpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aicombataction.cpp implement rateAmmo() function 2018-01-11 21:08:11 +04:00
aicombataction.hpp Combat AI: use WhenUsed enchantments 2017-08-05 12:18:38 +04:00
aiescort.cpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aiescort.hpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aiface.cpp Implement Face instruction (Feature #1424) 2016-07-09 02:16:47 +02:00
aiface.hpp Implement Face instruction (Feature #1424) 2016-07-09 02:16:47 +02:00
aifollow.cpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aifollow.hpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aipackage.cpp AI: try to open doors every AI_REACTION_TIME seconds (bug #4454) 2018-06-13 17:47:32 +04:00
aipackage.hpp AI: try to open doors every AI_REACTION_TIME seconds (bug #4454) 2018-06-13 17:47:32 +04:00
aipursue.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
aipursue.hpp Store integer actor ID in AI packages (bug #4036) 2018-06-08 19:57:41 +04:00
aisequence.cpp Do not stack return packages 2018-06-08 21:53:47 +04:00
aisequence.hpp Add the parameter to AiSequence::stack() to control ability to cancel other AI packages 2018-06-08 21:53:47 +04:00
aistate.hpp
aitravel.cpp AiTravel: store mHidden flag in savegame 2018-06-08 21:53:47 +04:00
aitravel.hpp Add mHidden field to AiTravel 2018-06-08 21:53:47 +04:00
aiwander.cpp Remove unnecessary hack 2018-06-08 21:53:47 +04:00
aiwander.hpp AiWander: resume moving to destination after combat 2018-06-08 21:53:47 +04:00
alchemy.cpp Update alchemy effects after every created potion (#4079) 2017-09-06 15:11:47 +04:00
alchemy.hpp Don't reveal unknown potion effects in alchemy window (Fixes #3146) 2016-02-02 22:50:11 +01:00
autocalcspell.cpp Move spell magicka cost calculation to standalone function 2017-07-24 21:11:59 +04:00
autocalcspell.hpp Show starting abilities, powers and spells in stat-review window (Fixes #2410) 2016-11-19 21:51:19 +01:00
character.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
character.hpp Make 'PlayGroup idle' to cancel scripted animations 2018-06-12 14:04:03 +04:00
combat.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
combat.hpp Fix some style issues flagged by cppcheck 2017-10-15 17:06:58 +02:00
coordinateconverter.cpp
coordinateconverter.hpp
creaturestats.cpp [General] Synchronize summoned creatures 2017-05-30 10:11:01 +03:00
creaturestats.hpp [General] Synchronize summoned creatures 2017-05-30 10:11:01 +03:00
difficultyscaling.cpp [General] Repurpose GameConsole packet as GameSettings & add difficulty to it 2017-06-20 05:28:45 +03:00
difficultyscaling.hpp
disease.hpp Cleanup of #include statements 2016-06-18 10:56:28 +09:00
drawstate.hpp
enchanting.cpp Remove missing souls, remove some runaway exceptions (Fixes #4111) 2018-03-08 23:38:04 +00:00
enchanting.hpp Pass parameters by const reference 2017-04-20 23:47:03 +09:00
levelledlist.hpp Cleanup of #include statements 2016-06-18 10:56:28 +09:00
magiceffects.cpp
magiceffects.hpp
mechanicsmanagerimp.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
mechanicsmanagerimp.hpp Merge pull request #447 from OpenMW/master while resolving conflicts 2018-06-08 06:01:00 +03:00
movement.hpp
npcstats.cpp [Client] Compare crimeTime and deathTime when NPCs forgive player crimes 2018-07-06 14:17:54 +03:00
npcstats.hpp [Client] Compare crimeTime and deathTime when NPCs forgive player crimes 2018-07-06 14:17:54 +03:00
objects.cpp More consistent wording of errors/warnings 2017-03-04 21:48:31 +01:00
objects.hpp Save scripted animation state (Fixes #1931, #2150, #3393) 2016-08-03 03:52:35 +02:00
obstacle.cpp AI: try to open doors every AI_REACTION_TIME seconds (bug #4454) 2018-06-13 17:47:32 +04:00
obstacle.hpp AI: try to open doors every AI_REACTION_TIME seconds (bug #4454) 2018-06-13 17:47:32 +04:00
pathfinding.cpp [Fix] Some PVS-Studio and cppcheck fixes 2018-04-18 12:36:10 +00:00
pathfinding.hpp Move PathgridGraph out of CellStore 2017-11-27 21:20:31 +00:00
pathgrid.cpp http to https for supported urls (#1625) 2018-03-08 21:23:24 +01:00
pathgrid.hpp Move PathgridGraph out of CellStore 2017-11-27 21:20:31 +00:00
pickpocket.cpp
pickpocket.hpp
repair.cpp Added a special function for GUI sounds playing 2017-07-10 15:48:00 +04:00
repair.hpp
security.cpp Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
security.hpp
spellcasting.cpp [General] Replace deathReason in death packets with a killer variable 2018-07-05 22:24:51 +03:00
spellcasting.hpp Update magic effect particles after building new animation (bug #2254) 2018-03-19 10:43:22 +04:00
spellpriority.cpp Avoid fall-through in spell selection 2018-06-28 11:12:48 +04:00
spellpriority.hpp Split weapons and spells rating code from combat actions 2017-08-01 09:05:35 +04:00
spells.cpp Cache magic effects in MWMechanics::Spells 2016-07-02 12:50:00 +02:00
spells.hpp Cache magic effects in MWMechanics::Spells 2016-07-02 12:50:00 +02:00
stat.cpp Change bounds behavior of stat script commands 2017-03-22 15:17:44 +09:00
stat.hpp Fix magicka and fatigue calculations from fortifying attributes 2016-06-25 19:21:49 +09:00
steering.cpp
steering.hpp
summoning.cpp [Client] Don't remove SummonKeys with actorIds of -1 2018-07-05 01:11:45 +03:00
summoning.hpp Added a delay before summoned creature corpse despawning 2017-08-18 11:58:28 +04:00
trading.cpp Use relative stat difference for haggling 2018-06-08 19:00:45 +03:00
trading.hpp Moved mechanics code from MWGui::TradeWindow to MWMechanics::Trading 2016-06-04 12:28:47 -04:00
weaponpriority.cpp implement rateAmmo() function 2018-01-11 21:08:11 +04:00
weaponpriority.hpp implement rateAmmo() function 2018-01-11 21:08:11 +04:00