Pull request
This pull request adds the ExtraDepletionBehavior virtual void for TakeInventory, and UseInventory (theoretically SetInventory and anything else that depends on those functions - not tested by me) that enables additional code to be ran for stuff like weight systems without bloating true item use code with additional variables - essentially a dynamic system would be available instead. This system does work from private testing (though it's on a branch of a big project I'm working on so I'm not revealing any of that)
Currently the only "issue" I know of yet is that this function is only called if the item in the inventory is above 0 (to prevent potential from address 0 crashes); though REALLY you should be using DetachFromOwner for that instead.
Added ExtraDepletionBehavior for Inventory items
Like feature suggestions, but you've actually written code to make it happen. More likely to make it into the game than some random request in feature suggestions.
Moderator: GZDoom Developers
1 post
• Page 1 of 1
-
- Posts: 389
- Joined: Mon May 09, 2016 1:38 am
- Location: Anywhere but here
Added ExtraDepletionBehavior for Inventory items
Post by XLightningStormL »
1 post
• Page 1 of 1
Jump to
- Important Threads
- ↳ HELP! "Account is inactive!"
- ↳ Official ZDoom Community Rules
- ↳ Mod Download Broken? Request Reuploads Here
- ↳ Don't see your first post(s) here? DON'T PANIC
- ↳ Errors? Can't run that new mod? Your GZDoom or ZDoom may be too old!
- ↳ Official Discord Server
- ↳ New Password Requirements and Password Reset
- ↳ A quick notice about privacy (Re: Our efforts to combat spam)
- Official
- ↳ ZDoom (and related) News
- ↳ The Spotlight
- ↳ Developer Blog
- ↳ Rules and Forum Announcements
- Technical Issues
- ↳ Technical Issues
- ↳ Helpful Stickies
- GZDoom Development
- ↳ Bugs [GZDoom]
- ↳ Important Threads
- ↳ Please check the latest version (or dev builds) before reporting!
- ↳ Classic ("Carmack") Software Renderer Bugs
- ↳ OpenGL Renderer Bugs
- ↳ OpenGLES Renderer Bugs
- ↳ Vulkan Renderer Bugs
- ↳ Audio/Music Bugs
- ↳ LZDoom Bugs
- ↳ ZDoom.org Bugs
- ↳ On Hold Bugs
- ↳ On-Hold Softpoly Bugs
- ↳ Closed Bugs [GZDoom]
- ↳ Vintage Build Bugs
- ↳ SoftPoly2 Bugs
- ↳ Feature Suggestions [GZDoom]
- ↳ ZDoom.org Suggestions
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [GZDoom]
- Raze-Specific Stuff
- ↳ Raze
- ↳ News
- ↳ Raze (and ZDoom-related) News
- ↳ Technical Issues
- ↳ Technical Issues
- ↳ Raze Development
- ↳ Bugs [Raze]
- ↳ On Hold Bugs
- ↳ Closed Bugs [Raze]
- ↳ Feature Suggestions [Raze]
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [Raze]
- ↳ Discussion
- ↳ General
- ↳ Editing Help
- ↳ Scripting (Build)
- ↳ Mapping (Build)
- ↳ Tutorials (Build)
- ↳ Projects
- ↳ Projects
- ↳ Abandoned Projects
- Doom Editing Help
- ↳ Scripting
- ↳ Mapping
- ↳ Assets (and other stuff)
- ↳ Tutorials
- ↳ Programming and Compiling
- Discussion
- ↳ General
- ↳ Networking
- ↳ Legacy Discussion
- ↳ Off-Topic
- Projects
- ↳ Levels
- ↳ Gameplay Mods
- ↳ TCs, Full Games, and Other Projects
- ↳ Resources
- ↳ Requests
- ↳ Script Library
- ↳ Graphic/Audio Patches
- ↳ Shaders
- Software and Ports
- ↳ Launchers
- ↳ Game Engines
- ↳ Creation, Conversion, and Editing
- ↳ Miscellaneous
- Archives
- ↳ The Halls of the Dead
- ↳ Abandoned/Dead Projects
- ↳ Editing (Archive)