Skip to content

autoloader update for VDE-Deserters#4594

Open
SaltyKarl wants to merge 5 commits into
CombatExtended-Continued:Developmentfrom
SaltyKarl:Deserters-autoloader
Open

autoloader update for VDE-Deserters#4594
SaltyKarl wants to merge 5 commits into
CombatExtended-Continued:Developmentfrom
SaltyKarl:Deserters-autoloader

Conversation

@SaltyKarl
Copy link
Copy Markdown
Contributor

@SaltyKarl SaltyKarl commented May 20, 2026

Additions

  • Autoloaders ammo spawning options for non-player factions.
    Will spawn with full ammo and the default ammo if no options are set in XML.

Changes

update Deserters autoloader to use CompProperties_AmmoListUser, and switch to allowed tag

References

n/a

Reasoning

update the patch

  • Autoloaders spawned in bases were not spawning with ammo defeating their purpose

Alternatives

idk

Testing

Note:
autoloader have C# bug that won't load same ammo from bugs chat

found a bug with autoloaders
this one is a bit elaborate
build an autocannon, set its ammo type to ammo type a
build an autoloader, set its ammo type to ammo type b, and enable ammo type replacement
after that, the autoloader will top up the turret as intended
howver, if you then change the ammo type of the turret without touching the autoloader, the autoloader will then reload the turret forever
that allows you to load more ammo into a turret than what the turret normally allows

Check tests you have performed:

  • Compiles without warnings
  • Game runs without errors
  • (For compatibility patches) ...with and without patched mod loaded
  • Playtested a colony (specify how long) 5mins

@SaltyKarl SaltyKarl requested review from a team as code owners May 20, 2026 08:19
@github-actions
Copy link
Copy Markdown

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-26150433292.zip

@github-actions github-actions Bot added the Download in Comments This PR has a zipfile download available. label May 20, 2026
Copy link
Copy Markdown
Contributor

@ViralReaction ViralReaction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything appears to be working correctly. However, I would recommend adding a power comp ption to the autoloaders. Currently, they will continue working even without power.

@SaltyKarl
Copy link
Copy Markdown
Contributor Author

Everything appears to be working correctly. However, I would recommend adding a power comp ption to the autoloaders. Currently, they will continue working even without power.

Done

@SaltyKarl SaltyKarl requested a review from ViralReaction May 26, 2026 12:17
@ViralReaction ViralReaction dismissed their stale review May 26, 2026 23:28

Resolved

@github-actions
Copy link
Copy Markdown

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-26481048024.zip

@github-actions
Copy link
Copy Markdown

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-26481154768.zip

@github-actions
Copy link
Copy Markdown

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-26481273637.zip

@ViralReaction
Copy link
Copy Markdown
Contributor

Added function for autoloaders to spawn with ammo for non-player factions. This way the sites that have autoloaders will spawn with ammo. To test this feature I suggest going to world map and spawning the tile VFED_ZeusComplex

@ViralReaction ViralReaction added the C# Requires a C# solution. label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# Requires a C# solution. Download in Comments This PR has a zipfile download available.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants