2016-11-22 20:43:16 +00:00
|
|
|
#include "CWeaponMode.hpp"
|
2017-01-27 02:58:21 +00:00
|
|
|
#include "DataSpec/DNACommon/Tweaks/ITweakPlayerGun.hpp"
|
2016-11-22 20:43:16 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2017-01-27 02:58:21 +00:00
|
|
|
CWeaponMode::CWeaponMode(EWeaponType type, bool charged, bool comboed, bool instaKill)
|
2016-11-22 20:43:16 +00:00
|
|
|
: x0_weaponType(type)
|
2017-01-27 02:58:21 +00:00
|
|
|
, x4_24_charged(charged)
|
|
|
|
, x4_25_comboed(comboed)
|
|
|
|
, x4_26_instantKill(instaKill)
|
2016-11-22 20:43:16 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-12-22 19:57:21 +00:00
|
|
|
EWeaponType CWeaponMode::GetType() const
|
|
|
|
{
|
|
|
|
return x0_weaponType;
|
|
|
|
}
|
|
|
|
|
2016-11-22 20:43:16 +00:00
|
|
|
CWeaponMode CWeaponMode::Invalid()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::None);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Phazon()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Phazon);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Plasma()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Plasma);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Wave()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Wave);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::BoostBall()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::BoostBall);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Ice()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Ice);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Power()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Power);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CWeaponMode CWeaponMode::Bomb()
|
|
|
|
{
|
2017-01-15 03:59:37 +00:00
|
|
|
return CWeaponMode(EWeaponType::Bomb);
|
2016-11-22 20:43:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|