Author Topic: Bot Disables All Gun Damage?  (Read 2438 times)


Code: [Select]
package Babys{
function GameConnection::OnClientLeaveGame(%this){
if(isObject(%this.baby)){
serverCmdSaveBaby(%this, %this.bl_id);
%this.baby.delete();
}
parent::OnClientLeaveGame(%this);
}

function paintProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal){
if(%col.getClassName() $= "AIPlayer"){ return; }

}

function GameConnection::SpawnPlayer(%this){
Parent::SpawnPlayer(%this);
if(isFile("Add-ons/Babies/" @%this.bl_id @ ".txt") && !%this.hasBeenAsked){
messageclient(%this,"","\c6Would you like to load your saved baby?");
messageclient(%this,"","\c6If so type \c0/LoadMyBaby");
%this.hasBeenAsked = 1;
}
}

function ProjectileData::OnCollision(%this,%obj,%col,%fade,%pos,%normal){
parent::OnCollision(%this, %obj, %col, %fade, %pos, %normal);
if(%col.getclassname() $= "AIPlayer"){
if(%col == %obj.client.baby){
if(%col.stage $= "Teenager" || %col.stage $= "Adult"){
%col.mountImage(%obj.client.player.getMountedImage(0),0);
%col.playThread(0, armreadyright);
}
}
}
}
};

activatepackage(Babys);

My mistake. It doesn't disable painting bots, it disables painting anything at all.

My mistake. It doesn't disable painting bots, it disables painting anything at all.
not 4 me

This guy obviously did not make this judging by his idiocy and spelling. Why help him fix something that was never his to begin with.

Tom

This guy obviously did not make this judging by his idiocy and spelling. Why help him fix something that was never his to begin with.
Its Mr. Pickles baby mod I think.

This guy obviously did not make this judging by his idiocy and spelling. Why help him fix something that was never his to begin with.
He abandoned it. Im trying to fix this. I collect old addons any revamp them. its a really cool program BLIU made.

EDIT: And im in 90° Heat helping Homeless kids, so im not concered about my grammar.
« Last Edit: July 28, 2009, 05:58:28 PM by DSi »

Tom

He abandoned it. Im trying to fix this. I collect old addons and revamp them ask other people to fix them. its a really cool program BLIU made.

EDIT: And im in 90° Heat helping Homeless kids, so im not concered about my grammar.

Ok i just got home. Im gonna try this again.

so you only sorta know how to script and now you are trying to fix a broken mod, isn't it easyer to just script a new mod that doesn't have errors?

Fixed it thanks rynick. You will be in credits