Blockland Forums > Suggestions & Requests

Script that corrects the color for weapons with hands

Pages: << < (4/5) > >>

Tic-toc26:

yes plz

Masterlegodude:


--- Quote from: Headcrab Zombie on September 23, 2012, 08:32:34 PM ---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

--- End quote ---
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);
--- End quote ---

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

-Jetz-:

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.

Headcrab Zombie:


--- Quote from: -Jetz- on September 24, 2012, 10:23:16 AM ---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.

--- End quote ---
I made a disgusted face IRL

-Jetz-:


--- Quote from: Headcrab Zombie on September 24, 2012, 10:26:41 AM ---I made a disgusted face IRL

--- End quote ---
Yes I know. It definitely shouldn't be done on standard weapons. Most guns don't even need any sort of hand positioning.

Pages: << < (4/5) > >>

Go to full version