Changeset 9862
- Timestamp:
- Dec 2, 2013, 4:42:46 PM (11 years ago)
- Location:
- code/branches/invaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/data/levels/includes/invaderWeapon.oxi
r9859 r9862 14 14 </links> 15 15 <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" /> 17 17 <!--InvaderWeapon mode=0 munitionpershot=0 delay=0 18 18 … … 22 22 </Weapon> 23 23 <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" /> 25 25 <!--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" /--> 26 26 </Weapon> -
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9859 r9862 56 56 if (player != NULL) 57 57 { 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); 59 59 // if (newZ < 0) 60 60 // newZ = (-100 < newZ)?-100:newZ;
Note: See TracChangeset
for help on using the changeset viewer.