- Timestamp:
- Feb 7, 2006, 8:56:57 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/ground_turret.cc
r7076 r7102 67 67 this->setHealth(300); 68 68 69 /* left = new Turret();70 left->setParent(this);71 left->setRelCoor(0,10,0); 72 right = new Turret();73 right->setParent(this);74 right->setRelCoor(0,10,0);*/69 this->weaponHolder[0].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 70 this->weaponHolder[1].addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 71 72 this->weaponHolder[0].setRelCoor(0,25,0); 73 this->weaponHolder[0].setParent(this); 74 this->weaponHolder[1].setParent(this); 75 75 } 76 76 … … 101 101 this->left->setRelCoor(0,10,-5); 102 102 this->left->requestAction( WA_ACTIVATE); 103 this->left->setParent(&this->weaponHolder[0]); 103 104 } 104 105 … … 112 113 this->right->setRelCoor(0,10,5); 113 114 this->left->requestAction( WA_ACTIVATE); 115 this->right->setParent(&this->weaponHolder[0]); 114 116 } 115 117 } -
trunk/src/world_entities/npcs/ground_turret.h
r7076 r7102 34 34 35 35 private: 36 PNode weaponHolder[2]; 36 37 Weapon *left, *right; 37 38 }; -
trunk/src/world_entities/power_ups/power_up.cc
r7077 r7102 47 47 this->pickupBuffer = NULL; 48 48 this->respawnBuffer = NULL; 49 50 this->collider = NULL; 49 51 } 50 52 … … 120 122 if(entity->isA(CL_EXTENDABLE)) 121 123 { 124 this->collider = entity; 122 125 if(dynamic_cast<Extendable*>(entity)->pickup(this)) 123 126 { … … 144 147 { 145 148 this->toList(OM_COMMON); 149 this->collider = NULL; 146 150 if (likely(this->respawnBuffer != NULL)) 147 151 this->soundSource.play(this->respawnBuffer); -
trunk/src/world_entities/power_ups/power_up.h
r7077 r7102 53 53 float respawnStart; 54 54 static const char* respawnTypes[]; 55 56 WorldEntity* collider; 55 57 }; 56 58 -
trunk/src/world_entities/projectiles/guided_missile.cc
r7086 r7102 45 45 this->setHealthMax(10); 46 46 this->lifeSpan = 4.0; 47 this->agility = 1;47 this->agility = 3.5; 48 48 this->maxVelocity = 75; 49 49 -
trunk/src/world_entities/weapons/weapon.cc
r6920 r7102 115 115 WorldEntity::loadParams(root); 116 116 117 LoadParam(root, "projectile", this, Weapon, setProjectileType )117 LoadParam(root, "projectile", this, Weapon, setProjectileTypeC) 118 118 .describe("Sets the name of the Projectile to load onto the Entity"); 119 119 … … 164 164 * @param projectile the Name of the Projectile. 165 165 */ 166 void Weapon::setProjectileType (const char* projectile)166 void Weapon::setProjectileTypeC(const char* projectile) 167 167 { 168 168 if (projectile == NULL) -
trunk/src/world_entities/weapons/weapon.h
r6920 r7102 111 111 inline long getCapability() const { return this->capability; }; 112 112 void setProjectileType(ClassID projectile); 113 void setProjectileType (const char* projectile);113 void setProjectileTypeC(const char* projectile); 114 114 /** @returns The projectile's classID */ 115 115 inline ClassID getProjectileType() { return this->projectile; };
Note: See TracChangeset
for help on using the changeset viewer.