예제 #1
0
 public static DismembermentSettings Instance()
 {
     if (null == _instance)
     {
         _instance = new DismembermentSettings();
     }
     return(_instance);
 }
예제 #2
0
        private static void Prefix(ref AttackCollisionData collisionData, Agent attacker, Agent victim, GameEntity realHitEntity, float momentumRemainingToComputeDamage, ref float inOutMomentumRemaining, ref MeleeCollisionReaction colReaction, CrushThroughState cts, Vec3 blowDir, Vec3 swingDir, ref object hprd, bool crushedThroughWithoutAgentCollision)
        {
            bool flag = collisionData.VictimHitBodyPart == BoneBodyPartType.Head && collisionData.StrikeType == 0 && collisionData.DamageType == 0 && (attacker.AttackDirection == Agent.UsageDirection.AttackLeft || attacker.AttackDirection == Agent.UsageDirection.AttackRight);

            if (flag)
            {
                //DismembermentSubModule.AddPDV(victim, attacker);
                DismembermentSettings.Instance().GetDismembermentMissionBusiness().AddPDV(victim, attacker);
            }
        }
예제 #3
0
 protected override void OnApplicationTick(float dt)
 {
     DismembermentSettings.Instance().GetDismembermentMissionBusiness().OnApplicationTick(dt);
 }