Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2014, 4:04:53 PM (11 years ago)
Author:
muemart
Message:

Delete the old turret templates and make new ones. Adjust the weapon positions for the turret. Add a proxy controller for teams and targets. Add comments

Location:
code/branches/turretFS14/data/levels
Files:
1 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turretFS14/data/levels/includes/weaponSettingsTurret.oxi

    r9664 r10049  
    1111        </links>
    1212        <Weapon>
    13           <attached>
    14             <Model mesh="sphere.mesh" position="3,3,-2.2" scale=0.6 />
    15           </attached>
    16           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 3, 3,-2.2" />
    17           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 3,-3,-2.2" />
    18           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-3, 3,-2.2" />
    19           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-3,-3,-2.2" />
     13          <!-- <attached>
     14            <Model mesh="sphere.mesh" position="1.7,1.7,-24.5" scale=0.6 />
     15          </attached> -->
     16          <HsW01 mode=0 munitionpershot=0 delay=0 damage=0 material="Flares/point_lensflare" muzzleoffset="1.7, 1.7,-30" />
     17          <HsW01 mode=0 munitionpershot=0 delay=0 damage=0 material="Flares/point_lensflare" muzzleoffset="1.7, -1.7,-30" />
     18          <HsW01 mode=0 munitionpershot=0 delay=0 damage=0 material="Flares/point_lensflare" muzzleoffset="-1.7, 1.7,-30" />
     19          <HsW01 mode=0 munitionpershot=0 delay=0 damage=0 material="Flares/point_lensflare" muzzleoffset="-1.7, -1.7,-30" />
    2020        </Weapon>
    2121      </WeaponPack>
  • code/branches/turretFS14/data/levels/turretTest.oxw

    r10044 r10049  
    1616<?lua
    1717  include("templates/spaceshipAssff.oxt")
    18   include("templates/spaceshipPirate.oxt")
    19   include("templates/spaceshipTurretTest.oxt")
     18  include("templates/spaceshipTransporter.oxt")
     19  include("templates/standardTurret.oxt")
    2020?>
    2121
     
    3333    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    3434
    35 
    36 <!-- <SpaceShip position="-100,0,0" yaw=0 pitch=0>
    37     <attached>
    38         <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
    39         <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
    40         <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
    41         <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
    42         <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
    43 
    44         <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
    45             <templates>
    46               <Template link=spaceshipturrettest />
    47             </templates>
    48             <controller>
    49               <TurretController team=10 />
    50             </controller>
    51         </Turret>
    52 
    53         <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
    54 
    55         <Model mesh="sphere.mesh" position="0,25,0" scale=1/>
    56 
    57         <Model mesh="sphere.mesh" position="0,0,30" scale=1/>
    58 
    59     </attached>
    60 </SpaceShip> -->
    61 
    62 
    63 <StaticEntity position="100,0,0">
     35<SpaceShip>
    6436  <attached>
    65     <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
    66 
    67     <Model mesh="sphere.mesh" position="0,25,0" scale=1.5/>
    68 
    69     <Model mesh="sphere.mesh" position="0,0,30" scale=2/>
     37    <Turret position="10,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
     38      <templates>
     39        <Template link=standardturret />
     40      </templates>
     41    </Turret>   
     42    <Turret position="-10,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
     43      <templates>
     44        <Template link=standardturret />
     45      </templates>
     46    </Turret>   
     47    <Turret position="0,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
     48      <templates>
     49        <Template link=standardturret />
     50      </templates>
     51    </Turret>   
    7052  </attached>
    71  
    72 </StaticEntity>
    73 <SpaceShip position="100,0,0" yaw=0 pitch=90>
    74     <attached>
    75         <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
    76         <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
    77         <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
    78         <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
    79         <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
    80 
    81         <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
    82             <templates>
    83               <Template link=spaceshipturrettest />
    84             </templates>
    85             <controller>
    86               <TurretController team=10 />
    87             </controller>
    88         </Turret>
    89 
    90 
    91 
    92     </attached>
     53  <templates>
     54    <Template link=spaceshipassff />
     55  </templates>
     56<!--   <controller>
     57    <AIController />
     58  </controller> -->
    9359</SpaceShip>
    9460
Note: See TracChangeset for help on using the changeset viewer.