Jump to content

[Help!] Slothbot and Zombies


Platin

Recommended Posts

Hi all and welcome. I have a problem whit my slothbots, they can spawn and that is cool. They can shoot zombies and that si cool, but, they only kill them if they shoot in his heads and that isn't cool. How to change it?

Thank you all.

PD: And, how to use following? hehe

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 ) 

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...