home *** CD-ROM | disk | FTP | other *** search
- #include "Railgun.h"
-
- #include "Game.h"
- #include "log.h"
-
- Railgun::Railgun(Vehicle* vehicle, vec3_t mountPoint): Weapon(vehicle, mountPoint){
- this->type = GAME_WEAPON_RAILGUN;
- this->name = "Railgun";
- this->model = Game::preloadedGameMedia.railgunModel;
-
- this->maxAmmo = 30;
- this->ammo = 30;
- this->ammoCosts = 1;
- this->maxEnergy = 0;//70;
- this->energy = 0.0f;//70.0f;
- this->energyCosts = 0;//10;
-
- fireIntervalMillis = 750;
- vectorInit3d(0.0f, -0.195f, 0.9f, muzzlePoint);
-
- this->animator = new Animator( *Game::preloadedGameMedia.railgunAnimator );
- }
-
- void Railgun::fire(){
- // if(!isReadyToFire())
- // return;
-
- // log("RAILGUN FIRED!\n");
-
- Weapon::fire();
- // TODO: tja, mach mal...
- }
-
-