Author Topic: Script that corrects the color for weapons with hands  (Read 2127 times)


The hand nodes on the player are hidden, and replaced with a hand modeled onto the weapon. The modeled hand can not be recolored by the node system
Huh, oh well :(

Decided to do a super poor attempt with copy pasta anyway (from Navaro's Beta Playertype and my Remmington with the green turned blank with a bone called 'RemSkin' applied to the blank parts
Quote
package RemSkin
{
   function RemmingtonImage::applyBodyColors(%client)
   {
      if(isObject(%client.player))
      {
         if(%client.player.getDatablock().getID() == RemmingtonImage.getID())
         {
            %client.player.setNodeColor($RemSkin[0], %client.rhandColor);
            return;
         }
      }
      Parent::applyBodyColors(%client);
   }
};
activatePackage(RemSkin);

Some of you better scripters (or just anyone with more than half of a mind) can probably tell just how well this went :cookieMonster:

I think if you absolutely needed hands on the gun, you could probably create a separate hand model with an offset specifically designed for your gun, turn it into a player or something, then mount it to the hand, then you could color it. Of course something like that would be more forgeted up than custom hand positions for guns already are.

I think if you absolutely needed hands on the gun, you could probably create a separate hand model with an offset specifically designed for your gun, turn it into a player or something, then mount it to the hand, then you could color it. Of course something like that would be more forgeted up than custom hand positions for guns already are.
I made a disgusted face IRL

I made a disgusted face IRL
Yes I know. It definitely shouldn't be done on standard weapons. Most guns don't even need any sort of hand positioning.

I have tried this before, it doesn't work like you would expect it to, it sets it to the color of the viewer's hands.

The script I made was echy and made a while ago, so someone advanced may be able to make it work.

So I'm guessing you can't colorshift models in real time after the datablock has been created.

So I'm guessing you can't colorshift models in real time after the datablock has been created.
From what i've heard any time this has been discussed, it's not possible unless you want to make a bunch of datablocks or do some sort of 'not-worth-it-hacky-stuffs'

what i think weapon makers should do is instead of having the hands on weapons skin toned just make them literally white so it looks like you're wearing gloves