Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

turrets rock

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.