OnHammerHit
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnHammerHit( BasePlayer ownerPlayer, HitInfo info )
{
Puts( "OnHammerHit works!" );
}
Location
- Hammer::DoAttackShared(HitInfo info)
csharp
//---
{
BasePlayer ownerPlayer = base.GetOwnerPlayer();
BaseCombatEntity baseCombatEntity = info.HitEntity as BaseCombatEntity;
if (baseCombatEntity != null && ownerPlayer != null && base.isServer)
{
if (Interface.CallHook("OnHammerHit", ownerPlayer, info) != null)
{
return;
}
using (TimeWarning.New("DoRepair", 50))
{
//---