shooter/weapon/Ak47.cpp

19 lines
495 B
C++
Raw Normal View History

2021-09-13 15:53:43 +03:00
//
// Created by Иван Ильин on 02.06.2021.
//
2021-10-09 13:41:12 +03:00
#include "../engine/ResourceManager.h"
2021-09-13 15:53:43 +03:00
#include "Ak47.h"
2021-10-16 20:22:55 +03:00
#include "../ShooterConsts.h"
2021-09-13 15:53:43 +03:00
using namespace std;
2021-10-22 19:42:32 +03:00
Ak47::Ak47(int ammo, const std::string& weaponName) : Weapon(weaponName, ShooterConsts::AK47_OBJ, Vec3D{3, 3, 3}, Vec3D{-2.2, 1.0, 1.3}, Vec3D{0, Consts::PI, 0}) {
2021-10-17 19:38:16 +03:00
fireSound = ShooterConsts::AK47_FIRE_SOUND;
reloadSound = ShooterConsts::AK47_RELOAD_SOUND;
2021-09-13 15:53:43 +03:00
_stockAmmo = ammo - _clipCapacity;
_fireDelay = 0.1;
}