damage per head (#32)

This commit is contained in:
extrawurst
2025-04-18 23:48:44 +02:00
committed by GitHub
parent 72b88cc9a4
commit 7cb2475d9b
9 changed files with 75 additions and 51 deletions

View File

@@ -76,7 +76,9 @@ fn on_trigger_gun(
GunProjectile {
time: time.elapsed_secs(),
},
Projectile { damage: 10 },
Projectile {
owner_head: state.head,
},
Collider::capsule_endpoints(0.5, Vec3::new(0., 0., 0.), Vec3::new(0., 0., -3.)),
CollisionLayers::new(
LayerMask(GameLayer::Projectile.to_bits()),