安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题










5. Last but not least, if you want to give any new abilities to your new item (like a stats boost), you would have to create a "X2Ability_*InsertItemNameHere*" which would specify the definition for the abilities. These abilities would then have to be applied to the item inside the X2Item_*InsertItemNameHere* via the line Template.Abilities.AddItem('*TheNameOfYourAbility*')
That is more or less a very basic tutorial on changing the equipment slot of weapons or just creating new items based on the original ones. Hope that answers your question. If it was a mod request, I'm sure that, by now, most of the secondary weapons have been converted into primary via some mod, so it's just a matter of looking for it ;)
3. Create a new item (X2Item_*InsertItemNameHere*) - Most of the code should just be copy/pasted, but with attention to any special properties or effects that need customization (such as the name of the item). To change the equpping slot, edit the line "Template.InventorySlot = eInvSlot_PrimaryWeapon" or "Template.InventorySlot = eInvSlot_PrimaryWeapon" to whichever slot you want the weapon to be equipped in.
4. That is the basic part. - Next, if you want to be thorough, you also need to provide Schematics for your item to be upgradeable via some form of research. The schematics for the default weapons can be found in "X2Item_DefaultSchematics.uc". Similarly to creating an item, most of this code can be copy/pasted, but make sure to provide the schematic with the same name for the item to upgrade as the name of your new item.
1. Get access to the XCOM 2 classes - Create a new Default Mod Template via ModBuddy, inside the Src folder, you will find all the classes that make up the game (more or less).
2. Find the source code for the weapon of interest - Among those classes there should be quite a few named "X2Item_Somethingsomething.uc" and one in particular "X2Item_DefaultWeapons.uc", that contains the definitions for all in-game weapons.
Either way, I hope this cosmetic bug is not too big of a deal - at least the mod is functional now :D
I really hope, you'll find a solution for your scout; it looks confusing, when she
has her "I hold a rifle"-stance