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.



My Projects:

Impossible Ultraviolet | Impossible UV2 | Impossible UV3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

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.
[12:30 am]
ClansAreForGays -- When you join a pub lobby because you see 7/8 players, but then realize host is bating you with computers. :flamer: :flamer:
[2024-10-30. : 11:48 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-10-30. : 6:24 pm]
Ultraviolet -- :wob:
[2024-10-29. : 4:33 pm]
Vrael -- :wob:
[2024-10-29. : 1:32 pm]
Zoan -- :wob:
[2024-10-28. : 5:21 pm]
Ultraviolet -- :wob:
[2024-10-27. : 4:34 pm]
jjf28 -- :wob:
[2024-10-27. : 9:01 am]
Zycorax -- :wob:
[2024-10-27. : 3:31 am]
RIVE -- :wob:
[2024-10-26. : 7:12 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: lil-Inferno