Staredit Network > Forums > Modding Discussion > Topic: Mind Control / Optical Flare targets can't be changed?
Mind Control / Optical Flare targets can't be changed?
Jun 14 2020, 11:08 am
By: IlyaSnopchenko  

Jun 14 2020, 11:08 am IlyaSnopchenko Post #1

The Curious

Greetings!

I have a problem when making my mod, as it appears that changing which types of units are affected by mind control by editing its properties in weapons.dat is not working. The same is apparently true for optical flare (and God only knows what other spells too, though I know Lockdown targets CAN be changed this way).

Anyone can tell me if it's true, or I'm just doing something stupid? And are there ways around that if it's really the game, not me? :)



Who am I, and why should I care?

Jun 16 2020, 8:40 pm Voyager7456 Post #2

Responsible for my own happiness? I can't even be responsible for my own breakfast

The targeting for those spells is hardcoded. You'll need a plugin.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Jun 16 2020, 9:00 pm IlyaSnopchenko Post #3

The Curious

Thanks, and lemme guess - there's none for 1.20+ :)



Who am I, and why should I care?

Jun 17 2020, 12:11 am Ultraviolet Post #4

Don't stop till you get enough

The wonderful world of modding SC: Remastered :P I'm much happier (although more limited) over here in EUD-land.




Jun 17 2020, 5:55 am IlyaSnopchenko Post #5

The Curious

It's no big deal for me, and I'll find a way around. After all, what we have now is already a lot more than I've ever dreamed about during the first mapmaking run, 15+ years ago. :)



Who am I, and why should I care?

Jun 19 2020, 8:59 am IlyaSnopchenko Post #6

The Curious

SOLVED thanks to Neiv's advice (who else can come to the rescue when a technical issue is brought up?)



Who am I, and why should I care?

Jun 19 2020, 10:59 am Neiv Post #7



(The solution was to enable weapon targeting flag in orders.dat. I'm surprised it even works with Mind Control due to it being hardcoded differently from other spells, but guess that at least some part of the code which checks those flags also is run for MC)



None.

Jun 19 2020, 11:10 am IlyaSnopchenko Post #8

The Curious

Yeah, it works entirely as I envisioned. Neiv, I just finished testing it and there are no hiccups, the robotic units are now untargetable by MC while all others work like a charm (pardon the pun). So you have my thanks again.

Post has been edited 1 time(s), last time on Jun 19 2020, 11:42 am by IlyaSnopchenko.



Who am I, and why should I care?

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2021-12-04. : 10:11 pm]
Ultraviolet -- DarkenedFantasies
DarkenedFantasies shouted: sraw531 It's misleading or incorrect by saying it's a brood war trigger. It's a "1.04 feature", only making it incompatible with the retail game version but it still works with both original and brood war 1.04+. If the trigger doesn't work for you, you messed something up.
ohh I see, still can have scm file, but it changes the format to SC hybrid map instead of just SC map
[2021-12-04. : 7:53 pm]
DarkenedFantasies -- sraw531
sraw531 shouted: anyone here know why alliance triggers seem to be broodwar specific according to scmdraft2?
It's misleading or incorrect by saying it's a brood war trigger. It's a "1.04 feature", only making it incompatible with the retail game version but it still works with both original and brood war 1.04+. If the trigger doesn't work for you, you messed something up.
[2021-12-04. : 4:34 am]
Slyence -- Ohh. Sneaky emote. Hmmmm
[2021-12-04. : 4:01 am]
lil-Inferno -- Slyence
Slyence shouted: Does anyone know if Voyager is still around?
he is but you'll have way better lucc finding him on SEN discord
[2021-12-04. : 3:04 am]
Ultraviolet -- Slyence
Slyence shouted: Sorry about all the reminiscing. Just brings back the good Ole days.
we don't do that here :shifty:
[2021-12-04. : 3:03 am]
Ultraviolet -- sraw531
sraw531 shouted: anyone here know why alliance triggers seem to be broodwar specific according to scmdraft2?
no idea why, but just confirmed through a small test that you're correct
[2021-12-04. : 3:01 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: NudeRaider *sigh* n
oh I didn't know wtf you were going for lol
[2021-12-04. : 2:43 am]
sraw531 -- literally just copied the trigger from the original map and changed the location name and it breaks...
[2021-12-04. : 2:33 am]
sraw531 -- trying to make a remake of Terran9, which has zerg and protoss who hate each other
[2021-12-04. : 2:32 am]
sraw531 -- anyone here know why alliance triggers seem to be broodwar specific according to scmdraft2?
Please log in to shout.


Members Online: Oh_Man, Roy