Author Topic: How to make projectile follow player?  (Read 4612 times)


No.

If anyone wanted to help you in this fruitless task, they would have already.

Post all of the weapons code or PM me it if you don't want anyone else to get it and I'll take a look at it and see what I can do.

If uppity people could at least show some respect toward "Lower" or less respected people, then maybe it would help. Also, I have a friend who tried to help.

Who knows. If more respected members actually cared, there might actually be good add-ons. Since people are making so many these days. But there is the possibility everything will be made.... :cookieMonster:

Post all of the weapons code or PM me it if you don't want anyone else to get it and I'll take a look at it and see what I can do.
I would, but I can't PM. I don't know why. Badspot must have taken the PM ability away from me. Can I email you, or maybe MSN you?

My Email's Pancakes_and_chicken (at) hotmail (dot) co (dot) uk

Sent.... about 10 minutes ago. ;D

Your problem is that you're trying to delete a non existent item.

Nowhere in the damage function is %projectile declared.
Replace %projectile with %obj OR put %projectile = %obj; at the beginning of the function. The former being more preferable than the later.

Another problem is that calling the damage function from the damage function causes Blockland to crash, use the onCollision function and call the damage function from there.
« Last Edit: April 17, 2008, 03:19:31 PM by MrPickle »

Your problem is that you're trying to delete a non existent item.

Nowhere in the damage function is %projectile declared.
Replace %projectile with %obj OR put %projectile = %obj; at the beginning of the function. The former being more preferable than the later.

Another problem is that calling the damage function from the damage function causes Blockland to crash, use the onCollision function and call the damage function from there.
I did that.

No clue what you just said.

Code: [Select]
function AzerathsProjectile::damage(%this,%obj,%col,%fade,%pos,%normal)
{
   if(%this.directDamage <= 0)
      return;

   //direct damage doubles for crouching players
   %damageType = $DamageType::Direct;
   if(%this.DirectDamageType)
      %damageType = %this.DirectDamageType;

   if(%col.getClassName() $= "Player")
   {
      %col.damage(%obj, %pos, %this.directDamage, %damageType);
      %projectile.delete();
   }
}

Where is %projectile declared?
Basically it made me crash, use the projectile's onCollision function and then damage the player from there.

It doesn't crash for me... and... also. I'm impossible.

It must suck not being able to find someone to help you who is willing AND competent...

I think this is a general omen that whatever you're making probably shouldn't be made. I don't see why you want to make something that will be BAD for people's servers. Why not go and make a normal weapon that doesn't consume 90% of Blockland's resources? I'm just trying to talk some sense into you here, Someone already made a homing missile - and look how often you see them being used, let alone installed.

Did you even listen? I said I'm not releasing this.
And plus, I had a friend in my server and it didn't lag him. I even tried it on LAN with my friend.

It doesn't crash for me... and... also. I'm impossible.

It must of been my laptop struggling to run 2 Blocklands then.

It must suck not being able to find someone to help you who is willing AND competent...

I think this is a general omen that whatever you're making probably shouldn't be made. I don't see why you want to make something that will be BAD for people's servers. Why not go and make a normal weapon that doesn't consume 90% of Blockland's resources? I'm just trying to talk some sense into you here, Someone already made a homing missile - and look how often you see them being used, let alone installed.

Why do you even post here, you don't give anything productive. You just repeat yourself over and over again, like an echo.

An echo of infinite wisdom...