Author Topic: My Add-Ons won't appear ingame.  (Read 640 times)

I tried making a Kamakaze playertype, it has very low health and explodes big on death, but I check it off on the Add-Ons list and ingame it's not there. I will post the code for it later, because I'm not on the right computer.
EDIT:
Code: [Select]
//Kamakaze Playertype
datablock PlayerData(PlayerKamakaze : PlayerStandardArmor)
{
//Movement
 maxUnderwaterForwardSpeed = 5;//The speed you have while moving forward under water.
 maxUnderwaterBackwardSpeed = 5;//The speed you have while moving backward under //water.
 maxUnderwaterSideSpeed = 5;//The speed you have moving sideways under water.
 maxForwardSpeed = 14;//The speed you have moving forward on dry land.
 maxBackwardSpeed = 7;//the speed you have moving backward on dry land.
 maxSideSpeed = 5;//The speed you have moving Sideways on dry land.
 maxForwardCrouchSpeed = 6;//The speed you have crouching forward.
 maxBackwardCrouchSpeed = 3;//The speed you have crouching backward.
 maxSideCrouchSpeed = 3;//The max speed you have crouching sideways.
 maxDamage = 1;
 jumpForce = 1000;//The force you have to jump - or, how high you can jump.
 jumpDelay = 0;//How long it takes for you to jump aftr pressing space.
 wallJumpVel = 5;
 wallClimbVel = 10;
//Attributes
 canClimb = 0;
 canJet = 0; //0 means no, 1 means yes.
 uiName = "Kamakaze Player";
 showEnergyBar = false;
};
//Now to making it explode on death
function kamakazeExplode(%player, %bot)    //%bot not here nvm
{
    %player.minigame = %player.spawnbrick.getgroup().client.minigame;
    %player.kamakaze = new Projectile()
    {
        dataBlock = TankShellProjectile;
        initialVelocity = "0 0 0";
        initialPosition = vectoradd(%player,%bot.getposition(),"0 0 1");
        Position = vectoradd(%player,%bot.getposition(),"0 0 2");
        originpoint = vectoradd(%player,%bot.getposition(),"0 0 1");
        scale = "2 2 2";
        sourceObject = %player;
        sourceSlot = 0;
        client = %player;
        sourceclient = %player;
        minigame = %player.spawnbrick.getgroup().client.minigame;
        spawnbrick = %player.spawnbrick;
    };
    MissionCleanup.add(%player.kamakaze);
    %player.kamakaze.explode();
    schedule(20,0,KamakazeRadiusDamage,%bot,%player);
 }    //See

function kamakaze::ondeath(%this,%obj)
{
    
    parent::ondeath(%this,%obj);
    if(IsInMinigame(%obj))
    {
        kamakazeExplode(%obj);    //wheres this?
    }
    KamakazeDefault::ondeath(%this,%obj);
}
« Last Edit: August 15, 2009, 02:04:29 PM by Tingalz »


Any errors while excuting?
and your  KamakazeDefault::ondeath(%this,%obj);  is like wut.

I got the last 2 functions from the zombie mod and edited them.

Please post console log for inspection.

um... did you put it in a zip file?


Nevermind, I got it to appear ingame. I screwed up the script though >.>