Open up player skin setting to ZScript and/or ACS

Moderator: GZDoom Developers

violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

Open up player skin setting to ZScript and/or ACS

Post by violgamba »

I play coop a lot, frequently making my own coop-centric maps. We have a mod with a collection of skins to choose from and it'd be fun if, rather than navigating the menu system, a map could include a line mirror and a switch to progress the player's skin.

Unfortunately, while ZScript wraps the engine's GetSkin() function, it does not wrap the engine's SkinNumChanged(int skinnum) function.

I THINK it'd be a simple thing to add a ZScript wrapper for SkinNumChanged(int skinnum) and would allow for a fun feature for multiplayer maps. I'd even be willing to implement this and make a pull request if the dev's give their consent.
violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

Re: Open up player skin setting to ZScript and/or ACS

Post by violgamba »

I've submitted a pull request for this here:
viewtopic.php?t=79169
https://github.com/ZDoom/gzdoom/pull/2546
User avatar
Player701
 
 
Posts: 1684
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support

Re: Open up player skin setting to ZScript and/or ACS

Post by Player701 »

The PR has already been merged, so this should probably be moved to "Closed Feature Suggestions".

Return to “Closed Feature Suggestions [GZDoom]”