CanBeWounded
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? CanBeWounded( BasePlayer instance, HitInfo info )
{
Puts( "CanBeWounded works!" );
return null;
}Location
- BasePlayer::EligibleForWounding(HitInfo info)
csharp
public virtual bool EligibleForWounding(HitInfo info)
{
object obj = Interface.CallHook("CanBeWounded", this, info);
if (obj is bool)
{
return (bool)obj;
}
if (!ConVar.Server.woundingenabled)
//---