home *** CD-ROM | disk | FTP | other *** search
- #include "Laser.h"
-
- #include "Game.h"
- #include "log.h"
-
- Laser::Laser(Vehicle* vehicle, vec3_t mountPoint): Weapon(vehicle, mountPoint){
- this->type = GAME_WEAPON_LASER;
- this->name = "Laser";
- this->model = Game::preloadedGameMedia.laserModel;
-
- this->maxAmmo = 0;
- this->ammo = 0;
- this->ammoCosts = 0;
- this->maxEnergy = 30;
- this->energy = 30.0f;
- this->energyCosts = 5;
-
- fireIntervalMillis = 300;
-
- vectorInit3d(0.0f, -0.19f, 0.85f, muzzlePoint);
-
- this->animator = new Animator( *Game::preloadedGameMedia.laserAnimator );
- }
-
- void Laser::fire(){
- // if(!isReadyToFire())
- // return;
-
-
- // log("LASER FIRED!\n");
- // TODO: tja, mach mal...
- Weapon::fire();
- }
-
-