Hmm, here's how it's setup for v9
Script_Headcrab.zip
Headcrab.dts
tan.blank.jpg
description.txt
server.cs (Originally Script_Headcrab.cs)
Decal_Zombie
Zombie.png
thumbs\Zombie.png
Face_Zombie
Zombie.png
thumbs\Zombie.png
datablock ShapeBaseImageData(HeadcrabImage)
{
shapeFile = "Add-Ons/Script_Heacrab/Headcrab.dts";
emap = true;
mountPoint = $HeadSlot;
offset = "0 0.023 0.4";
eyeOffset = "0 0.023 0.4";
rotation = eulerToMatrix("0 0 0");
scale = "1 1 1";
doColorShift = false;
colorShiftColor = "1.000 1.000 1.000 1.000";
};
function serverCmdHeadcrab(%client)
{
bottomPrintAll(%client.name SPC "has become a headcrab zombie!",3,1);
//other stuff
%player = %client.player;
if(isObject(%player))
{
%player.isHCZombie = !%player.isHCZombie;
if(%player.isHCZombie)
{
%player.unmountImage(2);
%client.applyBodyParts();
%client.applyBodyColors();
}
else
{
%player.unmountImage(2);
%player.mountImage(HeadcrabImage,2);
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
}
}
}
package headCrabStuff
{
function GameConnection::applyBodyColors(%this)
{
Parent::applyBodyColors(%this);
if(isObject(%client.player) && %client.player.isHCZombie)
{
%client.player.setDecalName("Zombie");
%client.player.setFaceName("Zombie");
for(%i = 0;$hat[%i] !$= "";%i++)
{
%player.hideNode($hat[%i]);
%player.hideNode($accent[%i]);
}
%player.setNodeColor("lhand","1 0 0 1");
%player.setNodeColor("rhand","1 0 0 1");
%player.setNodeColor("lhook","1 0 0 1");
%player.setNodeColor("rhook","1 0 0 1");
%player.setNodeColor("larm","0.5 0 0 1");
%player.setNodeColor("rarm","0.5 0 0 1");
}
}
};activatePackage(headCrabStuff);
I typed /headcrab in the game, it just said "Masterlegodude has become a headcrab zombie!" no hat appears, and no decals appear on my torso or face
Using the Add-Ons/????_NAME path is how i got my other mods to work so far