Blockland Forums > Modification Help
Making projectiles do no damage to bots.
(1/4) > >>
Deadzone:
Could I modify a projectile to deal absolutely no damage to bots?

If so then how would I implement this?

All the bots I use end up taking damage from each other, then they kill each other.
takato14:
Dont hold me to anything, because Im not 100% sure, but I dont think there is a way to differentiate between an actual client's player object and that of a bot.
Deadzone:

--- Quote from: takato14 on February 01, 2011, 10:21:17 PM ---Dont hold me to anything, because Im not 100% sure, but I dont think there is a way to differentiate between an actual client's player object and that of a bot.

--- End quote ---

I hope you are wrong.
ThinkInvisible:

--- Quote from: Deadzone on February 01, 2011, 09:39:03 PM ---Could I modify a projectile deal absolutely no damage to bots?

If so then how would I implement this?

--- End quote ---
The only time i've seen ANY projectile not harming bots is a glitch where it got killed too many times.

However, it might have something to do with OBJECTID.client or something.
Nexus:

--- Code: ---package botimmunity
{
   function player::damage(%victimplayer, %attackerplayer, %position, %damage, %damageType)
   {
      if(%victimplayer.getClassName() $= "AIplayer" && %attackerplayer.getClassName() $= "Player")
         return;
      parent::damage(%victimplayer, %attackerplayer, %position, %damage, %damageType);
   }
};
activatepackage(botimmunity);
--- End code ---

I think this would work.

Edit because the change in bold will let bots hurt eachother.
Edit because bold does not work in code boxes
Navigation
Message Index
Next page

Go to full version