Blockland Forums > Modification Help
Infection on death
MrPickle:
Oh right yeah. Mine'll do it to everyone who spawns. Hang on ill make it for only people who die.
MrPickle:
--- Code: ---function GameConnection::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc){
%client.MonsterfyPls = 1;
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 ---
Eryehk:
--- Quote from: Eryehk on June 28, 2007, 11:56:07 AM ---That would not work the way im setting it up, I need to so the People who die become another player type.
--- End quote ---
Notice the red text.
MrPickle:
That will. Jeeze. I aint helping you again.
Eryehk:
What that is doing is changing the look, I just need a simple script that will do it.