Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 21, 2007, 1:37:21 AM (17 years ago)
Author:
nicolasc
Message:

added shield functionality, reverted paeddae's MP patch - does not work

File:
1 edited

Legend:

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

    r10749 r10758  
    283283  fw.normalize();
    284284  fw = fw * 100;
    285  
     285
    286286  Vector mp = this->getAbsCoor();
    287287  Vector op = mp + fw;
    288  
     288
    289289  Vector targetPos = State::getPlayer()->getPlayable()->getAbsCoor();
    290290  Vector dv = targetPos - this->getAbsCoor();
     
    292292  dv *= 100;
    293293  dv += mp;
    294  
     294
    295295  Vector spUp = this->getAbsDir().inverse().apply( this->getAbsDir().apply( Vector( 0, 1, 0 ) ) );
    296296  spUp.normalize();
    297297  spUp *= 100;
    298298  spUp += mp;
    299  
     299
    300300  Vector up = fw.cross( dv );
    301301  up += mp;
    302  
     302
    303303  //PRINTF(0)("DEBUG\n");
    304304  //mp.debug();
    305305  //op.debug();
    306  
     306
    307307  glMatrixMode(GL_MODELVIEW);
    308308  glPushMatrix();
Note: See TracChangeset for help on using the changeset viewer.