Author Topic: God Mode  (Read 1745 times)

projectile::onCollision is going to damage them still, from other damage sources.

Code: [Select]
package godMode
{
   function Armor::damage(%this, %obj, %sourceObject, %position, %damage, %damageType)
   {
      if(%obj.client.isGod)
      {
         return;
      }
      Parent::damage(%this, %obj, %sourceObject, %position, %damage, %damageType);
   }
};
This will not allow any client with isGod set to 1 to be damaged.