Author Topic: recoloring problem- need help  (Read 1487 times)

This is a very old problem of the bug mod that is delaying the update.
I was going to ask Rotondo about it, but I'll just post here for now.

If you don't know what to bug mods are, got here:
http://forum.blockland.us/index.php?topic=91381.0

Basically, what it should do for any Mod-1 bug is if vehicle recoloring is off (for the spawn brick) the bug should be it's default color (say, green) and if recoloring is on, then (obviously) the bug should recolor and stay that color (like any other vehicle)

But unfortunately, it's not working that way.
I think most of the problem is in this part of the code:
Code: (for the bug) [Select]
function RotBugZombie::onAdd(%this,%obj)
{
parent::onAdd(%this,%obj);
ZombieDefault::onAdd(%this,%obj);
%obj.name = "Bug";
schedule(15,0,bugify,%obj);
}

function bugify(%obj)
{
%obj.setnodecolor("ALL", "0.220 0.404 0.188 1");
}

This makes the bug green when it spawns (so it doesn't spawn white)
But this isn't what I want, because it recolors even when recolor vehicle is on.  :[

I'm thinking the best way to go is have it check if recolor vehicle is off before it recolors, but I'm not sure how to do this (I'm still a beginner at ToqueScript :P)

Also when burning is removed the bug is just white instead of green.

Any help would be great.  <3

bump  :panda:

please someone help me!

Are all the nodes supposed to be one color?


Code: [Select]
function bugify(%obj)
{
%obj.setnodecolor("ALL", "0.220 0.404 0.188 1");
}

Because it says "ALL".

yes they are.

If I want to have darker parts of the same color on the bug, I have a darker transparent color assigned to that part of the bug.


bump...

come one people, really!   :panda:




Do each part of recolouring seprately.

Do each part of recolouring seprately.

you mean like setting the color of each node?

I'm not sure that will fix it, but I'll try.

I still need help people...

old topic is old.

I still need help.

I really need help.

People delaying to help, also delay the release of BugMod1 V3.  >:[