| Blockland Files > Add-Ons |
| Barber |
| << < (5/7) > >> |
| PhantOS:
--- Quote from: King Tøny on September 10, 2018, 01:56:58 AM ---It's not events? --- End quote --- no it's magic |
| Quartz:
--- Quote from: PhantOS on September 09, 2018, 06:28:16 PM ---More reason for the existence of recolorable bot hats. Having arbitrarily chosen colors that add several datablocks is dumb --- End quote --- Could be done with a playertype, but it's a bit silly, works tho! I've done this before: --- Code: ---function NeedsMember::colorPlumbob(%this) { if(isObject(%this.player.getControllingClient().plumbob)) { %needsSum = %this.hunger+%this.thirst+%this.energy+%this.fun+%this.hygiene+%this.toilet; %r = 1-(%needsSum/60)*1.5; if(%r>1) %r = 1; %g = %needsSum/60; %color = %r SPC %g SPC "0.2 1"; %this.player.getControllingClient().plumbob.setNodeColor("plumbob",%color); } } --- End code --- --- Code: ---datablock PlayerData(PlumbobObject) { emap = true; class = Armor; shapeFile = "./plumbob.dts"; cameraVerticalOffset = 1.5; }; --- End code --- |
| Drydess:
0/10 no rainbow color |
| Quartz:
--- Quote from: Drydess on September 10, 2018, 07:35:07 AM ---0/10 no rainbow color --- End quote --- DIY |
| PhantOS:
--- Quote from: Quartz on September 10, 2018, 03:42:48 AM ---Could be done with a playertype, but it's a bit silly, works tho! I've done this before: --- Code: ---function NeedsMember::colorPlumbob(%this) { if(isObject(%this.player.getControllingClient().plumbob)) { %needsSum = %this.hunger+%this.thirst+%this.energy+%this.fun+%this.hygiene+%this.toilet; %r = 1-(%needsSum/60)*1.5; if(%r>1) %r = 1; %g = %needsSum/60; %color = %r SPC %g SPC "0.2 1"; %this.player.getControllingClient().plumbob.setNodeColor("plumbob",%color); } } --- End code --- --- Code: ---datablock PlayerData(PlumbobObject) { emap = true; class = Armor; shapeFile = "./plumbob.dts"; cameraVerticalOffset = 1.5; }; --- End code --- --- End quote --- I done it before too, I was just too lazy to make another hatmod system for it |
| Navigation |
| Message Index |
| Next page |
| Previous page |