Files
The-Only-Cure/media/lua/client/TOC/Zombies/ZombiesAmputation.lua
2024-03-18 00:55:30 +01:00

33 lines
715 B
Lua

local ItemsController = require("TOC/Controllers/ItemsController")
--------------------
-- TODO This is low priority, work on it AFTER everything else is ok
-------------------
local function test(zombie, character, bodyPartType, handWeapon)
-- LOCAL ONLY!!!
if character ~= getPlayer() then return end
-- TODO Check damage and weapon type
--ItemsController.Zombie.GetAmputationTexturesIndex(zombie)
ItemsController.Zombie.SpawnAmputationItem(zombie)
end
Events.OnHitZombie.Add(test)
-- local function test2(zombie, player, handWeapon, damage)
-- if not instanceof(zombie, "IsoZombie") then return end
-- print(zombie)
-- end
-- Events.OnWeaponHitCharacter.Add(test2)