Esempio n. 1
0
        public override bool DamageReceivedRequest(IArmedGameObj damager, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
        {
            if (type == RenSharp.DADamageType.Squish || type == RenSharp.DADamageType.Fall)
            {
                return(false); //This player cannot be squished and takes no fall damage.
            }

            return(true);
        }
Esempio n. 2
0
 public override void KillEvent(IDamageableGameObj victim, IArmedGameObj killer, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
Esempio n. 3
0
 public override bool DamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
 {
     return(true);
 }
Esempio n. 4
0
 public override bool TTClientDamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, IAmmoDefinitionClass ammo, string bone)
 {
     return(true);
 }
Esempio n. 5
0
 public override bool StockClientDamageRequestEvent(IDamageableGameObj victim, IArmedGameObj damager, float damage, uint warhead)
 {
     return(true);
 }
Esempio n. 6
0
 public override void KillReceived(IArmedGameObj killer, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
     //Anyone who kills this player gets a refill.
     Engine.GrantRefill(killer);
 }
Esempio n. 7
0
 public override void DamageReceived(IArmedGameObj damager, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
Esempio n. 8
0
 public override void KillReceived(IScriptableGameObj obj, IArmedGameObj killer, float damage, uint warhead, float scale, RenSharp.DADamageType type)
 {
 }
Esempio n. 9
0
 public override bool DamageReceivedRequest(IScriptableGameObj obj, IArmedGameObj damager, ref float damage, ref uint warhead, float scale, RenSharp.DADamageType type)
 {
     return(true);
 }