Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 2:26:25 PM (13 years ago)
Author:
simonmie
Message:

SimpleRocket and Rocket are now BasicProjectiles - damage is working now correctly with these two. More spam messages removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gameimmersion/src/modules/weapons/projectiles/Rocket.cc

    r7848 r8533  
    4343#include "Scene.h"
    4444
     45#include "BasicProjectile.h"
     46
    4547namespace orxonox
    4648{
     
    5254        Constructor. Registers the object and initializes some default values.
    5355    */
    54     Rocket::Rocket(BaseObject* creator) : ControllableEntity(creator)
     56    Rocket::Rocket(BaseObject* creator) : ControllableEntity(creator), BasicProjectile()
    5557    {
    5658        RegisterObject(Rocket);// - register the Rocket class to the core
    5759
    5860        this->localAngularVelocity_ = 0;
    59         this->bDestroy_ = false;
     61//        this->bDestroy_ = false;
    6062        this->lifetime_ = 100;
    6163
     
    175177        if( GameMode::isMaster() )
    176178        {
    177             if( this->bDestroy_ )
     179            if( this->getBDestroy() )
    178180                this->destroy();
    179181
     
    183185    bool Rocket::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    184186    {
    185         if (!this->bDestroy_ && GameMode::isMaster())
     187        return BasicProjectile::basicCollidesAgainst(otherObject,contactPoint,this->owner_,this);
     188
     189/* * /        if (!this->bDestroy_ && GameMode::isMaster())
    186190        {
    187191            if (otherObject == this->owner_)
     
    216220//             this->destroy();
    217221        }
    218         return false;
     222/ * */        return false;
    219223    }
    220224
Note: See TracChangeset for help on using the changeset viewer.