Guest User

Untitled

a guest
Feb 24th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. if (cloaker->getDistanceToTarget(unit) <= cloakRadius) {
  2. secondaryOrder_Cloak(unit);
  3.  
  4. if (unit->id != 0){
  5.  
  6. const LO_Header* shield_lo = shieldOverlays[unit->sprite->mainGraphic->id];
  7. u32 frameAngle = (unit->sprite->mainGraphic->direction - 124) / 8 % 32;
  8. Point8 offset = shield_lo->getOffset(unit->sprite->mainGraphic->direction, frameAngle);
  9. unit->sprite->createOverlay(ImageId::ShieldOverlay, offset.x, offset.y, unit->sprite->mainGraphic->direction);
  10. unit->damageHp(256);
  11. }
  12.  
  13. IGNORE THE FACT THAT THERE SHOULD BE MORE CODE HERE
Advertisement
Add Comment
Please, Sign In to add comment