From 01e72ddb6567531b16f92af2564b853878b6ef65 Mon Sep 17 00:00:00 2001 From: changyong guo Date: Mon, 23 Jul 2018 17:24:00 +0800 Subject: Rewrite explosion knock back (#4251) 1. Base knockback on an entity's bounding box intersection with the explosion 2. Armor blast protection reduces knockback 3. Don't apply knockback to players flying in creative mode Fixes #4139 --- Server/Plugins/APIDump/APIDesc.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index ee1ed0d04..b6a4ec81e 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3231,6 +3231,16 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, Notes = "Returns the entity classname that this class implements. Each descendant overrides this function.", }, + GetEnchantmentBlastKnockbackReduction = + { + Returns = + { + { + Type = "number", + }, + }, + Notes = "Returns explosion knock back reduction percent from blast protection level.", + }, GetEnchantmentCoverAgainst = { Params = -- cgit v1.2.3