diff --git a/server/src/objects/explosion.ts b/server/src/objects/explosion.ts index f4568fa7..17a4cca3 100644 --- a/server/src/objects/explosion.ts +++ b/server/src/objects/explosion.ts @@ -45,6 +45,7 @@ export class Explosion { const lineEnd = v2.add(this.pos, v2.rotate(v2.create(this.rad, 0), angle)); for (const obj of objects) { + if (!util.sameLayer(obj.layer, this.layer)) continue; if (obj.__type === ObjectType.Player || obj.__type === ObjectType.Obstacle || obj.__type === ObjectType.Loot) { // check if the object hitbox collides with a line from the explosion center to the explosion max distance const intersection = collider.intersectSegment(obj.collider, this.pos, lineEnd); diff --git a/server/src/utils/weaponManager.ts b/server/src/utils/weaponManager.ts index 28c13aba..386540a0 100644 --- a/server/src/utils/weaponManager.ts +++ b/server/src/utils/weaponManager.ts @@ -83,7 +83,7 @@ export class WeaponManager { cooldown: 0 }); } - this.weapons[0].type = "m870"; + this.weapons[0].type = "usas"; this.weapons[1].type = "mp5"; this.weapons[0].ammo = 30; this.weapons[1].ammo = 30;