Jump to content

[Help!] Slothbot and Zombies


Recommended Posts

i think this will work.

remove this in line 296 in zombie_client.lua

triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) 

and remove this in line 302 in zombie_server.lua

addEvent( "headboom", true ) 
function Zheadhit ( ped,attacker, weapon, bodypart) 
    if (getElementData (ped, "zombie") == true) then 
        killPed ( ped, attacker, weapon, bodypart ) 
        setPedHeadless  ( ped, true ) 
    end 
end 
addEventHandler( "headboom", getRootElement(), Zheadhit ) 

Link to comment
i think this will work.

remove this in line 296 in zombie_client.lua

triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart ) 

and remove this in line 302 in zombie_server.lua

addEvent( "headboom", true ) 
function Zheadhit ( ped,attacker, weapon, bodypart) 
    if (getElementData (ped, "zombie") == true) then 
        killPed ( ped, attacker, weapon, bodypart ) 
        setPedHeadless  ( ped, true ) 
    end 
end 
addEventHandler( "headboom", getRootElement(), Zheadhit ) 

Thank you for the help and time, but it only disables the headboom. I think there's a function if the attacker is a Ped, then the zombie is only damaged in the head.

Here's a video of the problem:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...