new hook call method + function to delegate conversion
This commit is contained in:
@@ -387,7 +387,7 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
Limb targetLimb = target.UserData as Limb;
|
||||
Character targetCharacter = targetLimb?.character ?? target.UserData as Character;
|
||||
GameMain.LuaCs.HookBase.Call("meleeWeapon.handleImpact", this, target);
|
||||
GameMain.LuaCs.Hook.Call("meleeWeapon.handleImpact", this, target);
|
||||
if (Attack != null)
|
||||
{
|
||||
Attack.SetUser(User);
|
||||
|
||||
Reference in New Issue
Block a user