Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9181 in orxonox.OLD for branches/presentation/src


Ignore:
Timestamp:
Jul 5, 2006, 1:10:41 AM (18 years ago)
Author:
bensch
Message:

turrets rock

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/space_turret.cc

    r9180 r9181  
    6060{
    6161  this->setClassID(CL_SPACE_TURRET, "SpaceTurret");
    62   this->loadModel("models/ground_turret_#.obj", 5);
    63   this->loadModel("models/comet.obj", .5, 3);
     62  this->loadModel("models/ground_turret_#.obj", 7.5);
     63  this->loadModel("models/comet.obj", 1.0f, 3);
    6464  this->left = NULL;
    6565  this->right = NULL;
     
    100100    this->left->setParent(this);
    101101    this->left->toList(this->getOMListNumber());
    102     this->left->setRelCoor(0,10,-5);
     102    this->left->setRelCoor(0,15,-7.5);
    103103    this->left->requestAction( WA_ACTIVATE);
    104104    this->left->setParent(&this->weaponHolder[0]);
     
    112112    this->right->setParent(this);
    113113    this->right->toList(this->getOMListNumber());
    114     this->right->setRelCoor(0,10,5);
     114    this->right->setRelCoor(0,15,7.5);
    115115    this->left->requestAction( WA_ACTIVATE);
    116116    this->right->setParent(&this->weaponHolder[0]);
     
    126126  if(this->getHealth() > 0.0f && State::getPlayer() &&
    127127     State::getPlayer()->getPlayable() &&
    128      State::getPlayer()->getPlayable()->distance(this) < 120) // HACK
     128     State::getPlayer()->getPlayable()->distance(this) < 300) // HACK
    129129  {
    130130  if (likely(this->left != NULL))
     
    158158    this->getModel(3)->draw();
    159159  glPopMatrix();
    160 
     160/*
    161161  if (this->left != NULL)
    162162    this->left->draw();
    163163  if (this->right != NULL)
    164     this->right->draw();
     164    this->right->draw();*/
    165165}
    166166
     
    191191
    192192  this->toList(OM_DEAD);
     193
     194  if (this->left)
     195    this->left->toList(OM_DEAD);
     196  if (this->right)
     197    this->right->toList(OM_DEAD);
     198
    193199}
  • branches/presentation/src/world_entities/projectiles/guided_missile.cc

    r9162 r9181  
    3535  this->setClassID(CL_GUIDED_MISSILE, "GuidedMissile");
    3636
    37   this->loadModel("models/projectiles/orx-rocket.obj", .3);
     37  this->loadModel("models/projectiles/orx-rocket.obj", 2.0);
    3838  this->loadExplosionSound("sound/explosions/explosion_4.wav");
    3939
     
    8888    GuidedMissile::trailParticles->setLifeSpan(1.0, .3);
    8989    GuidedMissile::trailParticles->setRadius(0.0, .5);
    90     GuidedMissile::trailParticles->setRadius(0.2, 2.0);
    91     GuidedMissile::trailParticles->setRadius(.5, .8);
    92     GuidedMissile::trailParticles->setRadius(1.0, .8);
     90    GuidedMissile::trailParticles->setRadius(0.2, 4.0);
     91    GuidedMissile::trailParticles->setRadius(.5, 1.5);
     92    GuidedMissile::trailParticles->setRadius(1.0, 1.5);
    9393    GuidedMissile::trailParticles->setColor(0.0, 1,0,0,.7);
    9494    GuidedMissile::trailParticles->setColor(0.2, .8,.8,0,.5);
Note: See TracChangeset for help on using the changeset viewer.