Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2007, 6:23:04 PM (18 years ago)
Author:
nicolasc
Message:

Fixed Wooblegrid, transparancy problem (acid splashes) still exists

File:
1 edited

Legend:

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

    r10297 r10298  
    2929#include "weapons/spike_launcher.h"
    3030#include "weapons/spike_thrower.h"
     31#include "weapons/acid_launcher.h"
    3132#include "weapons/boomerang_gun.h"
    3233#include "weapons/turret.h"
     
    178179//  spike2->setName( "SpikeLauncher" );
    179180
     181  Weapon* acid0 = new AcidLauncher();
     182  acid0->setName( "AcidSplasher" );
     183
     184  Weapon* acid1 = new AcidLauncher();
     185  acid1->setName( "AcidSplasher" );
     186
    180187  this->weaponMan.addWeapon( wpLeft1, 0, 0);
    181188  this->weaponMan.addWeapon( wpRight1, 0, 1);
     
    196203  this->weaponMan.addWeapon( wpRight3, 3, 5);
    197204
    198   this->secWeaponMan.addWeapon( cannon, 0, 0);
    199   this->secWeaponMan.addWeapon( spike, 1, 1);
    200 //  this->secWeaponMan.addWeapon( spike2, 2, 2);
    201 
    202 
    203   this->weaponMan.changeWeaponConfig(3);
     205  this->weaponMan.addWeapon( acid0, 0, 6);
     206  this->weaponMan.addWeapon( acid1, 0, 7);
     207
     208  this->secWeaponMan.addWeapon( cannon, 0, 2);
     209  this->secWeaponMan.addWeapon( spike, 1, 3);
     210//   this->secWeaponMan.addWeapon( acid0, 2, 2);
     211//   this->secWeaponMan.addWeapon( acid1, 2, 3);
     212
     213
     214  this->weaponMan.changeWeaponConfig(0);
    204215  this->secWeaponMan.changeWeaponConfig(1);
    205216
     
    236247
    237248  bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false;
    238  
    239249
    240250  this->setHealthMax(shieldMax);
     
    288298  this->secWeaponMan.setParentEntity( this);
    289299
    290   this->weaponMan.setSlotCount(6);
     300  this->weaponMan.setSlotCount(8);
    291301
    292302  this->weaponMan.setSlotPosition(0, Vector(0.0, 0, -3.0));
     
    307317  this->weaponMan.setSlotPosition(5, Vector(1.5, 0, -.5));
    308318  this->weaponMan.setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
     319
     320  this->weaponMan.setSlotPosition(6, Vector(0.5, 0, 2.5));
     321  this->weaponMan.setSlotDirection(6, Quaternion(-M_PI_4*.5+M_PI, Vector(1,0,0)));
     322
     323  this->weaponMan.setSlotPosition(7, Vector(0.5, 0, -2.5));
     324  this->weaponMan.setSlotDirection(7, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
    309325
    310326  this->secWeaponMan.setSlotCount(6);
Note: See TracChangeset for help on using the changeset viewer.