- Timestamp:
- Jan 24, 2007, 3:29:46 PM (18 years ago)
- Location:
- branches/playability/src/world_entities
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/effects/wobblegrid.cc
r10327 r10333 164 164 165 165 glPushAttrib(GL_ENABLE_BIT); 166 //glDisable(GL_LIGHTING);167 //glDisable(GL_FOG);166 glDisable(GL_LIGHTING); 167 glDisable(GL_FOG); 168 168 169 169 glMatrixMode(GL_MODELVIEW); … … 173 173 //glTranslatef(0,0,0); 174 174 this->material->select(); 175 176 glDisable(GL_BLEND); 177 glEnable( GL_ALPHA_TEST); 178 glAlphaFunc( GL_GEQUAL, .5); 175 179 176 180 glTranslatef (this->getAbsCoor ().x, … … 195 199 196 200 Vector view = this->getAbsCoor() - State::getCameraNode()->getAbsCoor(); 197 view.normalize();201 // view.normalize(); 198 202 199 203 Vector up = Vector(0, 1, 0); … … 203 207 // up = Vector (0, 0, 1); 204 208 205 Vector h = up.cross(view /*.getNormalized()*/);206 up = h.cross(view /*.getNormalized()*/);209 Vector h = up.cross(view.getNormalized()); 210 up = h.cross(view.getNormalized()); 207 211 Quaternion dir = Quaternion::lookAt( this->getAbsCoor(), this->getAbsCoor() + up, view); 208 212 // Quaternion dir = Quaternion::lookAt( Vector(), view, up); -
branches/playability/src/world_entities/projectiles/acid_splash.cc
r10328 r10333 55 55 this->grid->setParent( this); 56 56 57 // if (rand()/2 == 0) //!<Randomized Textrures 58 this->grid->setTexture( "maps/acid3.png"); 57 58 int rnd = rand()/3; 59 60 switch (rnd){ 61 case 0: 62 this->grid->setTexture( "maps/acid2.png"); 63 break; 64 case 1: 65 this->grid->setTexture( "maps/acid3.png"); 66 break; 67 case 2: 68 this->grid->setTexture( "maps/blub.png"); 69 break; 70 default: 71 this->grid->setTexture( "maps/acid2.png"); 72 } 73 // if (rand()/2 == 0) //!<Randomized Textrures 74 // this->grid->setTexture( "maps/acid3.png"); 59 75 // else 60 76 // this->grid->setTexture( "maps/blub.png"); 61 77 62 78 this->grid->toList(OM_ENVIRON); //this->getOMListNumber()); 63 //this->toList(OM_ENVIRON);79 this->toList(OM_ENVIRON); 64 80 } 65 81 … … 113 129 this->deactivate(); 114 130 115 return;131 // return; 116 132 117 133 //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); -
branches/playability/src/world_entities/projectiles/projectile_weapon.h
r10256 r10333 116 116 117 117 // FastFactory ff; 118 static FastFactory* fastFactory;118 // static FastFactory* fastFactory; 119 119 120 120 OrxSound::SoundSource soundSource; -
branches/playability/src/world_entities/projectiles/spike.cc
r10289 r10333 43 43 this->registerObject(this, Spike::_objectList); 44 44 45 this->loadModel("models/projectiles/spike.obj" );45 this->loadModel("models/projectiles/spike.obj", 2); 46 46 47 47 this->setMinEnergy(1); -
branches/playability/src/world_entities/projectiles/spike_ball.cc
r10286 r10333 130 130 this->launcher[tmp + i] = this->launcher[i] * (-1); 131 131 } 132 133 this->freeMode = false; 132 134 } 133 135 … … 157 159 void SpikeBall::blow() 158 160 { 159 updateFireDir(); 161 if ( this->freeMode ) 162 updateFireDir(); 160 163 161 164 Spike* pj = NULL; … … 258 261 float matrix[4][4]; 259 262 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 263 this->halo->draw(); 260 264 261 265 glRotatef(angle, this->getRotationAxis().x, this->getRotationAxis().y, this->getRotationAxis().z); … … 264 268 this->getModel()->draw(); 265 269 266 this->halo->draw();267 270 268 271 glPopMatrix(); -
branches/playability/src/world_entities/projectiles/spike_ball.h
r10289 r10333 61 61 float size; 62 62 63 bool freeMode; 64 63 65 }; 64 66 -
branches/playability/src/world_entities/space_ships/space_ship.cc
r10332 r10333 176 176 spike->setName( "SpikeThrower" ); 177 177 178 // Weapon* spike2 = new SpikeLauncher(); 179 // spike2->setName( "SpikeLauncher" ); 180 181 /* 178 182 179 Weapon* acid0 = new AcidLauncher(); 183 180 acid0->setName( "AcidSplasher" ); … … 185 182 Weapon* acid1 = new AcidLauncher(); 186 183 acid1->setName( "AcidSplasher" ); 187 */ 184 188 185 189 186 this->weaponMan.addWeapon( wpLeft1, 0, 0); … … 195 192 this->weaponMan.addWeapon( wpLeft3, 2, 4); 196 193 this->weaponMan.addWeapon( wpRight3, 2, 5); 197 194 /* 198 195 this->weaponMan.addWeapon( wpLeft1, 3, 0); 199 196 this->weaponMan.addWeapon( wpRight1, 3, 1); … … 204 201 this->weaponMan.addWeapon( wpLeft3, 3, 4); 205 202 this->weaponMan.addWeapon( wpRight3, 3, 5); 206 207 /* 208 this->weaponMan.addWeapon( acid0, 0, 6);209 this->weaponMan.addWeapon( acid1, 0, 7);210 */ 203 */ 204 205 this->weaponMan.addWeapon( acid0, 3, 0); 206 this->weaponMan.addWeapon( acid1, 3, 1); 207 211 208 212 209 this->secWeaponMan.addWeapon( cannon, 0, 2); … … 216 213 217 214 218 this->weaponMan.changeWeaponConfig( 0);215 this->weaponMan.changeWeaponConfig(3); 219 216 this->secWeaponMan.changeWeaponConfig(1); 220 217 221 curWeaponPrimary = 3;222 curWeaponSecondary = 0;218 curWeaponPrimary = 0; 219 curWeaponSecondary = 1; 223 220 224 221 Playable::weaponConfigChanged(); -
branches/playability/src/world_entities/weapons/acid_launcher.cc
r10298 r10333 83 83 animation1->setInfinity(ANIM_INF_CONSTANT); 84 84 animation2->setInfinity(ANIM_INF_CONSTANT); 85 85 */ 86 86 this->setStateDuration(WS_SHOOTING, .6); 87 87 this->setStateDuration(WS_RELOADING, 1.0f); 88 88 this->setStateDuration(WS_ACTIVATING, .4); 89 this->setStateDuration(WS_DEACTIVATING, .4); */89 this->setStateDuration(WS_DEACTIVATING, .4); 90 90 91 91 this->setEnergyMax(100); … … 96 96 this->setProjectileTypeC("AcidSplash"); 97 97 98 this->loadModel("models/guns/turret1.obj", 1.0);98 // this->loadModel("models/guns/turret1.obj", 1.0); 99 99 100 this->setEmissionPoint( 1.0, 0, 0);101 this->getProjectileFactory()->prepare( 50);100 this->setEmissionPoint(2.0, 0, 0); 101 this->getProjectileFactory()->prepare(100); 102 102 103 103 this->setActionSound(WA_SHOOT, "sound/explosions/explosion_1.wav");
Note: See TracChangeset
for help on using the changeset viewer.