Jump to content

Mod: Easy Template Modifications


eXecator

Recommended Posts

I'm interested in oppinions on this proposed mod.

 

  • What it does: offer a simple to configure interface to modify templates
  • How it does: hook in during app start, read ini file with modifications, modify templates, profit

 

I currently have this running to add/remove abbilities to/from CharacterTemplates and EquipmentTemplates. For example one could write

// some.ini
ChangeSets=(Type="Character", Target[0]="Soldier", \\
  Mods[0]=(Type="AddAbility", Value="MarkTarget"), \\
)

to give all SoldierTemplates (all difficulties) the MarkTarget ability. It could be extended for other Template classes and other modifications.

 

I think this could be a nice way to handle template modifications. It could be used as a stand-alone mod to just mess with the game, or used by other mods to handle some of the dirty work.

 

Thoughts?

Link to comment
Share on other sites

Can we use this to outright replace templates with our own individual UnrealScript code? This is my biggest bugbear at the moment - the hoops we have to jump through in order to replace, say, one ability which does something completely different from what it does in vanilla. Say replace the Death From Above ability template with one which grants bonus to-hit for having the high ground?

Link to comment
Share on other sites

I havent done anything with perks up to now, so I'm not familiar with the corresponding hoops. =)

 

Looking at it though...

Assuming you already have an ability "X" which grants bonus to-hit for having the high ground, couldnt you just edit it in via DefaultClassData.ini and replace AbilityName="DeathFromAbove" with AbilityName="X"?

 

Or is it realy important to you, that the ability truly stays "DeathFromAbove" and just works different? In that case this Mos could help, provided that you can achieve the desired behaviour by only changing public members of the X2AbilityTemplate defined in X2Ability_SharpshooterAbilitySet.DeathFromAbove(). Basicaly everything from X2AbilityTemplate which isnt private/protected should be fair game. (X2AbilityCharges, AbilityCosts, AbilityToHitCalc, AbilityTargetEffects, ...)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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