add new hooks: human.CPRSuccess and human.CPRFailed
This commit is contained in:
@@ -34,6 +34,8 @@ RegisterBarotrauma("AfflictionPrefab")
|
|||||||
RegisterBarotrauma("Affliction")
|
RegisterBarotrauma("Affliction")
|
||||||
RegisterBarotrauma("CharacterHealth")
|
RegisterBarotrauma("CharacterHealth")
|
||||||
RegisterBarotrauma("AnimController")
|
RegisterBarotrauma("AnimController")
|
||||||
|
RegisterBarotrauma("HumanoidAnimController")
|
||||||
|
RegisterBarotrauma("FishAnimController")
|
||||||
RegisterBarotrauma("Limb")
|
RegisterBarotrauma("Limb")
|
||||||
RegisterBarotrauma("Ragdoll")
|
RegisterBarotrauma("Ragdoll")
|
||||||
RegisterBarotrauma("Networking.ChatMessage")
|
RegisterBarotrauma("Networking.ChatMessage")
|
||||||
|
|||||||
+6
@@ -1447,6 +1447,12 @@ namespace Barotrauma
|
|||||||
//increase oxygen and clamp it above zero
|
//increase oxygen and clamp it above zero
|
||||||
// -> the character should be revived if there are no major afflictions in addition to lack of oxygen
|
// -> the character should be revived if there are no major afflictions in addition to lack of oxygen
|
||||||
target.Oxygen = Math.Max(target.Oxygen + 10.0f, 10.0f);
|
target.Oxygen = Math.Max(target.Oxygen + 10.0f, 10.0f);
|
||||||
|
|
||||||
|
GameMain.Lua.hook.Call("human.CPRSuccess", this);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GameMain.Lua.hook.Call("human.CPRFailed", this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user