Example #1
0
        public override bool DamageDealtRequest(IDamageableGameObj victim, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
        {
            if (type == RenSharp.DADamageType.Splash)
            {
                return(false); //This player deals no splash damage.
            }

            return(true);
        }
 public override void KillEvent(IDamageableGameObj victim, IArmedGameObj killer, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
 public override bool DamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
 {
     return(true);
 }
 public override bool TTClientDamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, IAmmoDefinitionClass ammo, string bone)
 {
     return(true);
 }
 public override bool StockClientDamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, float damage, uint warhead)
 {
     return(true);
 }
Example #6
0
 public override void KillDealt(IDamageableGameObj victim, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
     //Anything this player kills explodes.
     Commands.CreateExplosion("Explosion_Shell_Artillery", Commands.GetPosition(victim), GameObj);
 }
Example #7
0
 public override void DamageDealt(IDamageableGameObj victim, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
Example #8
0
 public override void KillDealt(IScriptableGameObj obj, IDamageableGameObj victim, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
Example #9
0
 public override bool DamageDealtRequest(IScriptableGameObj obj, IDamageableGameObj victim, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
 {
     return(true);
 }