Platin Posted January 18, 2015 Share Posted January 18, 2015 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
Bean666 Posted January 19, 2015 Share Posted January 19, 2015 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
Platin Posted January 19, 2015 Author Share Posted January 19, 2015 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
Bean666 Posted January 19, 2015 Share Posted January 19, 2015 oh sorry , i though u wanted to disable headshot. u ment u want zombies to be damaged in their body if a player shoots in their body? Link to comment
Platin Posted January 19, 2015 Author Share Posted January 19, 2015 oh sorry , i though u wanted to disable headshot. u ment u want zombies to be damaged in their body? I can do it now, but other peds, in this case, Slothbots, dont. I want the Slothbots can damage the zombies Link to comment
Bean666 Posted January 19, 2015 Share Posted January 19, 2015 oh yeah sorry i didnt see that. Link to comment
Platin Posted January 19, 2015 Author Share Posted January 19, 2015 oh yeah sorry i didnt see that. No problem dude. Waiting for other Idea. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now