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 returnvar = Interface.CallHook("CanBeWounded", this, info);
if (returnvar is bool)
{
return (bool)returnvar;
}
if (!ConVar.Server.woundingenabled)
//---