Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11897


Ignore:
Timestamp:
Apr 20, 2018, 12:47:25 PM (6 years ago)
Author:
dreherm
Message:

Better controll of player

Location:
code/branches/3DPacman_FS18
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/data/levels/3DPacman.oxw

    r11896 r11897  
    2828
    2929    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    30     <SpawnPoint team=0 position="0,10,245" lookat="0,0,0" spawnclass=SpaceShip pawndesign=PacmanGelb />
     30    <SpawnPoint team=0 position="0,10,245" lookat="0,0,0" spawnclass=PacmanGelb pawndesign=PacmanGelb />
    3131
    3232
  • code/branches/3DPacman_FS18/data/levels/templates/PacmanGelb.oxt

    r11862 r11897  
    3030   boostCooldownDuration = 10
    3131
    32    shakeFrequency = 15
    33    shakeAmplitude = 6
     32   shakeFrequency = 0
     33   shakeAmplitude = 0
    3434
    3535   collisionType     = "dynamic"
     
    4343    </engines>
    4444    <attached>
    45       <Model position="0,0,0" yaw=180 pitch=0 roll=0 scale=7 mesh="PacmanGelb.mesh" />
     45      <Model position="0,0,0" yaw=180 pitch=0 roll=0 scale=5 mesh="PacmanGelb.mesh" />
     46<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
     47<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
     48<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
     49<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
    4650    </attached>
    4751    <collisionShapes>
    48       <BoxCollisionShape position="0,0,0" halfExtents="1,1,1" />
     52      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
     53      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
     54      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
     55      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
    4956    </collisionShapes>
    5057    <explosion>
     
    6976  <PacmanGelb>
    7077    <camerapositions>
    71       <CameraPosition position="0,0, 60" drag=false mouselook=true />
     78      <CameraPosition position="0,7, 5" drag=true mouselook=true />
    7279    </camerapositions>
    7380  </PacmanGelb>
     
    7683<Template name=spaceshipescortengine baseclass=MultiStateEngine>
    7784  <MultiStateEngine
    78    boostfactor    = 2.2
     85   boostfactor    = 1.0
    7986
    80    speedfront     = 200
     87   speedfront     = 100
    8188   speedback      =  70
    82    speedleftright =  70
    83    speedupdown    =  0
     89   speedleftright =  5
     90   speedupdown    =  70
    8491
    8592   defEngineSndNormal = "sounds/Engine_low.ogg"
    8693   defEngineSndBoost = "sounds/Engine_high.ogg"
    8794
    88    accelerationfront     = 700
    89    accelerationbrake     = 700
    90    accelerationback      =  125
    91    accelerationleftright =  125
    92    accelerationupdown    =  0
     95   accelerationfront     = 50
     96   accelerationbrake     = 50
     97   accelerationback      =  50
     98   accelerationleftright =  5
     99   accelerationupdown    =  50
    93100  >
     101    <EffectContainer condition="idle">
     102      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
     103       />
     104      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=150 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
     105      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
     106    </EffectContainer>
     107    <EffectContainer condition="not idle">
     108      <FadingBillboard mainstate=activity active=false scale=0.09 position="12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
     109      <FadingBillboard mainstate=activity active=false scale=0.09 position="-12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
     110    </EffectContainer>
     111    <EffectContainer condition="normal or brake">
     112
     113    </EffectContainer>
     114    <EffectContainer condition="normal or boost">
     115      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=5 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     116      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     117    </EffectContainer>
    94118
    95119  </MultiStateEngine>
  • code/branches/3DPacman_FS18/src/modules/Pacman/PacmanGelb.h

    r11896 r11897  
    5353            //no rotation
    5454            //virtual void rotateYaw(const Vector2& value) override{};
    55             //virtual void rotateYaw(const Vector2& value) override{};
     55            virtual void rotatePitch(const Vector2& value) override{};
    5656
    5757        private:
Note: See TracChangeset for help on using the changeset viewer.