Jump to content

Help with abilities?


Krazyguy75

Recommended Posts

So I'm adding a metric sh*t ton of abilities... and I'm not very experienced with modding X2 (I modded for about a week and then moved away for several months).

 

I'm going to just list my questions here in order of estimated simplicity:

 

How would I...

 

Easy:

 

- Apply a bonus flanking aim bonus for an ability?

 

Medium:
- Remove overwatch aim penalty (I see lots of mods that remove the crit penalty or add an aim bonus, but I'd like a normal shot with no modifiers)
- Make the first hacking option an automatic success.
- Allow the unit to extract from anywhere on the map (cause why do snipers not already have this)
- Increase grenade throw height (so that you can throw over buildings and up onto much higher ledges)

 

Hard

 

- Modify enemy detection range only (for concealment) for a single soldier? -SOLVED, thanks Kregano

 

- Give an extra movement after entering a detection zone PRIOR to breaking concealment

Edited by Krazyguy75
Link to comment
Share on other sites

Hard

 

- How would I modify enemy detection range only (for concealment) for a single soldier?

 

I'll add more as I get more work done, but just these two to start.

Here you go:

 

// Bonus to DetectionRange stat effects

PersistentStatChangeEffect = new class'X2Effect_PersistentStatChange';

PersistentStatChangeEffect.BuildPersistentEffect(1, true, false, false);

PersistentStatChangeEffect.AddPersistentStatChange(eStat_DetectionModifier, default.SLINK_DETECTIONRADIUSMODIFER);

Template.AddTargetEffect(PersistentStatChangeEffect);

 

You can swap out SLINK_DETECTIONRADIUS for a numerical value, as long as it is in this format: 0.5f.

 

Also, if this ability is going to be for Rangers, save yourself the trouble and don't bother. I already did that.

Link to comment
Share on other sites

 

-snip-

 

Oh, nice, thank you, saves me a lot of work!

 

Also, way more simple than I expected!

 

EDIT: I hope you don't mind if I borrow your code? I don't plan to use any of the graphics, and I'll give you credit, OFC.

Edited by Krazyguy75
Link to comment
Share on other sites

So... a ton more questions (will update the top post):

 

Medium:

 

- Remove overwatch aim penalty (I see lots of mods that remove the crit penalty or add an aim bonus, but I'd like a normal shot with no modifiers)

 

- Make the first hacking option an automatic success.

 

- Allow the unit to extract from anywhere on the map (cause why do snipers not already have this)

 

- Increase grenade throw height (so that you can throw over buildings and up onto much higher ledges)

 

Hard?:

 

- Give an extra movement after entering a detection zone PRIOR to breaking concealment

 

 

 

I don't need anyone to answer all of these, just if you know one please share or give me pointers in the right direction.

Link to comment
Share on other sites

Well... then can I borrow your cone of fire code?

 

We seem to have similar thoughts (though I'm just adding these as bonus abilities for the AWC to give out rarely, rather than changing class features).

Sure, just be aware that it already has AWC compatibility, so you might need to alter the XComClassData.ini file if you want it to not be given to certain classes.

 

 

So... a ton more questions (will update the top post):

 

Medium:

 

- Remove overwatch aim penalty (I see lots of mods that remove the crit penalty or add an aim bonus, but I'd like a normal shot with no modifiers)

I swear I've seen this mod on the Workshop, but it could be one of the aim bonus mods.

 

Hard?:

 

- Give an extra movement after entering a detection zone PRIOR to breaking concealment

I'm not sure what you mean by this. Do you want extra mobility while concealed? Because Lightning Strike does that.

Link to comment
Share on other sites

For the latter, I want it to be something like Implacable, where upon being inside a detection zone, at the end of your normal movement action, when you would normally break concealment, you get a single bonus movement action before you get discovered.

 

It'd be a great perk for allowing you to dash around the map, because you could dart back out of a detection zone or just get to better cover when you'd normally trigger a pod.

Edited by Krazyguy75
Link to comment
Share on other sites

  • 1 month later...

For the latter, I want it to be something like Implacable, where upon being inside a detection zone, at the end of your normal movement action, when you would normally break concealment, you get a single bonus movement action before you get discovered.

 

It'd be a great perk for allowing you to dash around the map, because you could dart back out of a detection zone or just get to better cover when you'd normally trigger a pod.

 

I'm 2 months late to the party but, if you're still looking into this, you could make an ability that triggers on the 'EffectBreakUnitConcealment' event, then check if the unit has any standard or move action points remaining, then give it a move only action point if it does not.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...