Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2015, 7:47:39 PM (9 years ago)
Author:
fvultier
Message:

bug in the WeaponHUD fixed.

Location:
code/branches/fabienHS15/src/modules/weapons
Files:
4 edited

Legend:

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

    r10622 r10794  
    7676            Model* model = new Model(this->getContext());
    7777            model->setMeshSource("rocket.mesh");
    78             model->scale(0.7f);
     78            model->scale(1.0f);
    7979            this->attach(model);
    8080
     
    187187        SUPER(Rocket, tick, dt);
    188188
     189        orxout() << "Rocket::tick" << getScale() << endl;
     190
    189191        if( this->hasLocalController() )
    190192        {
  • code/branches/fabienHS15/src/modules/weapons/projectiles/SimpleRocket.cc

    r10299 r10794  
    7676            Model* model = new Model(this->getContext());
    7777            model->setMeshSource("rocket.mesh");
    78             model->scale(0.7f);
     78            model->scale(1.0f);
    7979            this->attach(model);
    8080
     
    116116    {
    117117        SUPER(SimpleRocket, tick, dt);
     118
     119        orxout() << "SimpleRocket::tick" << getScale() << endl;
    118120
    119121        if (GameMode::isMaster())
  • code/branches/fabienHS15/src/modules/weapons/weaponmodes/RocketFire.cc

    r10688 r10794  
    7979        rocket->setPosition(this->getMuzzlePosition());
    8080        rocket->setVelocity(this->getMuzzleDirection() * this->speed_);
    81         rocket->scale(2);
     81        rocket->scale(1.0f);
    8282
    8383        rocket->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
  • code/branches/fabienHS15/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r10688 r10794  
    8585        rocket->setVelocity(this->getMuzzleDirection()*this->speed_);
    8686        rocket->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
     87        rocket->scale(1.0f);
    8788
    8889        rocket->setDamage(this->damage_);
Note: See TracChangeset for help on using the changeset viewer.