ACS command to get the player's skin

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: Developers

ACS command to get the player's skin

Postby Enjay » Thu Aug 02, 2012 6:21 am

I have mentioned wanting this before but I don't *think* it has ever actually been requested.

Is it possible to have a method for ACS to interrogate the player's skin and return the skin name (or some other variable that could be used to identify the skin)?

Why? Because "scripted marines" are ideal for using as player replacements during cutscenes because they can easily be given targets and patrol paths etc whereas the player cannot. It is already possible to transfer the player's colours to the scripted marine to make him look like the player but if the player is also using a custom skin, the illusion breaks down.

One of the times that this was discussed before, Chris explained what seems like the main problem behind this...

Chris wrote:You can't retrieve strings in an ACS script. It has to be a number, and there's no meaning way to get a skin name by number.

However.. I do kind of have an idea. If the last string table entry (255?) is reserved solely for the game engine to modify, then that could allow for ACS functions to "return" strings (though it'd actually just modifying the last string table entry). However, it would be limited by the fact that the "returned" string won't stay around. Of course, we'd also need string compare functions(strcmp, stricmp, ect, maybe even strchr and strstr; those those last two would only be able to return true or false).


However, if there is a way around this, it would be a really nice feature to have.

Thanks.
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: ACS command to get the player's skin

Postby Siggi » Thu Aug 02, 2012 6:45 am

Surely an option to have a scripted marine inherit the skin of the player along with the colour is doable?
It'd be less generalized than the original request, but it would probably work around the string issue and I think solve Enjay's scripted marine situation.
User avatar
Siggi
Siggi got Horshacked!
 
Joined: 03 Oct 2004
Location: South Africa

Re: ACS command to get the player's skin

Postby Enjay » Thu Aug 02, 2012 8:22 am

Certainly, if that was available it would cover anything that I have ever wanted it for.
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: ACS command to get the player's skin

Postby Watermelon » Sat Aug 04, 2012 3:32 pm

You might be able to force it with ConsoleCommand("skin asd"); if you want one.
Though you may not want this
Watermelon
 
Joined: 19 Jan 2012

Re: ACS command to get the player's skin

Postby Enjay » Sat Aug 04, 2012 3:35 pm

That's a SkullTag only feature and I'm not using SkullTag.
User avatar
Enjay
The Force is strong with this one.
 
Joined: 15 Jul 2003
Location: Scotland

Re: ACS command to get the player's skin

Postby Watermelon » Sat Aug 04, 2012 3:36 pm

Actually you reminded me that I wanted to post a thread on Strings for ZDoom, if it gets added that may be a step in the right direction :)
Watermelon
 
Joined: 19 Jan 2012


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest