Changeset 9615 in orxonox.OLD for branches/proxy/src/world_entities/npcs
- Timestamp:
- Jul 30, 2006, 12:51:58 PM (18 years ago)
- Location:
- branches/proxy/src/world_entities/npcs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/npcs/network_turret.cc
r9613 r9615 29 29 #include "effects/explosion.h" 30 30 31 #include "weapons/ targeting_turret.h"31 #include "weapons/aiming_turret.h" 32 32 33 33 CREATE_FACTORY(NetworkTurret, CL_NETWORK_TURRET); … … 65 65 this->loadModel("models/ground_turret_#.obj", 5); 66 66 67 this->weapon = new TargetingTurret();67 this->weapon = new AimingTurret(); 68 68 this->weapon->loadModel("models/guns/turret2.obj", 10); 69 69 this->weapon->setParent(this); … … 117 117 diffVec = ( (*entity)->getAbsCoor() - this->getAbsCoor() ); 118 118 119 if ( diffVec.len() < 100 0 )//&& 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) 120 120 { 121 121 //if (this->getParent() != (*entity)) -
branches/proxy/src/world_entities/npcs/network_turret.h
r9610 r9615 9 9 #include "npcs/npc.h" 10 10 11 class TargetingTurret;11 class AimingTurret; 12 12 13 13 //! A Class to ... … … 42 42 private: 43 43 PNode weaponHolder; 44 TargetingTurret *weapon;44 AimingTurret *weapon; 45 45 46 46 int targetGroup;
Note: See TracChangeset
for help on using the changeset viewer.