|
group2 0.1.0
CSE 125 Group 2
|
Emitted when a weapon fires (both hitscan and projectile). More...
#include <ParticleEvents.hpp>
Public Attributes | |
| entt::entity | shooter = entt::null |
| WeaponType | type = WeaponType::Rifle |
| glm::vec3 | origin {} |
| Muzzle world position. | |
| glm::vec3 | direction {} |
| Normalised fire direction. | |
| bool | isHitscan = false |
| bool | localPlayer = false |
| True when this event originated from the listening client. | |
| glm::vec3 | hitPos {} |
| Valid only when isHitscan == true. | |
Emitted when a weapon fires (both hitscan and projectile).
| glm::vec3 WeaponFiredEvent::direction {} |
Normalised fire direction.
| glm::vec3 WeaponFiredEvent::hitPos {} |
Valid only when isHitscan == true.
| bool WeaponFiredEvent::isHitscan = false |
| bool WeaponFiredEvent::localPlayer = false |
True when this event originated from the listening client.
| glm::vec3 WeaponFiredEvent::origin {} |
Muzzle world position.
| entt::entity WeaponFiredEvent::shooter = entt::null |
| WeaponType WeaponFiredEvent::type = WeaponType::Rifle |