Jump to content


CrancK

Member Since 04 Nov 2018
Offline Last Active Nov 17 2018 09:47 AM

Topics I've Started

Heroes mod applying modifiers only to single unit in squad?

04 November 2018 - 12:11 PM

So a long long time ago,

 

i played with cuttershane's heroes mod, and it was awesome

later with the soulrpg one (which is the one from dowai i think?)

 

now i always wanted to change it back to be unlimited levels, which back in day i couldnt figure out how

but i've recently found my wh40k urge again, and dow1 still is the best one, so i took another stab at it.

 

This time i managed to get infinite levels in, i also changed some other things and just generally fucking about with the code.

 

However, i feel like i hit a snag which i cannot find the information on anywhere.

 

As the title says, as far as i can tell, by seeing the range and speed of a single unit in a high-level squad, but the rest of the squad being absolute trash still

i get the impression that the Modifier_ApplyToEntity function or the modifier created with Modifier_Create only applies any of the buffs to a single unit in a squad

 

now ofcourse this works fine for heroes and single units and for the default heroes mod with max 7-10 levels it's likely fine aswell.

But it starts to get really noticeable when a unit has had like 30+ levels and one dude is racing ahead of its squad or can shoot further than anyone else in his squad

(also single superhealthy dudes in a squad where all his mates keep dying, must be agony for that one dude :D , truly the highlander )

 

Now in the hope that there's still someone here who remembers when cuttershanes mod was changed to heroes mod and thus has experience and knowledge about the inner workings of the scar functions and/or differences between cuttershanes version and dowai's version.

Tho perhaps my memory is simply faulty and cuttershanes version also had this problem, since i can't really find much difference in the way he applies the modifers in comparison the the dowai version

but ye, imma hoping there's people here who have the knowledge i seek

 

Also i can't really find any usefull functions in the scardoc which may lead me to be able to check a squads entity ids per (alive) unit

(tho to be fair i will just have to do some more testing, also i think i have an old scardoc since some functions like the way the unit level is shown (UI_ShowCount) isnt in the scardoc i have)

 

I'm thinking, if i can somehow figure out all the entity id's of units within a squad, i can make an egroup and use ModifierUtil_ApplyToEGroup or something similar, hell even if it's just a for loop with all the entity id's

my theory being that applytoentity only targets a single unit in a squad, thus needing a way to target them all

 

So ye, anyone here perhaps have any idea's to point me in the right direction?

perhaps my train of thought is wrong and entity and squads are more interchangeable then i think?

 

Would love any and all input