Staredit Network > Forums > Modding Assistance > Topic: (help pls) Feedback remove shields
(help pls) Feedback remove shields
Nov 13 2018, 10:29 pm
By: Lagi  

Nov 13 2018, 10:29 pm Lagi Post #1



my Lords, if you find some time

I want Dark Archon Feedback spell also to target all protoss, and remove their shields, like targeted EMP (how to affect with energy+shielded protoss unit? I dont know, can be double damage i guess. edit: first deal damage, then zeroing shields)

here is the Feedback_spell.cpp (original, not yet massacred by me ^^ )

I can not go through the purple part (I think). It force my Darkon to choose energized victim :-(
void orders_Feedback(CUnit* unit) {

CUnit* target = unit->orderTarget.unit;

if(
target != NULL &&
units_dat::BaseProperty[target->id] & UnitProperty::Spellcaster &&
!(target->status & UnitStatus::IsHallucination)
)
{

u16 techCost;
int sightRange = unit->getSightRange(true);

if(
ordersSpell_Sub_4926D0(
unit,
TechId::Feedback,
&techCost,
sightRange * 32,
0x532 //Must target units with energy
)

)
{

if(target->status & UnitStatus::IsHallucination) {
u8 overlaySize = hasOverlay(target);
replaceFeedbackSprite(target,overlaySize + SpriteId::Feedback_Hit_Small);
unit->spendUnitEnergy(techCost);
target->remove();
unit->orderToIdle();
}
else { //F6DE3

if(target->energy <= 0)
unit->orderToIdle();
else {

target->damageWith(target->energy,WeaponId::Feedback,unit,unit->playerId,1,1);
target->energy = 0;
unit->spendUnitEnergy(techCost);
scbw::playSound(SoundId::Protoss_Darchon_feedback_wav,target);
...


Post has been edited 2 time(s), last time on Nov 14 2018, 8:24 am by Lagi.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:23 am]
Wing Zero -- Its awesome
[03:23 am]
Wing Zero -- Canadian cookies smell like maple syrup
[03:08 am]
jjf28 -- well I'm satisfied enough to leave it http://www.staredit.net/topic/17877/ if anyone interested gets lost somewhere I'll be happy to update the guide
[09:14 pm]
Suicidal Insanity -- science, such as at what temperature do you cook a steak?
[08:04 pm]
jjf28 -- it's where we all raid Heinermann's apartment for Canadian snacks and perform science o.o
[08:02 pm]
dumbducky -- Also wtf is SENCon?
[08:02 pm]
dumbducky -- KrayZee
KrayZee shouted: What happened to his latova website?
THe people demand answers
[11:02 am]
Pr0nogo -- woah, you can't call me an h for being g
[10:06 am]
Suicidal Insanity -- If you are going there .... and kids :P
[06:55 am]
IlyaSnopchenko -- And chicks
Please log in to shout.


Members Online: rompo43253, 4alicec4723ec7, Roy, Doodan