Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 12:01:11 AM (18 years ago)
Author:
patrick
Message:

fps weapon work

Location:
branches/single_player_map/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/creatures/fps_player.cc

    r8890 r8891  
    117117
    118118//   this->addWeapon(wpLeft, 1, 0);
    119   this->addWeapon(wpRight,1 ,1);
     119  this->addWeapon(wpRight,1, 0);
    120120  this->getWeaponManager().changeWeaponConfig(1);
    121121
    122122  this->getWeaponManager().setSlotCount(2);
    123   this->getWeaponManager().setSlotPosition(0, Vector(-0.5, .2, -1.9));
     123  this->getWeaponManager().setSlotPosition(0, Vector(0.0, 5.0, 0.0));
     124  this->getWeaponManager().setSlotDirection(1, Quaternion(M_PI_4*.5, Vector(0,1,0)));
    124125  this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    125126  this->getWeaponManager().setSlotPosition(1, Vector(-0.5, .2, 1.9));
  • branches/single_player_map/src/world_entities/weapons/fps_sniper_rifle.cc

    r8890 r8891  
    7474  this->setClassID(CL_FPS_SNIPER_RIFLE, "FPSSniperRifle");
    7575
    76 //  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
    77 
    78   this->loadModel("models/guns/fps_sniper_rifle.obj");
     76  this->loadModel("models/guns/fps_sniper_rifle.obj", 0.1);
    7977
    8078  this->setStateDuration(WS_SHOOTING, .1);
Note: See TracChangeset for help on using the changeset viewer.