[traduction google : hello wholes the world, I have a new worry , I will explain the whole system for my game zombie walk nickel except that ia zombie and completely stupid, I try to combine my script with "script pack dark ia hukuta94 " ( I will explain ) , infact for zombie I must make them a script that makes them follow a waypont and the 5th point of the waypoint zombie must break the barricade and the 6th point of the waypoint its balance another script ( the attack script), I have to try to change this script attack script for a zombie attack of "script pack dark ia hukuta94 "you can help me please ?]
Script waypoint (has to put into principal at the zombie):
;desc = Çîìáè (ìóæ÷èíà) ìåäëåííûé äëÿ òî÷êè 1
:varequal=game_over 1:state=999,setframe=1
:state=999:animate=1,rotateheadrandom=5
;===Áåæèò ïî ÂÏ ê áàððèêàäå (7 òî÷åê, 5 òî÷êà ðàçðóøåíèÿ áàððèêàäû, 7 - êîíå÷íàÿ)===
:state=0,waypointstate=0:waypointstart,state=1,setalphafade=100,airemove
:state=1,waypointstate=3:waypointnext,state=2
:state=2,waypointstate=3:waypointnext,state=3
:state=3,waypointstate=3:waypointnext,state=41
:state=41,waypointstate=3:waypointnext,state=4
:state=4,waypointstate=3:state=10,settargetname=door,rotatetotarget
;===Âõîäèò â èãðîâóþ çîíó èãðîêà===
:state=5,waypointstate=3:waypointnext,state=6
:state=6,waypointstate=3:waypointnext,state=7
:state=7,waypointstate=5:waypointstop,state=9
:state=7,plrcanbeseen:state=9,waypointstop
;===Çàãðóçêà äðóãîãî ñêðèïòà===
:state=9:runfpi=station13\Survival Mode\mob_zombie_slow_man_ATTACK.fpi
;===Àíèìàöèÿ áåãà===
:state=1:animate=2
:state=2:animate=2
:state=3:animate=2
:state=4:animate=2
:state=41:animate=2
:state=5:animate=2
:state=6:animate=2
:state=7:animate=2
;////////////////////////////////////////////////////////////////////////////////////
;===Ïðîâåðÿåò ñëîìàíû ëè âñå äîñêè (1-íåò, 0-äà)===
:state=10,varequal=point1_clear 1:state=5
:state=10,varequal=point1_clear 0:state=12,settargetname=door,rotatetotarget
:state=5,varequal=point1_clear 0:state=12
;===Çâóê àòàêè===
:state=12:state=11,setframe=93,sound=audiobank\station13\zombies\zombie3_attack.wav
;===Ëîìàåò äîñêè (àòàêà 1)===
:state=11:incframe=93
:state=11,framebeyond=93 45,plrdistwithin=70:plraddhealth=-30,state=111,addvar=point1 1,sound=audiobank\station13\survival\plank_break1.ogg
:state=11,framebeyond=93 45,plrdistfurther=70:state=111,addvar=point1 1,sound=audiobank\station13\survival\plank_break1.ogg
:state=111:incframe=93
:state=111,frameatend=93:state=10
;===Åñëè èãðîê áëèçêî, òî àòàêóåò åãî===
:state=5,plrdistwithin=40:state=20
:state=20:incframe=93
:state=20,framebeyond=93 50,plrdistwithin=70:plraddhealth=-50,state=21
:state=20,framebeyond=93 50,plrdistfurther=70:state=21
:state=21:incframe=93
:state=21,frameatend=93:state=8
;End of Script
Script attacks (new script pack dark ia of hukuta94) has to place in /scriptbank/station13/Survival Mode/mob_zombie_slow_man_ATTACK.fpi:
;Ñêðèïò Èñêóññòâåííîãî Èíòåëåêòà
;Àâòîð: Êîøåëåâ Íèêèòà (www.fpsc.forum24.ru)
;Äàòà: 17.07.2013
;Òðåáîâàíèÿ: íåîáõîäèì ïàò÷ 1.20
;Âåðñèÿ ñêðèïòà: 1.0
;Îïèñàíèå: ñêðèïò äëÿ çîìáè àïîêàëèïñèñ 2
;===Íà÷àëî ñêðèïòà===
:state=0:aisetviewrange=15000,aiatackwareness=0,setaiactive=1,state=2
;---Îòêðûâàåò äâåðè---
:nearactivatable=0:settarget,activatetarget=2
;______________________________________________________________Animation_________________________________________________________________
;===Àíèìàöèè äâèæåíèÿ===
;---Ñòîèò íà ìåñòå---
:idle=1:animationnormal,animate=102
;---Àíèìàöèÿ 1,2,3,4---
:varequal=walk 1,movingforwards=1:animationnormal,animate=1,setanimatespeed=100,aisetspeed=90
:varequal=walk 1,runningforwards=1:animationnormal,animate=1,setanimatespeed=100,aisetspeed=70
:varequal=walk 2,movingforwards=1:animationnormal,animate=2,setanimatespeed=100,aisetspeed=90
:varequal=walk 2,runningforwards=1:animationnormal,animate=2,setanimatespeed=100,aisetspeed=70
:varequal=walk 3,movingforwards=1:animationnormal,animate=3,setanimatespeed=100,aisetspeed=90
:varequal=walk 3,runningforwards=1:animationnormal,animate=3,setanimatespeed=100,aisetspeed=70
:varequal=walk 4,movingforwards=1:animationnormal,animate=4,setanimatespeed=100,aisetspeed=90
:varequal=walk 4,runningforwards=1:animationnormal,animate=4,setanimatespeed=100,aisetspeed=70
;______________________________________________________________Targeting_________________________________________________________________
:state=1,aicanshoot=1,aicalled=0:aicallteam=500000,state=2
:state=1,aicanshoot=0,aicalled=1:airespondtocall
:state=1,aihastarget=0,aiheardsound=500000:aimovetosound
;--Îïðåäåëåíèå öåëè--
:state=2,aihastarget=1:aicleartarget,aisettarget,airotatetotarget
:state=2,aihastarget=0:aisettarget
:state=2:aimovetotarget
;--Àòàêà--
:state=2,aitargetdistwithin=70,random=30:aistop,setaiactive=0,setframe=100,state=11
:state=2,aitargetdistwithin=70,random=30:aistop,setaiactive=0,setframe=101,state=13
;___________________________________________________________Attack animation_______________________________________________________________
;--Animation 100 - overhead slash left--
:state=11,framebeyond=100 50,aitargetdistwithin=100:aiusemelee=1,aisetmeleedamage=80,state=12
:state=11:incframe=100,airotatetotarget,aisetspeed=120
:state=11,frameatend=100:setaiactive=1,aisetspeed=90,state=2
:state=12:incframe=100,airotatetotarget,aisetspeed=120
:state=12,frameatend=100:setaiactive=1,aisetspeed=90,state=2
;--Animation 101 - overhead slash right--
:state=13,framebeyond=101 50,aitargetdistwithin=100:aiusemelee=1,aisetmeleedamage=80,state=14
:state=13:incframe=101,airotatetotarget,aisetspeed=120
:state=13,frameatend=101:setaiactive=1,aisetspeed=90,state=2
:state=14:incframe=101,airotatetotarget,aisetspeed=120
:state=14,frameatend=101:setaiactive=1,aisetspeed=90,state=2
;_____________________________________________________________Hit detection________________________________________________________________
;///===Óðîí îò ðàçëè÷íîãî îðóæèÿ è ïîñëåäñòâèÿ===\\\
;:shotdamagetype=1:runfpi=Script Pack 8 - DarkAI Pack 2\People_vs_Zombies\Zombies\Zombie_Apocalypse\PvsZ_Damage_Headshot.fpi
;Êîíåö Ñêðèïòà
appear script zombie :
;Ñêðèïò Èñêóññòâåííîãî Èíòåëåêòà
;Àâòîð: Êîøåëåâ Íèêèòà (www.fpsc.forum24.ru)
;Äàòà: 13.07.2013
;Òðåáîâàíèÿ: íåîáõîäèì ïàò÷ 1.20
;Âåðñèÿ ñêðèïòà: 1.0
;Îïèñàíèå: ïàðàìåòðû çîìáè
; Teams:
; 1 - player' team
; 2 - enemy team
; 3 - zombie team
; 4 - ally die team (need revive)
;===Íà÷àëî ñêðèïòà===
;--ñêðûòü òåíü--
:state=0:hideshaddow=1
;--Sound Engine Var--
:state=0:dimlocalvar=SE,setvar=SE 0
;--ïîêàçàòü âñå ëèìáû--
:state=0:showlimb=1,showlimb=2,showlimb=3,showlimb=4,showlimb=5,showlimb=6,showlimb=7,showlimb=8,showlimb=9,showlimb=10,showlimb=11,showlimb=12,showlimb=13,showlimb=14,showlimb=15,showlimb=16,showlimb=17
;--ïðîçðà÷íîñòü--
:state=0:setalphafade=100
;--Ïàðàìåòðû Dark AI--
:state=0:sethealth=100,alwaysactive=1
;--äîáàâèòü DarkAI â êîìàíäó çîìáè (Team 3)--
:state=0:addaiteam=3,aiaddenemy=3 1|2,aiaddneutral=3 4
;--ïðîèçâîëüíûé âûáîð àíèìàöèè--
:state=0:dimlocalvar=walk,setvar=walk 0
:state=0:state=1
:state=1,random=100:setvar=walk 1,state=2
:state=1,random=100:setvar=walk 2,state=2
:state=1,random=100:setvar=walk 3,state=2
:state=1,random=100:setvar=walk 4,state=2
;--ìåñòíûå ïåðåìåííûå--
:state=0:dimlocalvar=live,setvar=live 1
;--çàãðóçèòü Main ñêðèïò--
:state=2:state=3,runfpidefault=1
;Êîíåö Ñêðèïòà
error ai entity ligne 10124
thank you.