home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / Plasmagun.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-01-17  |  732 b   |  34 lines

  1. #include "Plasmagun.h"
  2.  
  3. #include "Game.h"
  4. #include "log.h"
  5.  
  6. Plasmagun::Plasmagun(Vehicle* vehicle, vec3_t mountPoint): Weapon(vehicle, mountPoint){
  7.     this->type = GAME_WEAPON_PLASMAGUN;
  8.     this->name = "Plasmagun";
  9.     this->model = Game::preloadedGameMedia.plasmagunModel;
  10.  
  11.     this->maxAmmo = 0;
  12.     this->ammo = 0;
  13.     this->ammoCosts = 0;
  14.     this->maxEnergy = 50;
  15.     this->energy = 50.0f;
  16.     this->energyCosts = 5;
  17.  
  18.     fireIntervalMillis = 150;
  19.     vectorInit3d(0.0f, -0.185f, 0.815f, muzzlePoint);
  20.  
  21.     this->animator = new Animator( *Game::preloadedGameMedia.plasmagunAnimator );
  22. }
  23.  
  24. void Plasmagun::fire(){
  25. //    if(!isReadyToFire())
  26. //        return;
  27.  
  28. //    log("PLASMAGUN FIRED!\n");
  29.     // TODO: tja, mach mal...
  30.  
  31.     Weapon::fire();
  32. }
  33.  
  34.