Example #1
0
        protected override void Update(WeaponBaseAgent heldBaseAgent, WeaponSideCmd cmd)
        {
            var config           = heldBaseAgent.FixedSpreadLogicCfg;
            var runTimeComponent = heldBaseAgent.RunTimeComponent;

            FireSpreadFormula.ApplyFixedFinalSpread(config.Value, config.SpreadScale, runTimeComponent);
        }
Example #2
0
        public void OnAfterFire(WeaponBaseAgent weaponBaseAgent, WeaponSideCmd cmd)
        {
            var weaponController = weaponBaseAgent.Owner.WeaponController();

            AddFireEvent(weaponController);
            // AddPullBoltEvent(controller);
            AddLocalEffect(weaponController);
        }
        public void OnAfterFire(WeaponAttackProxy attackProxy, WeaponSideCmd cmd)
        {
            if (DefaultCfg == null)
            {
                return;
            }
            var bones = attackProxy.Owner.RelatedBones;

            CreateFireRelatedEffect(attackProxy, bones);
            CreateBulletEffect(attackProxy, bones);
        }
Example #4
0
 public void OnIdle(WeaponBaseAgent agent, WeaponSideCmd cmd)
 {
     Update(agent, cmd);
 }
Example #5
0
 public void OnBeforeFire(WeaponBaseAgent agent, WeaponSideCmd cmd)
 {
     Update(agent, cmd);
 }
Example #6
0
 protected abstract void Update(WeaponBaseAgent agent, WeaponSideCmd cmd);
        protected override void Update(WeaponAttackProxy attackProxy, WeaponSideCmd cmd)
        {
            var config = attackProxy.WeaponConfigAssy.S_FixedSpreadLogicCfg;

            FireSpreadFormula.ApplyFixedFinalSpread(config.Value, config.SpreadScale, attackProxy.RuntimeComponent);
        }
Example #8
0
 protected abstract void Update(WeaponAttackProxy attackProxy, WeaponSideCmd cmd);
Example #9
0
 public void OnIdle(WeaponAttackProxy attackProxy, WeaponSideCmd cmd)
 {
     Update(attackProxy, cmd);
 }
Example #10
0
 public void OnBeforeFire(WeaponAttackProxy attackProxy, WeaponSideCmd cmd)
 {
     Update(attackProxy, cmd);
 }
Example #11
0
 public bool IsCanFire(PlayerWeaponController controller, WeaponSideCmd cmd)
 {
     return(controller.RelatedCameraSNew.CanFire);
 }