lordbevan1 Posted January 3, 2018 Share Posted January 3, 2018 (edited) I'd love to see a mod which makes you lose any shots left over when you reload. Eventually it would be updated to not include guns which reload one shot at a time. Edited January 3, 2018 by lordbevan1 Link to comment Share on other sites More sharing options...
devinpatterson Posted January 5, 2018 Share Posted January 5, 2018 We do have a function that could make a mod like that possible, getPlayerCurrentAmmo. My guess is it would go something like hooking a animation (reloading, #8 anim action reload) would fire off the getPlayerCurrentAmmo and removeItem that number and baseID from the player. So one frame after you start the reload, however many shells are in the weapon are subtracted from your inventory. Three points though; 1. I'm not a scripter, so this is "in theory", but practically it seems pretty "do-able" 2. The whole concept is based on currentAmmo accurately returning the value of "shots" in the current weapon (as opposed to the players inventory), and I'v never used the function so I can't state how well it works. 3. Those shells/ammo are gone....as in off to the null void. 3. might be mitigated by creating a new mag asset (a container with a mag model) that is dropped from the player with the remaing shots in it. It could be integrated into the script easily enough, then when the mag is picked up those loose shots are added to inventory and the mag is removed from the player's inventory automatically. It's a lot of new objects (one for every different clip), but I don't think it's overly complicated to make them. And you could play around with having empty clips, a limited number of spare clips for the player etc, all things that could alter game mechanics a bit. Anyway, thought I'd run that by you and see what you thought, as wel as if your still interested in the thread. Link to comment Share on other sites More sharing options...
Recommended Posts