hormel Posted August 31, 2016 Share Posted August 31, 2016 I'm looking to create a mod that adds a multi-tool/Swiss Army Knife into the game. While I've seen that the item has been suggested, I have not seen a working mod as of yet. My question: has it been created or shall I proceed? I'm hoping to map the functionality as follows. Closed knife- access menu: Open knife Open can opener Open tweezers Open saw Open screwdriver Open scissors Upon opening an aspect of the tool, I want the icon of the 'closed knife' to be replaced with whatever corresponding tool is accessed and when closed to be replaced with the 'closed knife' icon once again. I suppose simply allowing one tool to function as a "knife" "can opener" "tweezers" etc. without icon shifting would be a much easier route, but I think with some clever coding a multi-icon, multi-tool is possible.. The icon posted is just a working png for my own clarity but should provide a visual of what I'm going for here.. Link to comment Share on other sites More sharing options...
NCrawler Posted August 31, 2016 Share Posted August 31, 2016 You could create multiple items, ie, Item_KnifeClosed, Item_KnifeTweezers, etc. and then in your context menu code you could destroy the KnifeClosed item and create the KnifeTweezers, etc. That's probably the way that I would do it initially to get the mod out and then search through the games java code for icon manipulation functions. Link to comment Share on other sites More sharing options...
hormel Posted August 31, 2016 Author Share Posted August 31, 2016 Good idea. I have concerns about durability as well- as in, would not destroying and recreating the item_X essentially spawn a newly repaired item? Link to comment Share on other sites More sharing options...
NCrawler Posted August 31, 2016 Share Posted August 31, 2016 It would. You could use the items moddata to save/restore its durability. Link to comment Share on other sites More sharing options...
hormel Posted August 31, 2016 Author Share Posted August 31, 2016 Alright, good places to start. Thanks. Any idea if this mod has been attempted? Link to comment Share on other sites More sharing options...
NCrawler Posted September 1, 2016 Share Posted September 1, 2016 I've not seen one like that. You might check on the Steam workshop and see... Link to comment Share on other sites More sharing options...
hormel Posted September 4, 2016 Author Share Posted September 4, 2016 Still working stuff out, made a bit less crappy looking icons in the meantime Geras 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now