Page 1 of 1

Changing First Person Hand Texture

Posted: Sat Oct 01, 2016 12:18 am
by SlySpy
To my knowledge, HDTP (and maybe Cassandra Project?) is one of the only mods, if not the only one, that allows variable change of hand textures depending upon which face of JC you pick at the beginning of the game. My question is, how was this accomplished? I've contemplated changing the first person hand texture in the past, but I could never really figure out how to do it.

Re: Changing First Person Hand Texture

Posted: Sat Oct 01, 2016 5:41 am
by Cybernetic pig

Code: Select all

function texture GetWeaponHandTex()
{
	local deusexplayer p;
	local texture tex;

	tex = texture'weaponhandstex';

	p = deusexplayer(owner);
	if(p != none)
	{
		switch(p.PlayerSkin)
		{
			//default, black, latino, ginger, albino, respectively
			case 0: tex = texture'weaponhandstex'; break;
			case 1: tex = texture'HDTPItems.skins.weaponhandstexblack'; break;
			case 2: tex = texture'HDTPItems.skins.weaponhandstexlatino'; break;
			case 3: tex = texture'HDTPItems.skins.weaponhandstexginger'; break;
			case 4: tex = texture'HDTPItems.skins.weaponhandstexalbino'; break;
		}
	}
	return tex;
}
If you're a texture artist, I could do with a subtle ballistic protection effect on the hands.
There's a lot of art work needed and my other artists are occupied with other HDTP and New Vision stuff currently.

Re: Changing First Person Hand Texture

Posted: Sun Oct 02, 2016 5:59 am
by SlySpy
Thanks for pasting the code. Which class file is that located in, by the way?
Cybernetic pig wrote: If you're a texture artist, I could do with a subtle ballistic protection effect on the hands.
There's a lot of art work needed and my other artists are occupied with other HDTP and New Vision stuff currently.
I merely dabble in texture art and edits, so I'm probably not as good as any of your artists, and I therefore can not make promises in terms of reaching your desired standards, but I will see what I can do in terms of giving you a good texture to work with.

What exactly do you mean by ballistic protection effect? Some form of blueish plasma-type overlay? From what I remember, ballistic protection is some form of blue bubble around JC that absorbs damage.

Re: Changing First Person Hand Texture

Posted: Sun Oct 02, 2016 6:40 am
by Cybernetic pig
No, some kind of sub-dermal skin reinforcement that shows subtly on the surface.

Re: Changing First Person Hand Texture

Posted: Sun Oct 02, 2016 11:29 am
by SlySpy
Ah, I got you now.

I'll see what I can do. If I have something, I'll PM you some screenshots.

Re: Changing First Person Hand Texture

Posted: Sun Oct 02, 2016 8:02 pm
by Cybernetic pig
Thanks.