Instalează Steam
conectare
|
limbă
简体中文 (chineză simplificată)
繁體中文 (chineză tradițională)
日本語 (japoneză)
한국어 (coreeană)
ไทย (thailandeză)
български (bulgară)
Čeština (cehă)
Dansk (daneză)
Deutsch (germană)
English (engleză)
Español - España (spaniolă - Spania)
Español - Latinoamérica (spaniolă - America Latină)
Ελληνικά (greacă)
Français (franceză)
Italiano (italiană)
Bahasa Indonesia (indoneziană)
Magyar (maghiară)
Nederlands (neerlandeză)
Norsk (norvegiană)
Polski (poloneză)
Português (portugheză - Portugalia)
Português - Brasil (portugheză - Brazilia)
Русский (rusă)
Suomi (finlandeză)
Svenska (suedeză)
Türkçe (turcă)
Tiếng Việt (vietnameză)
Українська (ucraineană)
Raportează o problemă de traducere
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