Rampant Arsenal (Fork)


Fork of abandoned mod Rampant Arsenal. Ported to Factorio 2.0 Adds a variety of weapons to wage war. Adds Additional Turrets, Ammo Types, Landmines, Equipment, Capsules, Walls, Vehicles. Origninal mod is Rampant Arsenal https://mods.factorio.com/mod/RampantArsenal?from=search

Content
a month ago
2.0
12.7K
Combat

b Cannon and shotgun ammo can't damage asteroids

6 months ago

Turrets target and fire just fine but the projectiles just pass through.

Interestingly, explosive cannon shells work just fine. Explosive shotgun projectiles pass straight through asteroids but the explosions they spawn when expiring at maximum range can damage them.

Tried tweaking some values in the mod files, but nothing has worked yet. Will update if I find anything that fixes it.

6 months ago

Turrets target and fire just fine but the projectiles just pass through.

Interestingly, explosive cannon shells work just fine. Explosive shotgun projectiles pass straight through asteroids but the explosions they spawn when expiring at maximum range can damage them.

Tried tweaking some values in the mod files, but nothing has worked yet. Will update if I find anything that fixes it.

E1: Further testing without this mod enabled shows that this is a base game issue of these ammo types.

6 months ago

Found the issue.

For the projectile prototype, the hit collision mask must have the object layer set.

The code I used to fix the issue looked like this:

data.raw["projectile"]["shotgun-pellet"].hit_collision_mask = {
layers = {
object = true,
player = true,
trigger_target = true,
train = true
},
not_colliding_with_itself = true
}

It appears the base game does not define a hit collision mask for shotgun pellets, so the game defaults to just player, train, trigger_target

Also, nice "edit" button factorio -_-

6 months ago

I'm surprised you decided to use the Rampant Arsenal turrets in space. Rocket Turret is enogth and the ammo for them is cheap.
But I'll add your fix to the mod. Thanks )

3 months ago

Just updated Rampant Arsenal and the asteroids still aren't being hit by my shotgun shells? I have a rather large modlist, but I doubt any of my other mods are affecting the shotgun pellets except for maybe K2, but I don't have the MRW setting from K2 enabled.

3 months ago

To be honest, I completely forgot about this dialogue branch. Considering that the code written above can fix the situation, it is easier to do than it could be. However, firstly, the turret has more than one type of ammo. Secondly, mods like K2 can make their own adjustments, which can lead to incompatibility...

3 months ago

I might release it at the end of the week.

3 months ago

Thanks! :D

a month ago

Hello, I noticed that this issue is still not resolved as of today, so I uploaded a temporary fix mod for this. It petty much just updates all the shotgun and cannon projectiles at data final fixes.
https://mods.factorio.com/mod/CannonShellAstroidFix?from=updated

a month ago

Thank you. I applied your code in the new release

New response