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?
Trial and error... mostly error.
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.
Thanks, and lemme guess - there's none for 1.20+
Trial and error... mostly error.
The wonderful world of modding SC: Remastered
I'm much happier (although more limited) over here in EUD-land.
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.
Trial and error... mostly error.
SOLVED thanks to Neiv's advice (who else can come to the rescue when a technical issue is brought up?)
Trial and error... mostly error.
(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.
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.
Trial and error... mostly error.