Kziwws 3 dagen geleden
bovenliggende
commit
e5c228e262

+ 1 - 2
assets/scripts/items/player/Bullet1.ts

@@ -6,7 +6,6 @@ import { PoolManager } from '../../core/manager/PoolManager';
 import { Sundries } from '../../game/Sundries';
 import { Enemy } from '../../game/Enemy';
 import { GameEnums } from '../../data/GameEnums';
-import { GunAttribute, userIns } from '../../data/UserData';
 const { ccclass, property } = _decorator;
 
 //玩家所用子弹 98k m24 awm BarrettM82A1 重狙子弹
@@ -79,7 +78,7 @@ export class Bullet1 extends BulletBase {
      * @param len 检测
      */
     private rayPreCheck() {
-        let screenPos: Vec3 = this.stabilityGetBulletPos(140);
+        let screenPos: Vec3 = this.stabilityGetBulletPos(100);
         const r = geometry.Ray.create();
         Game.I.camera.screenPointToRay(screenPos.x, screenPos.y, r);
         const hasHit = PhysicsSystem.instance.raycast(r, 0xffffffff, 100000, true);

+ 1 - 2
assets/scripts/items/player/Bullet2.ts

@@ -6,7 +6,6 @@ import { GunBase } from '../base/GunBase';
 import { Sundries } from '../../game/Sundries';
 import { GameEnums } from '../../data/GameEnums';
 import { Enemy } from '../../game/Enemy';
-import { GunAttribute, userIns } from '../../data/UserData';
 const { ccclass, property } = _decorator;
 
 //玩家所用子弹 步枪子弹
@@ -77,7 +76,7 @@ export class Bullet2 extends BulletBase {
      * @param len 检测
      */
     private rayPreCheck() {
-        let screenPos: Vec3 = this.stabilityGetBulletPos(200);
+        let screenPos: Vec3 = this.stabilityGetBulletPos(80);
         const r = geometry.Ray.create();
         Game.I.camera.screenPointToRay(screenPos.x, screenPos.y, r);
         const hasHit = PhysicsSystem.instance.raycast(r, 0xffffffff, 100000, true);

+ 1 - 2
assets/scripts/items/player/Bullet3.ts

@@ -6,7 +6,6 @@ import { GunBase } from '../base/GunBase';
 import { Sundries } from '../../game/Sundries';
 import { Enemy } from '../../game/Enemy';
 import { GameEnums } from '../../data/GameEnums';
-import { GunAttribute, userIns } from '../../data/UserData';
 const { ccclass, property } = _decorator;
 
 //玩家所用子弹 连狙子弹
@@ -76,7 +75,7 @@ export class Bullet3 extends BulletBase {
      * @param len 检测
      */
     private rayPreCheck() {
-        let screenPos: Vec3 = this.stabilityGetBulletPos(180);
+        let screenPos: Vec3 = this.stabilityGetBulletPos(150);
         //射线检测
         const r = geometry.Ray.create();
         Game.I.camera.screenPointToRay(screenPos.x, screenPos.y, r);

+ 1 - 1
assets/scripts/ui/GunfightShootUI.ts

@@ -277,7 +277,7 @@ export class GunfightShootUI extends BaseExp {
         // 计算稳定性因子
         const stabilityFactor = Math.max(0, 1 - (gData.stability / maxStability));
         //根据稳定性因子动态调整振幅
-        const amplitude = 10 + (40 * stabilityFactor);
+        const amplitude = 5 + (20 * stabilityFactor);
         //基础抖动持续时间0.3-0.6秒,稳定性越高持续时间越短
         const duration = 0.6 - (0.3 * (1 - stabilityFactor)); 
         let elapsed = 0;