Project Zomboid

Project Zomboid

Rifle Sling Fix [old]
134 kommentarer
Bambi  [skaper] 14. feb. 2023 kl. 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  [skaper] 14. feb. 2023 kl. 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 kl. 12.44 
i need to craft this right
Bambi  [skaper] 20. nov. 2022 kl. 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 kl. 14.52 
The old mod was updated, should I use that instead of this?
Videogames 30. okt. 2022 kl. 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 kl. 23.23 
Can't seem to get this to work with 2 weapons on the back w Brita
Bambi  [skaper] 22. sep. 2022 kl. 14.45 
@huflungpu thank you! i will add that to the desc
huflungpu 21. sep. 2022 kl. 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  [skaper] 19. sep. 2022 kl. 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 kl. 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. aug. 2022 kl. 17.08 
Great!
Bambi  [skaper] 11. aug. 2022 kl. 14.40 
Last Tested: 41.71
WALN Zell 11. aug. 2022 kl. 11.18 
@OMAIRI I hope so.
OMAIRI 24. juli 2022 kl. 21.35 
works 41.71?
Shadowslash 21. juli 2022 kl. 11.31 
can rifle sling be crafted? i cant find any recipe
Bambi  [skaper] 12. juli 2022 kl. 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. juli 2022 kl. 13.38 
Whats the small fix?
Bambi  [skaper] 25. juni 2022 kl. 3.46 
yes
J0nx 25. juni 2022 kl. 0.38 
Is this compatible with the B41 weapons mod?
Raiden 1. juni 2022 kl. 19.46 
the rifle slung across the back looks awesome, I don't think you should "fix it"
Bambi  [skaper] 29. mai 2022 kl. 8.24 
thats all good, ill add that to teh list of conflicts
_Onixflame_ 28. mai 2022 kl. 12.16 
ye, it was due to Noir's Attachment mod sorry
Bambi  [skaper] 27. mai 2022 kl. 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. mai 2022 kl. 13.03 
it is bugging with hot slot now after uptade, problem the same like in original mod
Bambi  [skaper] 18. apr. 2022 kl. 16.45 
@мишка фреди not that i know of :( i dont really know much about coding
drekavac 18. apr. 2022 kl. 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  [skaper] 17. apr. 2022 kl. 17.12 
@maste find it in containers or on cops/military
maste 17. apr. 2022 kl. 16.30 
How do you get it?
Pervy Sage 2. apr. 2022 kl. 15.03 
Actually that's beyond me. I thought it was simpler, but I was wrong.
Bambi  [skaper] 2. apr. 2022 kl. 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. apr. 2022 kl. 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  [skaper] 2. apr. 2022 kl. 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. apr. 2022 kl. 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  [skaper] 31. mars 2022 kl. 15.47 
@rotcth unsub from arkyets version of the mod https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2644986930
ROTCTH SPECIAL 30. mars 2022 kl. 8.42 
Bruh it still bug with Belt gear weapon
mrwide49 28. mars 2022 kl. 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. mars 2022 kl. 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. mars 2022 kl. 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. mars 2022 kl. 6.43 
I need to loot sling? Is how it works?
Kitasan Black 19. mars 2022 kl. 7.38 
working fine in .68
Master Splinter 16. mars 2022 kl. 14.07 
Yea working in .68
Profeta 16. mars 2022 kl. 12.40 
41.68?
uogamer79 14. mars 2022 kl. 13.15 
I will be sure to do that
Bambi  [skaper] 14. mars 2022 kl. 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. mars 2022 kl. 9.33 
yeah i just wanna say that this mod is awesome and thanks for making it work on later builds
Bambi  [skaper] 14. mars 2022 kl. 8.01 
@uogamer79 yes it does
uogamer79 13. mars 2022 kl. 22.21 
so does this work with brita's gun pack? probably a dumb question but i wanna make sure.
Bambi  [skaper] 24. feb. 2022 kl. 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 kl. 21.02 
Where can i get the code? id like to make this mod a little different