# M240 with mods - not M240

**URL:** <https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972>\
**Category:** The Bunker\
**Created:** [November 20, 2016, 1:42pm UTC](https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972 "2016-11-20T13:42:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivat](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/vivat/32/98_2.png) [@vivat](https://discourse.cataclysmdda.org/u/vivat)\
**Post date:** [November 20, 2016, 1:42pm UTC](https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972/1 "2016-11-20T13:42:31Z")

</div>

i modify dismounted manual M240 with extended barrel and - automobile-builder menu do not see M240 - i can’t install back MODded M240. maybe because of pluses in the name of the item? M240 new name is M240+

maybe subroutine need minor changhes - need to _search substrings_ instead _search strings_ within array of item names?  
or enter in subroutine one call for temporary delete all pluses in the item names?

[code=“example:”]//i know only pascal and new langs are hard to understand for me… sorry

function approved (var item:ItemNameString): bool;  
var GlobalItemToCarBuildingNameArray: array[] of ItemName;  
index: word;  
const max:=//number of names of items what may be used in car building

begin  
for Index:=0 to max do  
if Pos(ItemNameString,GlobalItemToCarBuildingNameArray[index])\<\>0 then goto ok; //current item with this base name (without mods) is exist and all ok

ok: approved:=true;  
end;

if approved(item) then InsertItemIntoWorkBench(item);  
//coloring this item with bright white colour within workbench of all items which is approved to install in this tail of the this car  
[/code]

---

<div class="post-metadata">

**Author:** ![TheFlame52](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/theflame52/32/247_2.png) [@TheFlame52](https://discourse.cataclysmdda.org/u/TheFlame52)\
**Post date:** [November 20, 2016, 2:55pm UTC](https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972/2 "2016-11-20T14:55:56Z")

</div>

Activate the M240 to take the mod off. Then you can install it again.

---

<div class="post-metadata">

**Author:** ![vivat](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/vivat/32/98_2.png) [@vivat](https://discourse.cataclysmdda.org/u/vivat)\
**Post date:** [November 20, 2016, 5:28pm UTC](https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972/3 "2016-11-20T17:28:24Z")

</div>

yes you right. ☹

but idea in what i wanted to install in machinegun hyroscope stabilyser for more exact firing and fast blowback for more quick firing… and all good ideas goes to under cats tail. :’(

---

<div class="post-metadata">

**Author:** ![TheWumpus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/thewumpus/32/263_2.png) [@TheWumpus](https://discourse.cataclysmdda.org/u/TheWumpus)\
**Post date:** [November 21, 2016, 1:06pm UTC](https://discourse.cataclysmdda.org/t/m240-with-mods-not-m240/12972/4 "2016-11-21T13:06:51Z")

</div>

I wonder if you could go into the JSON and created a modded M240 entry? Give it the stats the thing has with your favorite mods. That could get tedious extremely quickly if done for every possible mounted weapon combo and mod combo in the game, but if you wanted to do it just for your favorite piece of kit it might work.
