String and float user properties in UDMF things

Moderator: GZDoom Developers

Post Reply
spiral
Posts: 4
Joined: Tue Mar 20, 2018 4:41 pm

String and float user properties in UDMF things

Post by spiral »

PR and test map: https://github.com/coelckers/gzdoom/pull/437

Custom properties in UDMF (prefixed with "user_") are allowed to be string/float/int on linedef/sidedef/sector properties, but were not previously supported on UDMF things -- everything was coerced to an int. This PR adds support for string/float properties on things in the UDMF parser, and also changes the SetUserVariable ACS function so that it can set string properties.

For reference, there was a feature request put in for this which is here: viewtopic.php?t=56179
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: String and float user properties in UDMF things

Post by Nash »

Thank you! This one's been asked for quite a while now. :D
User avatar
AFADoomer
Posts: 1324
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: String and float user properties in UDMF things

Post by AFADoomer »

This will be great! Thanks for putting this together!
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: String and float user properties in UDMF things

Post by RockstarRaccoon »

Thanks Spiral! :3
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”