Summary: If you run over a mountain lion with a vehicle so that they ragdoll, dismember one of their limbs, and then dismember their head, a NullReferenceException will occur
(I am not sure if all animals are affected, I only tried mountain lion)
Game Version: Alpha 20.3 b3
Platform: PC
OS/Version: Windows 10
CPU Model: Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
System Memory: 8GB
GPU Model and VRAM: AMD Radeon R9 M275X (4075MB?)
Screen Resolution: 1280x720
Video Settings: Potato (Lowest)
Game mode: SP
Did you wipe old saves? Not since A20.0
Did you start a new game? Yes
Did you validate your files? Yes
Are you using any mods? No
EAC on or off? On
Status: NEW
Bug Description:
Detailed steps to reproduce the bug:
1) Turn on DM
2) Enable TDS (so you can easily dismember at will)
3) Spawn a mountain lion
4) Shoot their limb, then their head -- observe no error occurs
5) Spawn another mountain lion
6) Get on a motorcycle and run them over
7) While the mountain lion is recovering from ragdoll animation, shoot their limb then their head
Actual result: NullReferenceException occurs
video: https://imgur.com/a/WILu1OP
logs: https://pastebin.com/augB2d2N
I see this in the logs
NullReferenceException at (wrapper managed-to-native) UnityEngine.Rigidbody.set_maxDepenetrationVelocity(UnityEngine.Rigidbody,single) at EModelBase.StartRagdoll (System.Single stunTime) [0x000f8] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EModelBase.DoRagdoll (System.Single stunTime, EnumBodyPartHit bodyPart, UnityEngine.Vector3 forceVec, UnityEngine.Vector3 forceWorldPos, System.Boolean isRemote) [0x000d2] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EModelBase.DoRagdoll (DamageResponse dr, System.Single stunTime) [0x0010a] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EModelBase.OnDeath (DamageResponse _dmResponse, ChunkCluster _cc) [0x000ae] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityAlive.ClientKill (DamageResponse _dmResponse) [0x001e1] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityAlive.Kill (DamageResponse _dmResponse) [0x00049] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityAlive.ProcessDamageResponseLocal (DamageResponse _dmResponse) [0x00762] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityAlive.damageEntityLocal (DamageSource _damageSource, System.Int32 _strength, System.Boolean _criticalHit, System.Single impulseScale) [0x00730] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityAlive.DamageEntity (DamageSource _damageSource, System.Int32 _strength, System.Boolean _criticalHit, System.Single _impulseScale) [0x000f1] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at EntityEnemy.DamageEntity (DamageSource _damageSource, System.Int32 _strength, System.Boolean _criticalHit, System.Single _impulseScale) [0x00000] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at ItemActionAttack.Hit (World _world, WorldRayHitInfo hitInfo, System.Int32 _attackerEntityId, EnumDamageTypes _damageType, System.Single _blockDamage, System.Single _entityDamage, System.Single _staminaDamageMultiplier, System.Single _weaponCondition, System.Single _criticalHitChance, System.Single _dismemberChance, System.Single _dismemberBonusOLD, System.String _attackingDeviceMadeOf, DamageMultiplier _damageMultiplier, System.Collections.Generic.List`1[T] _buffActions, ItemActionAttack+AttackHitInfo _attackDetails, System.Int32 actionExp, System.Single actionExpBonus, ItemActionAttack rangeCheckedAction, System.Collections.Generic.Dictionary`2[TKey,TValue] _toolBonuses, ItemActionAttack+EnumAttackMode _attackMode, System.Boolean _bAllowHarvestingParticles, System.Boolean _bIsGrazingHit, System.Boolean _isElectricTrapAttack, System.Collections.Generic.Dictionary`2[TKey,TValue] _hitSoundOverrides, System.Int32 ownedEntityId, ItemValue damagingItemValue) [0x00a4e] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at ItemActionRanged.fireShot (System.Int32 _shotIdx, ItemActionRanged+ItemActionDataRanged _actionData) [0x003af] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at ItemActionRanged.ExecuteAction (ItemActionData _actionData, System.Boolean _bReleased) [0x0039e] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at ItemClass.ExecuteAction (System.Int32 _actionIdx, ItemInventoryData _data, System.Boolean _bReleased, PlayerActionsLocal _playerActions) [0x003b8] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at Inventory.Execute (System.Int32 _actionIdx, System.Boolean _bReleased, PlayerActionsLocal _playerActions) [0x00037] in <39cf8b713b17414c9e5ddfff01d6df19>:0 at PlayerMoveController.Update () [0x0252a] in <39cf8b713b17414c9e5ddfff01d6df19>:0
Expected result: No error when dismembering animals