Commit Graph

19 Commits (ffi-server-rewrite)

Author SHA1 Message Date
David Cernat 995d20348f [General] Always use correct ranged weapon & ammo for ranged attack sync
Previously, the player's currently selected weapon was being used in ranged attacks as in the original melee-oriented attack sync, which meant that shooting one type of projectile and then equipping another while the old projectile was still in the air turned the old projectile into the new projectile upon impact.

Additionally, avoid running most of the code in MechanicsHelper::assignAttackTarget() for non-hitting melee and ranged attacks.
6 years ago
David Cernat b5f46ada73 [General] Synchronize projectile speed for ranged attacks
This is done by including the final attackStrength used for ranged attacks in packets and then applying it in WeaponAnimation::releaseArrow() on other clients.
6 years ago
Rafael Moura 6c2ce2b2a1 Porting more ContainerStoreIterator usage to const version #4
removed const_cast revision
8 years ago
scrawl 08f06c6c2d Fix a crash that could occur with actors that define 'bip01 spine1' but do not define 'bip01 spine2' (Fixes #3223). 9 years ago
scrawl 8bd16e4d5a Don't compute the world matrix multiple times 9 years ago
scrawl e28dc3e72f Preload instances in SceneManager 9 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 ed4863ad7d Restore ranged weapon aiming 10 years ago
scrawl a066b24303 Restore WeaponAnimation 10 years ago
scrawl 7e33471edb Fix code duplication 10 years ago
scrawl 56799c79f4 Fix attachArrow exception when changing weapon (Fixes #2332) 10 years ago
scrawl 326eaea8a6 Add missing sound for drawing throwing weapons (Fixes #2308) 10 years ago
scrawl 398fe6e780 Thrown weapon fix (Fixes #2248) 10 years ago
scrawl 9c693d078b Fix equipment update removing ammunition (Fixes #2144) 10 years ago
scrawl 59f21c6105 Use "hair" as filter for PRT_Hair parts (Fixes #2218) 10 years ago
scrawl c1e6b8608b Always create a skeleton if there's an "ArrowBone" node (Fixes #2117) 10 years ago
scrawl 5c3bc6563b Fix divisions by zero in normalizedEncumbrance 10 years ago
scrawl 98329a94b4 Add case sensitivity workaround for spine bones (Fixes #1547) 11 years ago
scrawl 0cd40294a2 Fixed ranged combat for creatures 11 years ago