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

Hi. I need help. I made the babymod work in my server, but it disables gun damage. Please help me. Rockets and cars can still kill.

Download The Code Here:

        http://www.mediafire.com/?ey0esmwo8jl

Tom

Probably not calling a parent on ::damage, but it is on ::radiusDamage.

Probably not calling a parent on ::damage, but it is on ::radiusDamage.
Can you edit it plz. Umm, if you put the edited or added part in a code box ill put you in credits and give you a :cookie:. Thanks

You do it, it's not that hard to insert one line of code. If you actually wrote all of that code and now you're trying to get someone else to write one line then I don't know what to say. Use parent::damage(%args) inside the package's projectiledata::damage function.

You do it, it's not that hard to insert one line of code. If you actually wrote all of that code and now you're trying to get someone else to write one line then I don't know what to say. Use parent::damage(%args) inside the package's projectiledata::damage function.
I looked it didnt have the projectiledata::damage , it only had projectiledata::oncollision
« Last Edit: July 27, 2009, 07:32:41 PM by DSi »

Code: [Select]

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

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){
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);

add a
Code: [Select]
parent::OnCollision(%this, %obj, %col, %fade, %pos, %normal);
after
Code: [Select]
function ProjectileData::OnCollision(%this,%obj,%col,%fade,%pos,%normal){

add a
Code: [Select]
parent::OnCollision(%this, %obj, %col, %fade, %pos, %normal);
after
Code: [Select]
function ProjectileData::OnCollision(%this,%obj,%col,%fade,%pos,%normal){
That was already there

Its not in the code you posted.

If you refuse to do what I say you're never going to find the answer because I just posted your answer loud and clear.

Its not in the code you posted.

If you refuse to do what I say you're never going to find the answer because I just posted your answer loud and clear.
ok. i was seing things. srry. but 1 more question. were after the code exactly. im srry im new at tge.


Isn't this the reason the mod was failed?



It also disables painting horses etc. with Recolor Vehicle off. Fail.