group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
DroppedWeapon.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
7
Weapon state component for armed entities.
WeaponType
Weapon type — determines tracer style, damage, sound, and impact effects.
Definition WeaponState.hpp:12
@ Rifle
Fast hitscan/projectile (R301-style capsule tracer).
Definition WeaponState.hpp:13
ECS component: one-shot weapon pickup spawned at a player's death position.
Definition DroppedWeapon.hpp:14
int currentMagAmmo
Ammo in the magazine at death.
Definition DroppedWeapon.hpp:17
WeaponType type
Weapon type from the slot's GunInstance.
Definition DroppedWeapon.hpp:15
float despawnTimer
Seconds until the entity is destroyed.
Definition DroppedWeapon.hpp:18
int totalAmmo
Reserve ammo at death.
Definition DroppedWeapon.hpp:16