Author Topic: Server sided candle light.  (Read 902 times)

Could someone make a mod that changes all playertype lights to Kaje's candle light and disable the /greenlight command? While making this server sided, no events involved.


Come on this can't be that hard.


Code: [Select]
package nogreenlight
{
    function serverCmdGreenlight(%c)
    {
return;
    }
};

activatePackage(nogreenlight);


Code: [Select]
package nogreenlight
{
    function serverCmdGreenlight(%c)
    {
return;
    }
};

activatePackage(nogreenlight);

Wow Kalph. You just broke green light (and forgot an argument).

Wow Kalph. You just broke green light (and forgot an argument).
What argument did I forget?

What argument did I forget?
There is a second argument that is a number. It's to check if you can use /greenLight or not.

http://forum.blockland.us/index.php?topic=218742.msg6237036#msg6237036
« Last Edit: April 08, 2013, 07:14:25 AM by jes00 »

There is a second argument that is a number. It's to check if you can use /greenLight or not.

http://forum.blockland.us/index.php?topic=218742.msg6237036#msg6237036
If he's just breaking it (because Tony wants it disabled) it doesn't matter; he could drop all the arguments if he wanted

I just want everyone to use a candlelight player while breaking greenlight because they would try to bypass it with greenlight.

Now how do I change the light server sided?

Now how do I change the light server sided?
You could just overwrite the player light's datablock with kaje's candlelight.

You could just overwrite the player light's datablock with kaje's candlelight.

How?

Suggestion board seems to be very inactive.

Ok, here's what I have so far. I only need to figure out how to mount the emitter to the player's hand, everything else works fine.

Code: [Select]
package CandleLight
{
function serverCmdLight(%client)
{
PlayerLight.setName(TempPlayerLight);
CandleLight.setName(PlayerLight);

parent::serverCmdLight(%client);

PlayerLight.setName(CandleLight);
TempPlayerLight.setName(PlayerLight);
}
};
activatePackage(CandleLight);

function serverCmdGreenLight(%client, %num)
{
return;
}

datablock fxLightData(CandleLight)
{
uiName = "Candle Light";

LightOn = true;
radius = 5;
brightness = 5;
color = "0.8 0.7 0.4 1";

FlareOn = false;

AnimColor = false;
AnimBrightness = true;
AnimOffsets = false;
AnimRotation = false;
LinkFlare = false;
LinkFlareSize = false;
MinColor = "1 1 0";
MaxColor = "0 0 1";
MinBrightness = 0.0;
MaxBrightness = 5.0;
MinRadius = 0.1;
MaxRadius = 10;
StartOffset = "-5 0 0";
EndOffset = "5 0 0";
MinRotation = 0;
MaxRotation = 359;

SingleColorKeys = false;
RedKeys = "AWTCFAH";
GreenKeys = "AWTCFAH";
BlueKeys = "AWTCFAH";

BrightnessKeys = "DEDEDFGF";
RadiusKeys = "AZAAAAA";
OffsetKeys = "AZAAAAA";
RotationKeys = "AZAAAAA";

ColorTime = 1.0;
BrightnessTime = 1.0;
RadiusTime = 1.0;
OffsetTime = 1.0;
RotationTime = 1.0;

LerpColor = false;
LerpBrightness = false;
LerpRadius = false;
LerpOffset = false;
LerpRotation = false;
};