Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2006, 12:51:58 PM (18 years ago)
Author:
bensch
Message:

AimingTurret is better suited for network, as the projectiles are not connected to anything.
also it makes the game a little bit easier, and more fun as the turrets move around :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/world_entities/npcs/network_turret.cc

    r9613 r9615  
    2929#include "effects/explosion.h"
    3030
    31 #include "weapons/targeting_turret.h"
     31#include "weapons/aiming_turret.h"
    3232
    3333CREATE_FACTORY(NetworkTurret, CL_NETWORK_TURRET);
     
    6565  this->loadModel("models/ground_turret_#.obj", 5);
    6666
    67   this->weapon = new TargetingTurret();
     67  this->weapon = new AimingTurret();
    6868  this->weapon->loadModel("models/guns/turret2.obj", 10);
    6969  this->weapon->setParent(this);
     
    117117    diffVec = ( (*entity)->getAbsCoor() - this->getAbsCoor() );
    118118
    119     if ( diffVec.len() < 1000 )//&&  acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) )  < angle)
     119    if ( diffVec.len() < 100.0 )//&&  acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) )  < angle)
    120120    {
    121121      //if (this->getParent() != (*entity))
Note: See TracChangeset for help on using the changeset viewer.