|
Space Plunder
|
A struct that represents the state of a player's weapon. More...
#include <WeaponStructs.h>
Public Attributes | |
| bool | bIsReloading = false |
| bool | bFiringWeapon = false |
| bool | bIsHolstered = false |
| bool | bIsAiming = false |
| bool | bHasGun = false |
| bool | bIsWeaponInAutoMode = false |
| bool | bIsWeaponInBurstMode = false |
| bool | bIsWeaponInSingleMode = false |
| bool | bIsWeaponInChargeMode = false |
| bool | bIsCrouching = false |
A struct that represents the state of a player's weapon.
This struct stores various properties related to the player's weapon, such as whether the weapon is currently reloading, firing, holstered, aiming, or in different modes (auto, burst, single, charge). It also stores whether the player has a gun and whether they are crouching.
The struct is used in the CharacterShootingComponent class to keep track of the player's weapon state.
| bool FPlayerWeaponState::bFiringWeapon = false |
| bool FPlayerWeaponState::bHasGun = false |
| bool FPlayerWeaponState::bIsAiming = false |
| bool FPlayerWeaponState::bIsCrouching = false |
| bool FPlayerWeaponState::bIsHolstered = false |
| bool FPlayerWeaponState::bIsReloading = false |
| bool FPlayerWeaponState::bIsWeaponInAutoMode = false |
| bool FPlayerWeaponState::bIsWeaponInBurstMode = false |
| bool FPlayerWeaponState::bIsWeaponInChargeMode = false |
| bool FPlayerWeaponState::bIsWeaponInSingleMode = false |