Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=763647854
As for the difference between "Hip Fire" and "AddSprintAbility" I am unsure. They are both activatable abilities. I think it migh thave something to do with when the abilities is listed like some use X2 Template where as others seem to identify themselves as a template. Like I said before my code is somewhat messy, I've had to improvise with what other people have been doing and what the Xcom 2 vanilla abilities do to come to my own conclusion on how to make my skills. The main thing is that they work, mostly xD although I guess why is the more important reason is why.
Templates.AddItem(HipFire());
Templates.AddItem(AddSprintAbility());
From the files. The imgur post also says to have Add...Ability around the word but for the rifleman mod only two of them has it. I thought it would be abilities instead of increased stats but there are some activatable abilities with Add...Ability and some without such as seen above.
What is the purpose of putting Add...Ability around the ability name?
For GTS skills to work you need to create the skill + 2 additional UC files in the SRC folder, open up the rifleman ability set uc file and search for "Fire Support" or more likely "FireSupport" if I named it like that to see how the GTS skill is different to a normal skill. I would advise you look at my "Spy" class as that is the latest (and neatest) one I made but bare in mind that is a pistol specialist so some skills have quickdraw applied to them in the code.
[FireSupportUnlock_Diff_3 X2SoldierAbilityUnlockTemplate]
+Cost=(ResourceCosts[0]=(ItemTemplateName="Supplies", Quantity=200)) ;Cant get this to work :(
and later found this file: X2StrategyElement_AcademyUnlocksRifleman
I am under the impression that these are for the GTS upgrade for the rifleman, I am curious as to what wasnt working as you seem to get it working in the second file, or are they for different things?
XComClassData.ini in config
XComGame.int in localization
X2Ability_(Class)AbilitySet.UC in the SRC folders
Feel free to take any code from any of my mods, its messy though.
The last thing you need to do is go to the config of your class and open up the ini file XComClassData and write where the ability is going in the tree.
Please note that you can give the ability a clean name in the INT file but for code reference you will want to give it something unique to avoid conflicts with other classes.
Example: Skill is called "Drop and Roll" you would refer to it as DropRoll in the UC/INT/INI code section.
Just to clarify, I am trying to discover how to make new abilities, such as those found in your mod :)
Try and keep it basic at first, stick to vanilla abiltiies for now and try to think about how your class is going to make the game different from the 4 that already exist. I would advise sticking to 1 secondary weapon and limiting the amount of primary weapons the class has.
Just keep it as simple as you can at first, if you have alien hunters the guide is out of date. To Test your mod I would advise "Building" the solution then launching xcom 2 through steam rather than trying to launch the test play through the mod editor (as it conflicts with other mods). You will have to re-build your mod every time you change it. Don't worry about getting it on steam just yet. If you need further assistance feel free to ask. I am no expert though.
(but really, MEC's!!!!)