Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (cloaker->getDistanceToTarget(unit) <= cloakRadius) {
- secondaryOrder_Cloak(unit);
- if (unit->id != 0){
- const LO_Header* shield_lo = shieldOverlays[unit->sprite->mainGraphic->id];
- u32 frameAngle = (unit->sprite->mainGraphic->direction - 124) / 8 % 32;
- Point8 offset = shield_lo->getOffset(unit->sprite->mainGraphic->direction, frameAngle);
- unit->sprite->createOverlay(ImageId::ShieldOverlay, offset.x, offset.y, unit->sprite->mainGraphic->direction);
- unit->damageHp(256);
- }
- IGNORE THE FACT THAT THERE SHOULD BE MORE CODE HERE
Advertisement
Add Comment
Please, Sign In to add comment