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? :)



Trial and error... mostly error.

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+ :)



Trial and error... mostly error.

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



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. :)



Trial and error... mostly error.

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?)



Trial and error... mostly error.

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.



Trial and error... mostly error.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
Please log in to shout.


Members Online: Ultraviolet, Roy, NudeRaider