Blockland Forums > Modification Help

Infection on death

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

MrPickle:

Yeah, You set the look how you want it to change them. Duh.

Eryehk:


--- Quote from: MrPickel on June 28, 2007, 12:40:53 PM ---Yeah, You set the look how you want it to change them. Duh.

--- End quote ---
Its doom style , they look the same.

Space Guy:


--- Code: ---function GameConnection::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc){
%client.MonsterfyPls = !%client.MonsterfyPls;
Parent::OnDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc)
}

function GameConnection::SpawnPlayer(%this){
      Parent::SpawnPlayer(%this);
if(%client.MonsterfyPls){
      %client.Monsterfy();
}

function GameConnection::Monsterfy(%this){
      if(isObject(%this.player))
      %this.hat = "0";
      %this.accent = "1";
      %this.pack = "0";
      %this.secondpack = "0";
      %this.chest = "0";
      %this.rarm = "0";
      %this.larm = "0";
      %this.hip = "0";
      %this.rleg = "0";
      %this.lleg = "0";
      %this.rhand = "0";
      %this.lhand = "0";
      %this.headcolor = "1 0.878 0.612 1";
      %this.hatcolor = "1 0.878 0.612 1";
      %this.accentcolor = "1 0.878 0.612 1";
      %this.packcolor = "1 0.878 0.612 1";
      %this.secondpackcolor = "1 0.878 0.612 1";
      %this.chestcolor = "1 0.878 0.612 1";
      %this.rarmcolor = "1 0.878 0.612 1";
      %this.larmcolor = "1 0.878 0.612 1";
      %this.rhandcolor = "1 0.878 0.612 1";
      %this.lhandcolor = "1 0.878 0.612 1";
      %this.hipcolor = "0.392 0.196 0.000 1";
      %this.rlegcolor = "1 0.878 0.612 1";
      %this.llegcolor = "1 0.878 0.612 1";
      %this.decalname = "AAA-None";
      %this.facename = "smiley";
      if(isObject(%this.player)){
         %this.ApplyBodyParts();
         %this.ApplyBodyColors();
    }
  }
}
--- End code ---

There. Sets it to NOT current type, so on-off-on-off...

Eryehk:

So what would i have to change to make it go between Dhuman and Dcreature.

MrPickle:

Thats what he's done.


--- Quote ---
--- Code: ---%client.MonsterfyPls = !%client.MonsterfyPls;[/quote]
--- End code ---

--- End quote ---


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

Go to full version