ZDaemon ACS Extensions - ZD_SetMarineSkin
This function will allow for player skins to be set to ScriptedMarines. The syntax is:
void ZD_SetMarineSkin(int tid, string name)
The tid is the Thing ID of the target ScriptedMarine.
The name is the name declared in the S_SKIN lump.
when it comes to retrieving a corresponding skin name from an index, as well as retrieving the top index of the installed skins in order to create a potential list that can be iterated through.