home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / flashstrike / flashstrike.swf / scripts / frame_262 / DoAction.as < prev   
Encoding:
Text File  |  2006-02-03  |  338 b   |  16 lines

  1. if(_root.lives / _root.health * 100 == 100)
  2. {
  3.    _root.bonus = 1000;
  4. }
  5. else if(_root.lives / _root.health * 100 >= 50)
  6. {
  7.    _root.bonus = 500;
  8. }
  9. else
  10. {
  11.    _root.bonus = 0;
  12. }
  13. _root.value = math.round(_root.hits / _root.shots * 100);
  14. _root.accuracy = _root.value + "%";
  15. _root.kills = _root.kills * _root.value + _root.bonus;
  16.