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
Try using the beta highlander and add a XComGame.ini with the following content to your mod:
[FiniteReloads CHDLCRunOrder]
RunPriorityGroup=RUN_LAST
+RunAfter=PrimarySecondaries
Then patch the templates normally by finding Pistol_CV_Primary e.g.
I use this code to grab the templates. I don't suspect it's the issue. Your pistol templates meet the criteria of IsAcceptableWeaponTemplateLL.
static function AddReloadPrimaryWeaponsLL()
{
local X2ItemTemplateManager ItemTemplateManager;
local array<X2DataTemplate> DifficultyVariants;
local array<name> TemplateNames;
local name TemplateName;
local X2DataTemplate ItemTemplate;
local X2WeaponTemplate WeaponTemplate;
ItemTemplateManager = class'X2ItemTemplateManager'.static.GetItemTemplateManager();
ItemTemplateManager.GetTemplateNames(TemplateNames);
foreach TemplateNames(TemplateName)
{
ItemTemplateManager.FindDataTemplateAllDifficulties(TemplateName, DifficultyVariants);
// Iterate over all variants
foreach DifficultyVariants(ItemTemplate)
{
WeaponTemplate = X2WeaponTemplate(ItemTemplate);
if (WeaponTemplate == none)
continue;
if (IsAcceptableWeaponTemplateLL(WeaponTemplate) && !WeaponExcludedLL(TemplateName))
{
AddLimitedReloadLL(WeaponTemplate);
}
}
}
ItemTemplateManager.LoadAllContent();
}
static function bool IsAcceptableWeaponTemplateLL(X2WeaponTemplate WeaponTemplate)
{
return WeaponTemplate != none &&
WeaponTemplate.InventorySlot == eInvSlot_PrimaryWeapon &&
WeaponTemplate.InfiniteAmmo != true && WeaponTemplate.iClipSize > 0 &&
WeaponTemplate.Abilities.Find('Reload') != INDEX_NONE;
}
Did you added the XComGame.ini to your mod?
And have it active and unsubed from the stable highlander?
Below are the only things currently in my XComGame.ini
[FiniteReloads.X2DownloadableContentInfo_FiniteReloads]
DLCIdentifier="FiniteReloads"
[FiniteReloads CHDLCRunOrder]
RunPriorityGroup=RUN_LAST
+RunAfter=PrimarySecondaries
[PrimarySecondaries CHDLCRunOrder]
RunPriorityGroup=RUN_LAST
[0007.64] PrimarySecondaries: Register Event ItemConstructionCompleted