Project Zomboid

Project Zomboid

Rifle Sling Fix [old]
134 Comments
Bambi  [author] 14 Feb, 2023 @ 2:08pm 
also the original creator updated the mod, use whichever one you wish, both still work.
but just know i probably will never be updating this again
Bambi  [author] 14 Feb, 2023 @ 2:03pm 
you CAN craft them, you can also find them in the wild, they copied their spawns from guns, so check military outposts, police, or gun stores
Lou1zz 14 Feb, 2023 @ 12:44pm 
i need to craft this right
Bambi  [author] 20 Nov, 2022 @ 5:15am 
@humble most likely, i would lol. I only made my version as a super super simplistic fix
if Akyets mod works again i would 100% use that as he knows how to code and i know very little
Heart 🎕 19 Nov, 2022 @ 2:52pm 
The old mod was updated, should I use that instead of this?
Videogames 30 Oct, 2022 @ 1:12pm 
@huflungpu
Yeah 'Better Belts' uses a depreciated & now-defunct hotbar API so that's 100% the cause of the compatibility weirdness. Not sure if the mod is still supported, cause i'd love to see it get updated to modern standards & compatibility.
Gurinu 24 Sep, 2022 @ 11:23pm 
Can't seem to get this to work with 2 weapons on the back w Brita
Bambi  [author] 22 Sep, 2022 @ 2:45pm 
@huflungpu thank you! i will add that to the desc
huflungpu 21 Sep, 2022 @ 9:13am 
@Bambi Did some testing, and it works as long as the Better Belts belt is equipped after your holster and sling. Equipping a sling after the borked hotbar slots causes any further hotbar slots to also break, whereas if you equip the sling first, making it hotbar slot 2, it works fine.
Bambi  [author] 19 Sep, 2022 @ 1:36pm 
@huflungpu no idea, never used that mod. it might work, it at least works alongside "noir's attachments" which does also gives more hotbar slots, as long as you dont go over 10 slots it SHOULD be fine
huflungpu 19 Sep, 2022 @ 9:38am 
Is this compatible with the better belts mod, which adds 2 extra hotbar slots? Better belts has the same issue as the original sling mod where the hotbar keys dont work, even though the items are equipped.
WALN Zell 11 Aug, 2022 @ 5:08pm 
Great!
Bambi  [author] 11 Aug, 2022 @ 2:40pm 
Last Tested: 41.71
WALN Zell 11 Aug, 2022 @ 11:18am 
@OMAIRI I hope so.
OMAIRI 24 Jul, 2022 @ 9:35pm 
works 41.71?
Shadowslash 21 Jul, 2022 @ 11:31am 
can rifle sling be crafted? i cant find any recipe
Bambi  [author] 12 Jul, 2022 @ 4:04pm 
deleted two files in the "timedactions" folder, "Sling_ISEquipWeaponAction.lua" and "Sling_ISDetachItemHotbar.lua"

for some reason it gets rid of the bug, i have no idea why it does.... but it do
KillStorm999 12 Jul, 2022 @ 1:38pm 
Whats the small fix?
Bambi  [author] 25 Jun, 2022 @ 3:46am 
yes
J0nx 25 Jun, 2022 @ 12:38am 
Is this compatible with the B41 weapons mod?
Raiden 1 Jun, 2022 @ 7:46pm 
the rifle slung across the back looks awesome, I don't think you should "fix it"
Bambi  [author] 29 May, 2022 @ 8:24am 
thats all good, ill add that to teh list of conflicts
_Onixflame_ 28 May, 2022 @ 12:16pm 
ye, it was due to Noir's Attachment mod sorry
Bambi  [author] 27 May, 2022 @ 2:54pm 
@_OnixFlame_ What version are you on? and are you sure you havent accidentally renabled the old mod?
because i cannot seem to replicate that issue on 41.71
_Onixflame_ 25 May, 2022 @ 1:03pm 
it is bugging with hot slot now after uptade, problem the same like in original mod
Bambi  [author] 18 Apr, 2022 @ 4:45pm 
@мишка фреди not that i know of :( i dont really know much about coding
ein Kater 18 Apr, 2022 @ 1:56am 
Equipping a backpack and a sling with cause a visual bug where the rifle is slung on your back instead of the side backpack pocket
Any ways to fix this?
Bambi  [author] 17 Apr, 2022 @ 5:12pm 
@maste find it in containers or on cops/military
maste 17 Apr, 2022 @ 4:30pm 
How do you get it?
Pervy Sage 2 Apr, 2022 @ 3:03pm 
Actually that's beyond me. I thought it was simpler, but I was wrong.
Bambi  [author] 2 Apr, 2022 @ 2:36pm 
seems like it should be pretty straight forward, in Sling mod fix\media\lua\client\Hotbar\Sling_ISHotbarAttachDefinition.lua it looks like the "attachment" section could be deciding what kind of items are allowed to be equipped, but i could be wrong

also note that Sling mod fix\media\lua\client\Timedactions used to contain 2 luas in it that had something to do with equipping the weapon, as i said i dont code so i didnt really understand, but found those 2 files were creating the bug from the original rifle sling mod that would deequip your weapon everytime you tried to attack
so i removed them, hence why they are missing
you can still get the files from arkyets original version in the description above
Pervy Sage 2 Apr, 2022 @ 2:28pm 
Ah ok, hmm. I might be able to do it in my files. I'll just load my changes after your mod loads.
Bambi  [author] 2 Apr, 2022 @ 2:26pm 
@pervysage yes im sure it could be done but i am not the man do it lol, i dont code, didnt make this mod just reuploaded a fix
Pervy Sage 2 Apr, 2022 @ 2:22pm 
The sling can holster a shotgun or other large gun, do you think it could be modified to holster another large weapon like a bat or crowbar?
Bambi  [author] 31 Mar, 2022 @ 3:47pm 
ROTCTH SPECIAL 30 Mar, 2022 @ 8:42am 
Bruh it still bug with Belt gear weapon
mrwide49 28 Mar, 2022 @ 2:20am 
Nevermind lol the sling weapon hotkey was the same one that spawned in a wild survivor. SImply switching the binding fixes it im a dumbass
mrwide49 27 Mar, 2022 @ 7:38pm 
does anyone elses sling somehow spawn in an npc at your location whenever you equip a weapon that is attached to it?
Susp3kt 25 Mar, 2022 @ 9:09pm 
Is this compatible with the 'Firearms B41' mod? I've noticed that 'Firearms' spawns its own 2 Point Sling and I think it might be replacing the sling with this mod as I have yet to find one ever since using it.
Strelok 25 Mar, 2022 @ 6:43am 
I need to loot sling? Is how it works?
Kitasan Black 19 Mar, 2022 @ 7:38am 
working fine in .68
Master Splinter 16 Mar, 2022 @ 2:07pm 
Yea working in .68
Profeta 16 Mar, 2022 @ 12:40pm 
41.68?
uogamer79 14 Mar, 2022 @ 1:15pm 
I will be sure to do that
Bambi  [author] 14 Mar, 2022 @ 12:34pm 
@uogamer79 thank you so much for the kind words, but to be honest i didnt really do much lol, just uploaded this fix someone else found

I would check out Akyet's (the orignal creator) mods and give him some kind words too
uogamer79 14 Mar, 2022 @ 9:33am 
yeah i just wanna say that this mod is awesome and thanks for making it work on later builds
Bambi  [author] 14 Mar, 2022 @ 8:01am 
@uogamer79 yes it does
uogamer79 13 Mar, 2022 @ 10:21pm 
so does this work with brita's gun pack? probably a dumb question but i wanna make sure.
Bambi  [author] 24 Feb, 2022 @ 7:51am 
@ja'Crispy if you have downloaded the mod its in
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2684045242
Ja'Crispy 23 Feb, 2022 @ 9:02pm 
Where can i get the code? id like to make this mod a little different