Changing First Person Hand Texture

Discuss every aspect of HDTP here.

Moderator: HDTP Team

Forum rules
Please do not feed the trolls.
Post Reply
User avatar
SlySpy
UNATCO
Posts: 147
Joined: Tue Jul 15, 2008 4:21 am
Contact:

Changing First Person Hand Texture

Post 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.
Image
Cybernetic pig
Illuminati
Posts: 2284
Joined: Thu Mar 08, 2012 3:21 am

Re: Changing First Person Hand Texture

Post 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.
User avatar
SlySpy
UNATCO
Posts: 147
Joined: Tue Jul 15, 2008 4:21 am
Contact:

Re: Changing First Person Hand Texture

Post 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.
Image
Cybernetic pig
Illuminati
Posts: 2284
Joined: Thu Mar 08, 2012 3:21 am

Re: Changing First Person Hand Texture

Post by Cybernetic pig »

No, some kind of sub-dermal skin reinforcement that shows subtly on the surface.
User avatar
SlySpy
UNATCO
Posts: 147
Joined: Tue Jul 15, 2008 4:21 am
Contact:

Re: Changing First Person Hand Texture

Post by SlySpy »

Ah, I got you now.

I'll see what I can do. If I have something, I'll PM you some screenshots.
Image
Cybernetic pig
Illuminati
Posts: 2284
Joined: Thu Mar 08, 2012 3:21 am

Re: Changing First Person Hand Texture

Post by Cybernetic pig »

Thanks.
Post Reply