Project Zomboid

Project Zomboid

Rifle Sling Fix [old]
134 comentarios
Bambi  [autor] 14 FEB 2023 a las 14:08 
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  [autor] 14 FEB 2023 a las 14:03 
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 a las 12:44 
i need to craft this right
Bambi  [autor] 20 NOV 2022 a las 5:15 
@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 a las 14:52 
The old mod was updated, should I use that instead of this?
Videogames 30 OCT 2022 a las 13:12 
@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 a las 23:23 
Can't seem to get this to work with 2 weapons on the back w Brita
Bambi  [autor] 22 SEP 2022 a las 14:45 
@huflungpu thank you! i will add that to the desc
huflungpu 21 SEP 2022 a las 9:13 
@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  [autor] 19 SEP 2022 a las 13:36 
@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 a las 9:38 
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 AGO 2022 a las 17:08 
Great!
Bambi  [autor] 11 AGO 2022 a las 14:40 
Last Tested: 41.71
WALN Zell 11 AGO 2022 a las 11:18 
@OMAIRI I hope so.
OMAIRI 24 JUL 2022 a las 21:35 
works 41.71?
Shadowslash 21 JUL 2022 a las 11:31 
can rifle sling be crafted? i cant find any recipe
Bambi  [autor] 12 JUL 2022 a las 16:04 
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 a las 13:38 
Whats the small fix?
Bambi  [autor] 25 JUN 2022 a las 3:46 
yes
J0nx 25 JUN 2022 a las 0:38 
Is this compatible with the B41 weapons mod?
Raiden 1 JUN 2022 a las 19:46 
the rifle slung across the back looks awesome, I don't think you should "fix it"
Bambi  [autor] 29 MAY 2022 a las 8:24 
thats all good, ill add that to teh list of conflicts
_Onixflame_ 28 MAY 2022 a las 12:16 
ye, it was due to Noir's Attachment mod sorry
Bambi  [autor] 27 MAY 2022 a las 14:54 
@_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 a las 13:03 
it is bugging with hot slot now after uptade, problem the same like in original mod
Bambi  [autor] 18 ABR 2022 a las 16:45 
@мишка фреди not that i know of :( i dont really know much about coding
drekavac 18 ABR 2022 a las 1:56 
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  [autor] 17 ABR 2022 a las 17:12 
@maste find it in containers or on cops/military
maste 17 ABR 2022 a las 16:30 
How do you get it?
Pervy Sage 2 ABR 2022 a las 15:03 
Actually that's beyond me. I thought it was simpler, but I was wrong.
Bambi  [autor] 2 ABR 2022 a las 14:36 
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 ABR 2022 a las 14:28 
Ah ok, hmm. I might be able to do it in my files. I'll just load my changes after your mod loads.
Bambi  [autor] 2 ABR 2022 a las 14:26 
@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 ABR 2022 a las 14:22 
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  [autor] 31 MAR 2022 a las 15:47 
@rotcth unsub from arkyets version of the mod https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2644986930
ROTCTH SPECIAL 30 MAR 2022 a las 8:42 
Bruh it still bug with Belt gear weapon
mrwide49 28 MAR 2022 a las 2:20 
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 a las 19:38 
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 a las 21:09 
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 a las 6:43 
I need to loot sling? Is how it works?
Kitasan Black 19 MAR 2022 a las 7:38 
working fine in .68
Master Splinter 16 MAR 2022 a las 14:07 
Yea working in .68
Profeta 16 MAR 2022 a las 12:40 
41.68?
uogamer79 14 MAR 2022 a las 13:15 
I will be sure to do that
Bambi  [autor] 14 MAR 2022 a las 12:34 
@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 a las 9:33 
yeah i just wanna say that this mod is awesome and thanks for making it work on later builds
Bambi  [autor] 14 MAR 2022 a las 8:01 
@uogamer79 yes it does
uogamer79 13 MAR 2022 a las 22:21 
so does this work with brita's gun pack? probably a dumb question but i wanna make sure.
Bambi  [autor] 24 FEB 2022 a las 7:51 
@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 a las 21:02 
Where can i get the code? id like to make this mod a little different