Search found 7 matches

by shiremct
Mon Jun 26, 2017 3:31 pm
Forum: Modding Long War 2
Topic: Errors with Heavy Weapon Reload Script
Replies: 1
Views: 4561

Re: Errors with Heavy Weapon Reload Script

For your first error, I notice on line 54 you do not have X2ReloadStages enclosed in class' '. I'm not sure if you can do that kind of evaluation in the template itself anyway... It may be possible, but I've never really seen dynamic handling done in the Ability template. I can't look at it more clo...
by shiremct
Fri Jun 23, 2017 11:23 pm
Forum: Modders' Forum
Topic: Help with Ability (Again)
Replies: 4
Views: 21615

Re: Help with Ability (Again)

Use this for the damage modifying effect: class X2Effect_Spearhead extends X2Effect_Persistent config (GameData_SoldierSkills); var config float OP_SPEARHEAD_DAMAGE_BONUS; function int GetAttackingDamageModifier(XComGameState_Effect EffectState, XComGameState_Unit Attacker, Damageable TargetDamageab...
by shiremct
Thu Jun 22, 2017 12:19 am
Forum: Modders' Forum
Topic: Help with Ability (Again)
Replies: 4
Views: 21615

Re: Help with Ability (Again)

Try replacing the whole X2AbilityToHitCalc_QuickTarget class with the code below. I got this working with your abilities using fixed values of 0 and 100 and the config variables you have setup look correct, so it should work. Let me know how it goes: class X2AbilityToHitCalc_QuickTarget extends X2Ab...
by shiremct
Wed Jun 21, 2017 9:24 pm
Forum: Modders' Forum
Topic: Help with Ability (Again)
Replies: 4
Views: 21615

Re: Help with Ability (Again)

XComGameState_Unit(AffectState).HasSoldierAbility('Op_QuickTarget') This line above is referencing a passed variable that is not present in this function (AffectState). This function is passing in an abilitystate though, so we can pull the source from that. Try the following: (sorry the format spac...
by shiremct
Mon May 22, 2017 3:39 pm
Forum: Resolved Bug Reports
Topic: Function UnitEndedTacticalPlay and Evac
Replies: 2
Views: 17538

Re: Function UnitEndedTacticalPlay and Evac

Thanks for the quick fix on this! I use a custom ability in my class mod based on Field Surgeon, and though I had a general idea of what would probably be needed to make it work, I don't have a strong enough understanding of event listeners to work out the implementation on my own. Referencing the f...
by shiremct
Sat May 20, 2017 12:09 pm
Forum: Resolved Bug Reports
Topic: Function UnitEndedTacticalPlay and Evac
Replies: 2
Views: 17538

Function UnitEndedTacticalPlay and Evac

It seems that the function UnitEndedTacticalPlay does not trigger on evac. Things that use this, like Field Surgeon, don't apply their effects post-mission. This may also have something to do with why the TransferMECToOutpost effect was not always working in previous versions (It does not use UnitEn...
by shiremct
Tue May 02, 2017 12:43 am
Forum: Modding Long War 2
Topic: REQUEST: AWC Required Ability Structure
Replies: 0
Views: 3285

REQUEST: AWC Required Ability Structure

Hi LW2 Team, First off, thanks for all your hard work on the mod! It may be too late to get anything into 1.3, but I'd like to propose an additional structure element to the AWCAbilityRestriction format to help increase compatibilities between custom classes developed for LW2. If it works smoothly, ...