ramkid11 Posted February 25, 2015 Share Posted February 25, 2015 I need zombies attacking moves like punching bite the throat etc.. if not atleast tell me how Regards, ram Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 Well custom animations are not possible. You will have to work something out using the default animations in GTA:SA. Check the zombie resource, it might help: https://community.multitheftauto.com/index.php?p= ... ils&id=347 Link to comment
ramkid11 Posted February 25, 2015 Author Share Posted February 25, 2015 Dude I want just 2 scripts not whole one can u edit and give me separately ?? A normal attack and a special one enough Link to comment
JR10 Posted February 25, 2015 Share Posted February 25, 2015 This is not a forum for requests. Read this: viewtopic.php?f=91&t=47897 Link to comment
ramkid11 Posted February 25, 2015 Author Share Posted February 25, 2015 Ok then help me take out those lua and meta files alone for ex --IDLE BEHAVIOUR OF A ZOMBIE function Zomb_Idle (ped) if isElement(ped) then if ( getElementData ( ped, "status" ) == "idle" ) and ( isPedDead ( ped ) == false ) and (getElementData (ped, "zombie") == true) then local action = math.random( 1, 6 ) if action < 4 then -- walk a random direction local rdmangle = math.random( 1, 359 ) setPedRotation( ped, rdmangle ) setPedAnimation ( ped, "PED", "Player_Sneak", -1, true, true, true) setTimer ( Zomb_Idle, 7000, 1, ped ) elseif action == 4 then -- get on the ground setPedAnimation ( ped, "MEDIC", "cpr", -1, false, true, true) setTimer ( Zomb_Idle, 4000, 1, ped ) elseif action == 5 then -- stand still doing nothing setPedAnimation ( ped ) setTimer ( Zomb_Idle, 4000, 1, ped ) end end end end --BEHAVIOUR WHILE CHASING PLAYERS function Zomb_chase (ped, Zx, Zy, Zz ) if isElement(ped) then if (getElementData ( ped, "status" ) == "chasing") and (getElementData (ped, "zombie") == true) then local x, y, z = getElementPosition( ped ) if (getElementData ( ped, "target" ) == nil) and getElementData ( ped, "Tx" ) ~= false then local Px = getElementData ( ped, "Tx" ) local Py = getElementData ( ped, "Ty" ) local Pz = getElementData ( ped, "Tz" ) local Pdistance = (getDistanceBetweenPoints3D( Px, Py, Pz, x, y, z )) if (Pdistance < 1.5 ) then setTimer ( function (ped) if ( isElement ( ped ) ) then setElementData ( ped, "status", "idle" ) end end, 2000, 1, ped ) end end local distance = (getDistanceBetweenPoints3D( x, y, z, Zx, Zy, Zz )) if (distance < 1 ) then -- IF THE PED HASNT MOVED if (getElementData ( ped, "target" ) == nil) then local giveup = math.random( 1, 15 ) if giveup == 1 then setElementData ( ped, "status", "idle" ) else local action = math.random( 1, 2 ) if action == 1 then setPedAnimation ( ped ) triggerClientEvent ( "Zomb_Punch", getRootElement(), ped ) setTimer ( function (ped) if ( isElement ( ped ) ) then setPedAnimation ( ped, "ped", chaseanim, -1, true, true, true ) end end, 800, 1, ped ) setTimer ( Zomb_chase, 2000, 1, ped, x, y, z ) elseif action == 2 then setPedAnimation ( ped ) triggerClientEvent ( "Zomb_Jump", getRootElement(), ped ) setTimer ( Zomb_chase, 3500, 1, ped, x, y, z ) Link to comment
ramkid11 Posted February 26, 2015 Author Share Posted February 26, 2015 Some Homo Admen lock this shit none is helping here all are waste Link to comment
Addlibs Posted February 26, 2015 Share Posted February 26, 2015 This forum is for help with errors / help in general, not requesting for someone else to do something for you. You should try yourself and if you get stuck, tell us what is your exact problem and maybe someone will help you. 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