OnRunPlayerMetabolism
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnRunPlayerMetabolism( PlayerMetabolism instance, BaseCombatEntity ownerEntity, float delta )
{
Puts( "OnRunPlayerMetabolism works!" );
}
Location
- PlayerMetabolism::RunMetabolism(BaseCombatEntity ownerEntity, float delta)
csharp
protected override void RunMetabolism(BaseCombatEntity ownerEntity, float delta)
{
if (Interface.CallHook("OnRunPlayerMetabolism", this, ownerEntity, delta) != null)
{
return;
}
BaseGameMode activeGameMode = BaseGameMode.GetActiveGameMode(true);
float num = this.owner.currentTemperature;
//---