Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9862 for code


Ignore:
Timestamp:
Dec 2, 2013, 4:42:46 PM (11 years ago)
Author:
zifloria
Message:

invader almost done

Location:
code/branches/invaders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/data/levels/includes/invaderWeapon.oxi

    r9859 r9862  
    1414        </links>
    1515        <Weapon>
    16           <InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.6,-2" projectileMesh="cokebottle.mesh" />
     16          <InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.6,-2" projectileMesh="laserbeam.mesh" />
    1717          <!--InvaderWeapon mode=0 munitionpershot=0 delay=0   
    1818
     
    2222        </Weapon>
    2323        <Weapon>
    24           <InvaderWeapon mode=0 munitionpershot=0 delay=0     damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 1.6, 1.3, -2.0" projectileMesh="cokebottle.mesh" />
     24          <InvaderWeapon mode=0 munitionpershot=0 delay=0     damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 1.6, 1.3, -2.0" projectileMesh="laserbeam.mesh" />
    2525          <!--InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-0.1, 1.6, -2.0" projectileMesh="LaserBeam.mesh" /-->
    2626        </Weapon>
  • code/branches/invaders/src/modules/invader/InvaderEnemy.cc

    r9859 r9862  
    5656        if (player != NULL)
    5757        {
    58             float newZ = abs(getPosition().x - player->getPosition().x) * (player->getPosition().z - getPosition().z);
     58            float newZ = 2/(pow(abs(getPosition().x - player->getPosition().x) * 0.01, 2) + 1) * (player->getPosition().z - getPosition().z);
    5959            // if (newZ < 0)
    6060            //     newZ = (-100 < newZ)?-100:newZ;
Note: See TracChangeset for help on using the changeset viewer.