home *** CD-ROM | disk | FTP | other *** search
- #include "Plasmagun.h"
-
- #include "Game.h"
- #include "log.h"
-
- Plasmagun::Plasmagun(Vehicle* vehicle, vec3_t mountPoint): Weapon(vehicle, mountPoint){
- this->type = GAME_WEAPON_PLASMAGUN;
- this->name = "Plasmagun";
- this->model = Game::preloadedGameMedia.plasmagunModel;
-
- this->maxAmmo = 0;
- this->ammo = 0;
- this->ammoCosts = 0;
- this->maxEnergy = 50;
- this->energy = 50.0f;
- this->energyCosts = 5;
-
- fireIntervalMillis = 150;
- vectorInit3d(0.0f, -0.185f, 0.815f, muzzlePoint);
-
- this->animator = new Animator( *Game::preloadedGameMedia.plasmagunAnimator );
- }
-
- void Plasmagun::fire(){
- // if(!isReadyToFire())
- // return;
-
- // log("PLASMAGUN FIRED!\n");
- // TODO: tja, mach mal...
-
- Weapon::fire();
- }
-
-