Page 1 of 1

[Resources] 3saster's ZScript Utilities (featuring MD5)

PostPosted: Mon Jan 18, 2021 5:16 pm
by 3saster
GZDoom Utilities is a collection of useful ZScript utilities I've made for other projects that I figured would be useful to others. I'll add any more here as necessary. Detailed usage instructions of each utility is included in each folder, on the main file. Be sure to read the check the permissions on the files inside as well, although you do not need my permission to use any of these.

MD5
A class to obtain the MD5 class of a string. This is specifically intended to be used with the output of `Wads.ReadLump`, but can be used with any string. Originally written for Fullscreen Status Bar Mod.

GhostMonsterHandler
An event handler to allow restoring the ghost monster bug as if it was exposed to MAPINFO (this replicates the effect of GZDoom's `vileghosts` compat parameter, which is not exposed to MAPINFO at the moment, and does not appear will be exposed anytime soon). Note this still requires the `compat_corpsegibs` compatibility option to be set (but this is exposed to MAPINFO).

AnimatedHandler
An event handler that determines what textures are animated, by parsing the ANIMDEFS and ANIMATED lumps. The animated textures are determined once, at start-up, then one can use the handler's `isAnimated` method to check if a texture is animated. Originally written for Beautiful Doom.

DEHACKEDHandler
An event handler that determines what actors were likely modified by DEHACKED, by parsing the DEHACKED lumps. The suspected modified actors are determined once, at start-up, then one can use the handler's `isDehacked` method to check if a class has likely been modified. It is relatively simple in what it checks (and does not provide specific information on what was modified for each actor), but is fairly effective. False negatives should not occur, but false positives may rarely occur. Originally written for Beautiful Doom.

Re: [Resources] 3saster's ZScript Utilities (featuring MD5)

PostPosted: Tue Jan 19, 2021 4:31 am
by Dynamo
Very useful! I wanted to mess about with ghost monsters a while back, so this comes in handy a lot! Thanks for sharing :)

Re: [Resources] 3saster's ZScript Utilities (featuring MD5)

PostPosted: Sat Jan 30, 2021 6:35 am
by Warden
This DEHACKED checker is exactly what I was looking for, thanks so much.