Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2006, 4:47:06 PM (18 years ago)
Author:
marcscha
Message:

little modifications to swarm launcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10022 r10023  
    2626#include "weapons/medium_blaster.h"
    2727#include "weapons/heavy_blaster.h"
    28 #include "weapons/swarm_missile.h"
     28#include "weapons/swarm_launcher.h"
    2929#include "weapons/boomerang_gun.h"
    3030#include "weapons/turret.h"
     
    154154  wpLeft2->setName("Medium Blaster Left");
    155155
    156   Weapon* wpRight3 = new HeavyBlaster ();
     156/*  Weapon* wpRight3 = new HeavyBlaster ();
    157157  wpRight3->setName("Heavy Blaster Right");
    158158  Weapon* wpLeft3 = new HeavyBlaster ();
    159   wpLeft3->setName("Heavy Blaster Left");
    160 
    161   Weapon* cannon = new SwarmMissile();
    162   cannon->setName("Swarm Missile");
     159  wpLeft3->setName("Heavy Blaster Left");*/
     160
     161  Weapon* cannon = new SwarmLauncher();
     162  cannon->setName("SwarmLauncher");
    163163 
    164164
     
    168168  this->weaponMan.addWeapon( wpLeft2, 0, 2);
    169169  this->weaponMan.addWeapon( wpRight2, 0, 3);
    170   this->weaponMan.addWeapon( wpLeft3, 0, 4);
    171   this->weaponMan.addWeapon( wpRight3, 0, 5);
    172 
    173   this->secWeaponMan.addWeapon( cannon, 0, 0);
     170/*  this->weaponMan.addWeapon( wpLeft3, 0, 4);
     171  this->weaponMan.addWeapon( wpRight3, 0, 5);*/
     172
     173  this->secWeaponMan.addWeapon( cannon, 1, 0);
    174174
    175175  this->weaponMan.changeWeaponConfig(0);
     176  this->secWeaponMan.changeWeaponConfig(1);
    176177
    177178  wpRight1->requestAction(WA_ACTIVATE);
     
    179180  wpRight2->requestAction(WA_ACTIVATE);
    180181  wpLeft2->requestAction(WA_ACTIVATE);
    181   wpRight3->requestAction(WA_ACTIVATE);
    182   wpLeft3->requestAction(WA_ACTIVATE);
     182/*  wpRight3->requestAction(WA_ACTIVATE);
     183  wpLeft3->requestAction(WA_ACTIVATE);*/
    183184
    184185  cannon->requestAction(WA_ACTIVATE);
     
    369370  registerVar( new SynchronizeableFloat( &cameraLook, &cameraLook, "cameraLook", PERMISSION_OWNER ) );
    370371  registerVar( new SynchronizeableFloat( &rotation, &rotation, "rotation", PERMISSION_OWNER ) );
     372  registerVar( new SynchronizeableBool( &bFire, &bFire, "bSecFire", PERMISSION_OWNER));
    371373
    372374  registerVar( new SynchronizeableVector( &velocity, &velocity, "velocity", PERMISSION_MASTER_SERVER ) );
Note: See TracChangeset for help on using the changeset viewer.