the_senator90 Posted July 4, 2015 Share Posted July 4, 2015 Is there anyway I can change the properties of a perk or ability on an item or soldier?If so, how? Link to comment Share on other sites More sharing options...
tracktwo Posted July 4, 2015 Share Posted July 4, 2015 XGAbilityTree.BuildAbilities has a lot of the standard properties of various abilities, including what affects they apply, whether they have cooldowns, who they target, etc. IIRC this is a native function in vanilla and was re-implemented in unrealscript by Long War, but I could be wrong on that. Link to comment Share on other sites More sharing options...
the_senator90 Posted July 4, 2015 Author Share Posted July 4, 2015 (edited) And how would I access this, precisely? Edited July 4, 2015 by the_senator90 Link to comment Share on other sites More sharing options...
tracktwo Posted July 4, 2015 Share Posted July 4, 2015 You can read the values by opening up XComGame.upk in the UE Explorer program. Actually changing anything requires writing a hex patch file and applying it with upkutils/patchergui. This is fairly advanced stuff. though. If all you want to do is add a pre-existing perk to a pre-existing item instead of actually changing the inner workings of things, you can do that just by editing the .ini files. DefaultGameCore.ini has all the info. If it was a weapon, for example, search that file for "Weapons=" and find the line with the iType= value for the weapon you want to change. Then look at the ABILITIES array and add the value for the ability you want. Try looking for similar examples in the file and copy those. Link to comment Share on other sites More sharing options...
dubiousintent Posted July 4, 2015 Share Posted July 4, 2015 (edited) Info on the vanilla Perks and Abilities can be found in the wiki article "XCOM: EU Perks". The Perks codes themselves are found in the "Table of Perk Codes and Offsets" article. The "BuildAbilities" function code is broken out in the article "XGAbilityTree.BuildAbilities". Again these are for vanilla. If you aren't familiar with what is involved in modifying the UPK files (i.e. "hex patch files"), start with the wiki article "Hex editing UPK files". Long War has re-purposed some perk codes and modified some 600 functions. Check out the "Forums" tab on the Long War download page for the thread on LW Modding. -Dubious- Edited July 4, 2015 by dubiousintent Link to comment Share on other sites More sharing options...
Recommended Posts