Author Topic: Ghost Playertype  (Read 817 times)

Code: [Select]
datablock PlayerData(PlayerGhostArmor : PlayerStandardArmor)
{
jetEmitter = "playerclearjetEmitter";

minJetEnergy = 10;
jetEnergyDrain = 0;
canJet = 1;

rechargeRate = 0;

doColorShift= true;
colorShiftColor= "1.000 1.000 1.000 0.500";

uiName = "Ghost Player";
showEnergyBar = false;
};
Why doesn't the colorshift work?

Also, did I do the transparency right?

Don't you need to modify the Emitter?

Try 255 255 255 150
« Last Edit: November 28, 2009, 12:45:47 AM by Alphadin »

Let me correct that, use 255 255 255 127 that makes it rounded to Half of 255.

I don't believe colorshift applies to playertypes.

You have to package over onadd or something and change the node colors.

I don't believe colorshift applies to playertypes.

You have to package over onadd or something and change the node colors.
You can only set transparency for certain accessories. (like the feathers on the hat)

You can make any body part transparent but some will mess up and appear completely invisible except from certain angles. The hat feathers don't render bricks and interiors through them so you can see the sky behind.

You can make any body part transparent but some will mess up and appear completely invisible except from certain angles. The hat feathers don't render bricks and interiors through them so you can see the sky behind.
I've seen this done on an AI. Where the AI was all white and slightly transparent. Lemme go look if I have it.

EDIT: Damn it's gone.
I don't believe colorshift applies to playertypes.

You have to package over onadd or something and change the node colors.
I think I only need to change the node colors. How would you do that?
Wild guess:
Code: [Select]
doColorShift= true;
colorShiftColor= node1."255 255 255 127
« Last Edit: November 28, 2009, 01:33:52 PM by The Russian »

A cool way to make a player transparent is this:
Code: [Select]
%player.setCloaked(1);
%player.startFade(1500,0,1);

A cool way to make a player transparent is this:
Code: [Select]
%player.setCloaked(1);
%player.startFade(1500,0,1);
So I just add that to the script? Thanks.

Code: [Select]
datablock PlayerData(PlayerGhostArmor : PlayerStandardArmor)
{
jetEmitter = "playerclearjetEmitter";

minJetEnergy = 10;
jetEnergyDrain = 0;
canJet = 1;

rechargeRate = 0;

uiName = "Ghost Player";
showEnergyBar = false;
};
function PlayerGhostArmor::onAdd(%this,%obj)
{
%obj.setCloaked(1);
%obj.startFade(1500,0,1);
}

Code: [Select]
datablock PlayerData(PlayerGhostArmor : PlayerStandardArmor)
{
jetEmitter = "playerclearjetEmitter";

minJetEnergy = 10;
jetEnergyDrain = 0;
canJet = 1;

rechargeRate = 0;

uiName = "Ghost Player";
showEnergyBar = false;
};
function PlayerGhostArmor::onAdd(%this,%obj)
{
%obj.setCloaked(1);
%obj.startFade(1500,0,1);
}
Oh okay. Thank you for the help.