Armor Plating

by VortiK

Adds armor plating equipment to increase vehicles hitpoints and improve their survivability. - Supports AAI Vehicles. - Supports Angel's Heavy Tank. - Has built in mod support.

Content
4 years ago
0.16 - 1.1
12.8K
Armor

g universal support

5 years ago
(updated 5 years ago)

it would be cool if you could add vtk support to all cars, tanks and locomotives..
or you could change line 81+ to ...
local function has_vtk_category(entity)
if not entity.grid then return false end
for id,name in pairs(entity.grid.prototype.equipment_categories) do
if name == "vtk-armor-plating" then
return true
end
end
return false
end

local function set_entity_to_armor(entity)
entity_to_armor = nil
if entity ~= nil and has_vtk_category(entity) then
debug("entity to armor set to "..entity.name)
entity_to_armor = entity
end
end

...to allow modders to add support for your mod on their own

5 years ago

Hello,

Thanks for the feedback, I'll take look at this it would be most helpful indeed !

5 years ago

I've added support in 0.5.0 thanks again for the input, not much missing for it to work !

New response