Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
---
Noir's attachments already corrects the weight of flashlights and bedrolls if you enable the feature via the other mod, ModOptions--i have to note that yes ofc that option has to be enabled for *this* mod to work, too, because it's what tells Noir's Attachments the mod to try to begin with!
> Does it work with modded items? is it a fix in general. Like, if I have,idk, a chainsaw attached, will it get reduced emcumbrance? Thanks!
it should, given how Noir's Attachment works!
> Side note: would you happen to know how to apply the same weight reduction percentage OR adjust the weight reduction percentage on sling weapons with Noir's sling mod?
while im not too motivated to keep working off this because it's a java mod (i think most anyone would prefer a fix to be just lua), id say it would be similar to how ive implemented in my other mod (which has this one and Noir's Attachments as a dependency): Gun Skills Improve Holster Weight Reduction (requires a java mod)
Side note: would you happen to know how to apply the same weight reduction percentage OR adjust the weight reduction percentage on sling weapons with Noir's sling mod?
Now I just need to find a way to adjust the position/orientation of the guitar. It's good enough as is but I would have liked it to be diagonal and offset from the backpack instead of straight down and on the center, although that would also introduce a lot of clipping with other attachments.
But the fact I can actually attach them now and have the models show up is amazing, thanks!
I'm going to try it out over the next couple of days and see if I can get it to work for myself, it's going to take me a while but I hope I'll succeed in the end.
Thanks again!
[code]require 'NATT_ItemTweaks'
local kludge = function ()
local attachments = {
Hat_GasMask = 'Mask',
Hat_HockeyMask = 'Mask',
WeldingMask = 'Mask',
ClosedUmbrellaRed = 'NIghtstick',
ClosedUmbrellaBlue = 'NIghtstick',
}
for k,v in pairs(attachments) do
Tweaker(k,"AttachmentType",v)
end
end
Events.OnGameBoot.Add(kludge)[/code](untested code i just wrote here but it should work give or take)
{'Hat_GasMask' ,{{'AttachmentType','Mask' },{'StaticModel','GasMask' },}},
{'Hat_HockeyMask' ,{{'AttachmentType','Mask' },{'StaticModel','HockeyMask' },}},
{'WeldingMask' ,{{'AttachmentType','Mask' },{'StaticModel','WelderMask' },}},
{'ClosedUmbrellaRed' ,{{'AttachmentType','Nightstick' },}},
{'ClosedUmbrellaBlue' ,{{'AttachmentType','Nightstick' },}},
[...]
...etc, which is then fed into a function that runs the DoParam method for each param in each item in each module that's in the table
i hope that helps!
now look at Nightstick = v.."Weapon",[//b] inside the slot type = v.."Weapon", (line 51) in particular, because in ..\steamapps\workshop\content\108600\2754567348\mods\NoirsAttachments\media\lua\shared\NATT_ItemTweaks.lua you can see that in attachments the ClosedUmbrella.. s are defined as NightStick s (lines 93-96), which ultimately means their (Script)Item is DoParam 'd to "AttachmentType = NightStick", done with the code surrounding Tweaker(k,"AttachmentType",v) (lines 167-169) [continued..]
Could you possibly upload that kludge somewhere, if it's not too much of a hassle?
I would be willing to try and write it myself if I knew how but I truly haven't got a clue of where to start.
My only experience with "modding" was some file merging and edits on other games.
I was wondering if you could or would know how to add more items as backpack attachments? I love Noir's mod but I wish I could attach a kettle or an acoustic guitar to my backpack.