Commit Graph

1645 Commits (c++11)

Author SHA1 Message Date
scrawl 431f540791 ESSImport: fix NPC factions 10 years ago
scrawl f35c9b7a69 Clang warning fixes (thanks hemite) 10 years ago
scrawl d34c8526f6 Enchanted arrows should not be added to victim (Fixes #2306) 10 years ago
scrawl 67491c7164 Fix leveled item argument issue (Fixes #2302) 10 years ago
scrawl c883a73d30 Several warning fixes 10 years ago
scrawl 378e91545d Fix Tribunal/BM summon effects not working 10 years ago
scrawl 69676906ae Don't clear known spells when reading from the savegame
This is needed because the .ess format doesn't include the racial spells in the player's spell list.
10 years ago
scrawl eede2c8e55 ESSImport: convert breath meter and skill increases 10 years ago
scrawl 14aacf9a72 Add comment 10 years ago
scrawl 1869d37cfc Remove unused mLastDrowningHit 10 years ago
scrawl bf915d929a Update idle voices according to research 10 years ago
scrawl a3c861b7fa Idle voice fix 10 years ago
scrawl 2ac4a74a34 Fix running AI for dead actors 10 years ago
scrawl fafc14d5a0 Add proper air movement mechanics (Fixes #2077) 10 years ago
scrawl 4ed3e7bbb7 Enchanting code cleanup 10 years ago
scrawl de23ad5c8d Change dynamic_cast to static_cast to make coverity happy 10 years ago
scrawl cda2eea906 Enchanting: use fEnchantmentConstantDurationMult and fEffectCostMult 10 years ago
scrawl 871d59de6c Reduce Idle voice chance (Fixes #1964) 10 years ago
scrawl c3f3f8b3d0 Use only Cell records for saving progress bar (Fixes #2259) 10 years ago
scrawl b108fbe986 Remove incorrect implementation of fGreetDistanceReset
This can't be right. A reset distance of 512 is smaller than the maximum greeting distance for certain NPCs, which would then say greetings non-stop.
10 years ago
Marc Zinnschlag 289a912817 Merge remote-tracking branch 'scrawl/master' 10 years ago
dteviot 458b82c308 Centralized "fish can't attack non-swimmer" logic. 10 years ago
scrawl 579f5d232f Move interactive messageBox to separate function 10 years ago
dteviot 7fe2f86d06 Slaughter fish attacks when player only knee deep in water (Fixes #2076) 10 years ago
Marc Zinnschlag 38a413a483 Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 13c5bd5cc2 Enchanting: fix skill-based cast cost bonus being applied twice 10 years ago
scrawl ef1b0a191b Revert "Enchanting: fix inverted self-enchant success chance"
It wasn't inverted to begin with. The author of this commit is an idiot.
10 years ago
scrawl a17252eab3 Remove unused checkWaypoint function
It was an almost exact copy of the checkPathCompleted function anyway.
10 years ago
scrawl 4d9100091d Reduce default pathing arrival tolerance to 32 units (Fixes #1605) 10 years ago
scrawl 992b87ea44 Reset existing summons when the spell is re-casted (Fixes #2135) 10 years ago
scrawl f267497c03 Allow separate summoned creature instances for each spell ID (Fixes #2194) 10 years ago
Marc Zinnschlag 31f6ccdf4d Merge remote-tracking branch 'internecine/bug2031' 10 years ago
Internecine e1fdcb608e Fixed incorrect index 10 years ago
scrawl 708dbc2518 Crime fix 10 years ago
scrawl c343a5c803 stopCombat fix 10 years ago
scrawl 5e7e40aac9 Fix being able to switch weapons while knocked out 10 years ago
scrawl d56906acf7 Fix the creature position glitch 10 years ago
scrawl 92e4a0669c Fix for AiWander state loading 10 years ago
scrawl 559ddbb480 Quick fix for Ai fast-forward crash in exteriors (Fixes #2241) 10 years ago
Internecine a7a3ab0c78 Fixed instant negative dynamic stat changes being applied as positive 10 years ago
scrawl dc1c52bda7 Add some todo comments 10 years ago
scrawl e0d083f702 Add hand-to-hand combat mechanics for bipedal creatures
You can now have a fistfight with vivec, if you so desire.
10 years ago
scrawl 70d3bfc6ed Fix idle animation not restarting immediately for creatures 10 years ago
scrawl 01652bbcc5 Store original actor position in AiWander package (Fixes #2200) 10 years ago
scrawl 99ae0f901b Implement AiTravel fast-forward (Fixes #1125) 10 years ago
scrawl a8ae0dec52 Implement AiWander fast-forward (Feature #1125) 10 years ago
scrawl d26d5f6c26 Fix outdated bone locations when camera view is changed while paralyzed 10 years ago
scrawl d1a29300f0 Handle bipedal creatures not using weapons (Fixes #2238) 10 years ago
scrawl 363d1f9207 Merge remote-tracking branch 'upstream/master' 10 years ago
scrawl 6c9875969a Stop idle animations for non-biped creatures when attacking/moving
The idle animation wouldn't be visible anyway, since these creatures don't have animation layers. However sounds tagged in the animation would still play.
10 years ago
scrawl a58bc9f2f7 Remove sneaking effect on combat AI (Fixes #2237) 10 years ago
scrawl 1bd3ab8a2d Fix torch animation playing when torch is hidden (Fixes #2236) 10 years ago
scrawl de9d347018 Fix on touch area effect spells (Fixes #2233) 10 years ago
scrawl a62fe38a1b Fix unsafe use of BaseNode 10 years ago
Internecine 5f9540318a Fixed incorrect indexes 10 years ago
Internecine a87fe71ddf Added a helper function to handle dynamic stat changes 10 years ago
scrawl 768c4a5757 Update crime response to pickpocket attempts (thanks Hrnchamd) 10 years ago
scrawl 7f0d71f8f4 Swap use of iDispAttackMod/fDispAttacking (thanks Hrnchamd) 10 years ago
scrawl 019cd96719 Stop AiPursue when target has invisibility or chameleon>=75 10 years ago
scrawl edc128572d Add MWMechanics::Actor class for temporary actor state, move AiState there 10 years ago
scrawl 8bc7eb5530 PlayGroup: Don't loop animations with no loop keys (Fixes #2223) 10 years ago
scrawl 9e5dfb6e98 Update crime system according to research wiki for more accurate attack responses 10 years ago
scrawl 2410d79410 Fix iFightAttack and iFightAttacking being swapped
Looks like the research wiki page was incorrect, the higher value (iFightAttack) being for the victim makes more sense, is consistent with iDispAttackMod/fDispAttacking, and seems to be how the original game behaves as well.
10 years ago
scrawl 0081a68376 Use fMagicStartIconBlink for spell effect indicator fading 10 years ago
scrawl f3738e9a98 Say an "intruder" voice dialogue for trespassing crimes (Fixes #1082)
Seems to be broken in the original engine, but according to the TES-CS help this is how the intruder voices should be used. There are legitimate entries for "intruder" in the game's files, so we might as well use them.
10 years ago
scrawl 866fdfe8bd Crime system improvements
- If someone saw the crime, they will notify everyone else in range, even if the Alarm rating of the witness is 0.
- Pickpocket and selling stolen items now works properly, i.e. honors the victim's Alarm rating instead of always being reported.
10 years ago
scrawl 1910327469 Implement disposition changes due to crimes 10 years ago
scrawl cc9af9562b Function_CreatureTargetted should return '2' for werewolfs
This makes NPCs say the correct attack voice files when fighting a werewolf.
10 years ago
scrawl efa9ff3a76 Fix incorrect implementation of iWerewolfBounty 10 years ago
scrawl 35d2bfabca Adjust NPC response to pickpocket attempts (Fixes #2219) 10 years ago
scrawl 105f0f8716 Head tracking: don't look at dead actors 10 years ago
scrawl 8a210c49e9 Improve AI prioritising health potions 10 years ago
scrawl f931ba2efc Fix some static analysis issues (coverity) 10 years ago
scrawl 1b9209df4a Allow blocking of hand-to-hand attacks 10 years ago
Alexander "Ace" Olofsson 462b41a3a8 Missing files, aka; Why you shouldn't stresscommit 10 years ago
Alexander "Ace" Olofsson 0af5c7b379 Starting to clean up some heavy includes 10 years ago
scrawl d962f0918d Implement NPC head tracking (Fixes #1720) 10 years ago
scrawl 4d5adfb5dd Fix being able to use enchantments of items that failed to equip (Fixes #2215) 10 years ago
scrawl 2b78e9795d Implement Calm effect removing combat packages (Fixes #1985) 10 years ago
scrawl 4f3995a4d8 Fix werewolf AI being able to use items 10 years ago
scrawl 88a2e4c043 Graceful error handling for missing spells/factions (Fixes #1825, Bug #2176, Bug #2203) 10 years ago
scrawl 60aa209144 Implement drowning when knocked out underwater (Fixes #1228) 10 years ago
scrawl d034a079e6 Allow equipping twohanded weapon and shield at the same time (Fixes #1785)
The shield can be equipped, meaning armor rating and item enchantments apply, but can not be blocked with.
10 years ago
scrawl bc85bb32c2 Fix vampirism magic effect not applying immediately (Fixes #1984) 10 years ago
scrawl 2601b26217 Merge branch 'master' of https://github.com/OpenMW/openmw 10 years ago
scrawl 886903d70e Implement HitAttemptOnMe function (Bug #2078) 10 years ago
scrawl 5f00a3d5c3 Reset lastHitObject when it is retrieved rather than every frame
This seems to be how vanilla MW does it.
10 years ago
Marc Zinnschlag 19bd07648b Merge remote-tracking branch 'scrawl/pathgrid' 10 years ago
scrawl 3270f0e932 Change pathgrid workaround to check for interior cell name 10 years ago
scrawl 623783cd6a Enchanting: fix cast cost for "on use" enchantments being set incorrectly 10 years ago
scrawl ead6bf1601 Enchanting: cast the enchant points for the item to int (Fixes #2202) 10 years ago
scrawl 3c747195ae Add fall damage for creatures (Fixes #2201) 10 years ago
scrawl e0c6f84546 AiFollow: target has to be seen in order to start following (Fixes #1637) 10 years ago
scrawl 109a3f78a1 Adjust AiFollow distance for groups of multiple followers (Fixes #1637) 10 years ago
scrawl 0fe7500f74 Work around pathgrid record limitation (Fixes #2195) 10 years ago
scrawl 416d549568 Fix animation glitch caused by knockdown
If the player was knocked down while having no weapon, spell nor fists ready, the animation state would incorrectly shift to "weapon equipped" even though no weapon is equipped.
10 years ago
scrawl 83dcf9ce4b Overwrite existing records in IndexedStore (Fixes #2182) 10 years ago
Marc Zinnschlag eb6e1576be Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 14ae6d28b0 Fix being able to jump when overencumbered 10 years ago
scrawl 7faa849cef Fix fatigue recalculation using older value (oops) 10 years ago
Paulo Viadanna bfa048e687 Fix #1734: AI will stop combat if target disappear 10 years ago
scrawl 46d93f1b08 Crime update: NPCs can report crimes if they didn't see the crime, but were alerted by someone who saw it and did not report it themselves. 10 years ago
scrawl 507cbcfae3 Remove incorrect implementation of the iAlarm* GMSTs, not used by vanilla MW (Fixes #2064)
According to Hrnchamd, these are unused. The real mechanics are not fully documented, but from a quick test only NPCs with an alarm value of 100 will report crimes.
10 years ago
scrawl a1226501fa AiWander: move idle animation handling to non-delayed section (Fixes #2073) 10 years ago
scrawl c684c99a95 Combat AI: Don't attempt to cast spells when impossible to succeed (Fixes #2059) 10 years ago
scrawl 61d1aa78ce Move AiWander path finder to temporary storage (Fixes #2082) 10 years ago
Marc Zinnschlag 003675318d Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl 5f5fcc2fef Make PlayGroup use an indefinite number of loops (Fixes #2156) 10 years ago
scrawl 0a466ad643 Make recalculation of magicka less aggressive (Fixes #2155) 10 years ago
MiroslavR cb74c1c36e Set health to 0 if it drops below 1 (Fixes #2163) 10 years ago
MiroslavR 238325455d Erase effects that have expired (Fixes #2134) 10 years ago
MiroslavR b8d5a9486a Make Restore/Damage Attribute/Skill effects continuous 10 years ago
Internecine edc51ab768 Removed debug output 10 years ago
Internecine 6741fbe7a9 Fixes bug #2031 10 years ago
MiroslavR 140013820b Fix invalidated iterator 10 years ago
scrawl 45f14f0704 Fix stolen faction-owned items not being confiscated 10 years ago
scrawl 8b3755a770 Compile fix 10 years ago
scrawl 192069a181 Add automatic potion naming 10 years ago
scrawl fd7c181e06 Fix alchemy producing potion IDs from content files 10 years ago
scrawl f117a75747 Force walk animation when flying (Fixes #2015) 10 years ago
Alexander "Ace" Olofsson dc788512e2 Fix LNK2019 link error on Visual Studio 2010 builds
For some reason VS2010 (Haven't tested 2013) is REALLY pedantic about class/struct being two different things when it comes to function signatures
10 years ago
Marc Zinnschlag 6beee95151 Merge remote-tracking branch 'terrorfisch/aistate' 10 years ago
Marc Zinnschlag eb45793eab Merge remote-tracking branch 'thoronador/fix-numeric-limits-usage' 10 years ago
Thoronador 4d62541b62 fix usage of numeric_limits static functions min() and max()
Functions min() and max() of std::numeric_limits<T> are static
and can therefore be accessed via class name and :: operator.
10 years ago
scrawl d51daf5875 Fix AI not using F_Always spells, for example "vampire touch" 10 years ago
scrawl 8cb09e89ed Make spells cast by scripts always succeed (Fixes #1993) 10 years ago
MiroslavR ad253059b1 Hit indicator for absorb/damage health effect 10 years ago
MiroslavR 0ae604990e Implement continuous damage indication (Fixes #1970) 10 years ago
terrorfisch c4badcea6e removed warning 10 years ago
terrorfisch c28dfc2fa4 Travis CI fix? 10 years ago
terrorfisch 4eb1668467 references now initialized when they are needed 10 years ago
terrorfisch bbca942601 -improved trigonometric precision
-cleanup
10 years ago
terrorfisch 5248917a6c - changed namespace 10 years ago
terrorfisch db1b93498d Added comment. 10 years ago
terrorfisch 730abf6841 Moved all variables in temporary storage for AiCombat and some more for AiWander.
+Buxfix for previous AiWander changes
10 years ago
terrorfisch cae948df96 removed unecessary PathFinders 10 years ago
terrorfisch 4c36c67fb8 Updated AiCombat:
-moved everything except target to temporary storage
-removed the Pathfinder since present in baseclass
-cleaned some trigonometric mess
10 years ago
terrorfisch 4391c1fd00 Addded the parts of AiWander that I fully understand to the temporary storage.
The rest should be done by someone who has a clearer overview over the class.
10 years ago
terrorfisch 0871d45790 Draft how to move temporary package state to CharacterController.
Example for a few values shown in AiWander.
10 years ago
Marc Zinnschlag 744c56943a Merge remote-tracking branch 'jordan-ayers/topic/misc-cleanup' 10 years ago
Jordan Ayers 56db525a93 Document the return value of getEffectMultiplier. 10 years ago
scrawl c4fa671381 Don't allow raising faction rank if the next rank has no name (Fixes #1975) 10 years ago
scrawl 5c3bc6563b Fix divisions by zero in normalizedEncumbrance 10 years ago
scrawl 8dd410fe96 Teleport indirect followers as well when using a door (Fixes #1974) 10 years ago
Jordan Ayers 663647bee8 Simplify getEffectMultiplier.
Both return cases were same, except for some overflow conditions.
10 years ago
scrawl 6fc53e73ad Don't run AI for knocked-out actors (Fixes #1854) 10 years ago
Marc Zinnschlag a166034e12 Merge remote-tracking branch 'jordan-ayers/topic/disease-cleanup' 10 years ago
scrawl 861cc26aa6 Don't sell racial spells (Fixes #1961) 10 years ago
scrawl afbd2de511 Fix broken alchemy magnitude/duration 10 years ago
scrawl 7e10818bdf Fix uninitialized flags for custom-made spells 10 years ago
Jordan Ayers 3bc91c66e6 Disease Check: Shorten the resistance calculations. 10 years ago
Jordan Ayers a9a0930b85 Disease check: Reuse corprus check from spells.hpp. 10 years ago
scrawl 1c51694aa9 Don't update physics and animation for actors outside the AI processing distance 10 years ago
scrawl ee8b85aa2c Fix priority bug in AiSequence::stack (Fixes #1959) 10 years ago
Jordan Ayers da9d858201 Add 'const' to a spell helper function. 10 years ago
scrawl 7f18f85a1d Forgot const 10 years ago
scrawl e9ed0211c9 Attempt to fix Clang warnings 10 years ago
scrawl 02dec787fd Cache GMSTs in getDerivedDisposition 10 years ago
scrawl ea956b537c Don't search for fFatigueReturnBase and fFatigueReturnMult every frame 10 years ago
scrawl e868a48a63 Don't trigger OnPcHitMe for friendly hits (Fixes #1950)
Don't consider actors as followers if they are also in combat with the follow target
10 years ago
scrawl 7252cb63a6 Fix cppcheck issues 10 years ago
scrawl f56711f443 Fix crash caused by teleportation spells (Fixes #1904) 10 years ago
scrawl 8ad2b95208 Revert "AiFollow: return from execute() if target is not player"
This reverts commit 061c7813f6.

Fixes #1898.
10 years ago
scrawl 40ce5add59 Don't report crime for attacking an NPC that is already in combat with another NPC (Fixes #1908, Fixes #1821) 10 years ago
scrawl 40587f984d Implement price-based mercantile skill progress (Fixes #1947), thanks Hrnchamd
Correct barter formula (removed erroneous clamping)
10 years ago
Marc Zinnschlag 175d4f3d44 Merge remote-tracking branch 'ragora/playdeathlevelupmusic' 10 years ago
Ragora 06e683d378 Added code to play music on level up and on death 10 years ago
scrawl 3ac04060c1 Fix NPCs being able to practice Block skill 10 years ago
scrawl 023d7072f9 Don't play battle music for enemies out of AI processing range 10 years ago
Marc Zinnschlag 65ddf7acfe Merge remote-tracking branch 'scrawl/master' 10 years ago
Marc Zinnschlag 2a48c377a8 Merge remote-tracking branch 'miroslavr/master' 10 years ago
scrawl b145d183ae Fix incorrect alchemy failure handling when an effect has a zero magnitude/duration (Fixes #1922) 10 years ago
scrawl 8a3a3baed4 Tweak AiEscort maximum distances 10 years ago
scrawl b39fe85a51 Implement fPCbaseMagickaMult and fNPCbaseMagickaMult 10 years ago
scrawl c19f89976e Add missing Hit voice dialogue for friendly hits 10 years ago
scrawl be7839873a Don't trigger dynamic stats recalculation when setting up actor initial stats (Fixes #1927)
This caused the magicka value set in the CS to be ignored completely, so flame atronachs were spawning with 50 magicka instead of 105.
10 years ago
scrawl 447e93bdb4 Use SpellCast animation for creatures that have it (flame atronach) 10 years ago
scrawl 07cd647e75 Fix broken AI for creatures with OnTarget spells (Bug #1927) 10 years ago
scrawl 2eaceb71ba Reject AiTravel destinations further than 7168 units away, as in vanilla MW (Fixes #1911) 10 years ago
scrawl 3ce3f31452 Adjust turning animation speed multiplier based on turning speed 10 years ago
scrawl 6debd21ec6 Make sure the Jump control is always handled by the PhysicsSystem even if game runs faster than the minimum physics timestep 10 years ago
scrawl 269c200c8f Fix jump velocity mechanics (Fixes #1708) 10 years ago
scrawl b6a89c7845 Fix idlestorm animation conflict with torch animation 10 years ago
scrawl 4c285151a3 Fix incorrect movement animation for some creatures (Fixes #1924) 10 years ago
scrawl 0c75c6bf1b Improve spellcasting AI for Drain/Damage effects 10 years ago
scrawl 157c53bed4 Handle spellcasting for creatures with no casting animation (Fixes #1856) 10 years ago
scrawl 233e221de2 Terminate AI packages when target is disabled or deleted (Fixes #1910) 10 years ago
scrawl a42e60970b Revert "delete death events on adding an actor to the scene"
If we go to a different cell in the exact frame of an actor's death, the death event would be lost permanently.

This reverts commit fd2c07a6f4.

Conflicts:
	apps/openmw/mwmechanics/actors.cpp
10 years ago
scrawl 8625764143 Give 100% of health back when Resurrecting an actor (Fixes #1877) 10 years ago
MiroslavR 23e6d52844 Fix UI not updating initially for zero stats 10 years ago
Marc Zinnschlag b5d5eadf79 Merge remote-tracking branch 'scrawl/master' 10 years ago
scrawl f3d4b63aaf Fix AI moving load doors and throw an exception when trying to do this (Fixes #1907) 10 years ago
scrawl dd5f4947d7 Add a TODO comment 10 years ago
scrawl 56cd0da522 Fix potential infinite recursion when an area effect spell is reflected (Fixes #1896) 10 years ago
MiroslavR 21eb25706c Don't pursue the player for their crimes when they are a werewolf 10 years ago
scrawl d2ef0d362c Implement vanilla distance threshold for AI processing (Bug #1876) 10 years ago
scrawl 780a48cd1e Don't greet dead actors in AiWander 10 years ago
scrawl a9847c9453 Fix creature attacking flag not being reset after the attack starts (Fixes #1889) 10 years ago
scrawl adbc50366b Use random attack strength for creatures (Bug #1876)
Determining the attack strength from the time the wind-up animation was held will not work properly, as most creatures don't have this animation.

This fixes another balancing issue with Rieklings (they were previously using an attack strength of 1 every time).
10 years ago
scrawl 31b31115af Fix AI not using Restore Health effect when it is complemented by unnecessary restore magicka/fatigue effects (e.g. in sc_purityofbody) 10 years ago