Все играли в шутеры,и вы фактически видели,как ваша команда называется или игрок. ВСТРЕЧАЙТЕ ,добавление одной строки в скрипт DARK AI (main-weapon)- друг по которому можно увидеть его имя,попробуйте он реально работает
Code
;//Requires v1.17+ DarkAI
desc = DarkAI generic shoot and melee with ally command+имя
;//debug----------- ;//:state=1,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtext y=10,fpgcrawtext=state 1 ready ;//:state=2,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtext y=10,fpgcrawtext=state 2 enemy close ;//:state=10,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtex ty=10,fpgcrawtext=state 10 gut check ;//:state=20,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtex ty=10,fpgcrawtext=state 20 fall back to cover ;//:state=30,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtex ty=10,fpgcrawtext=state 30 heard sound ;//:state=55,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtex ty=10,fpgcrawtext=state 55 closing in ;//:state=67,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcrawtex ty=10,fpgcrawtext=state 67 falling back ;//:varequal=911,plrfacing=1:fpgcrawtextsize=18,fpgcrawtextfont=arial,fpgcrawtextr=200,fpgcrawtextg=200,fpgcrawtextb=200,fpgcrawtextx=50,fpgcra wtexty=10,fpgcrawtext=911 responding ;//----------------------
;//Start
;//local var flags default, escort or responder behavior. 0=default, 1=escort (Ally), 911=responder :always:localvar=1 :state=0:aiusefullaim=1,setvar=0
;//Dark AI Animations----------------------------------------------------------------------------------------------------
;//Take cover when shot :state=1,shotdamage=1:state=60,aisettarget :state=30,shotdamage=1:state=60,aisettarget
;//Enemy at close range :state=2,ifweapon=1,aicanshoot=1,random=3:aifollowplr=0,state=60,aistop,animate=1 :state=2,ifweapon=0,random=5:aifollowplr=0,state=6 0,aistop,animate=1 :state=2,ifweapon=1,random=1:airotatetotarget,state=190 :state=2,ifweapon=0:airotatetotarget,state=190 :state=2,aitarg etdistfurther=100:state=1 :state=2:aisettarget
;//Respond to any sounds :state=30:aisettarget,airotatetotarget :state=30,varequal=1,aiheardsound=3000:airotatetosound :state=30,varequal=0,aiheardsound=30 00:aimovetosound :state=30,healthless=50,aicanshoot=1:aistop,state=1,aicallteam=2000 :state=30,aicanshoot=1:aisettarget,useweapon,rundecal =6,state=1 :state=30,etimergreater=4000,idle=1:state=1 :state=30,ifweapon=0:state=10
;//Fall back to cover while returning fire :state=60:state=67,etimerstart :state=67:airotatetotarget :state=67,aiatcover=0:aimovetocover=0,aisettarget,airotatetotarget :state =67,ifweapon=1,aicanshoot=1,rateoffire:aisettarget,useweapon,rundecal=6 :state=67,etimergreater=1000,aitargetdistwithin=70,aicanshoot=1,rat offire:aistop,state=190 :state=67,etimergreater=1000,aicanshoot=0:state=1 :state=67,etimergreater=1000,ifweapon=0:freeze,setaiactive=0,sta te=25
;//close with enemy for melee if seen nearby :state=54,idle=1:animate=1,state=55 :state=55,ifweapon=1,aicanshoot=1,rateoffire:aisettarget,useweapon,rundecal=6 :state=55:aisett arget,aimovetotarget :state=55,aitargetdistwithin=60:state=191 :state=55,aitargetdistfurther=150,varequal=1:aistop,state=1,aifollowplr=1 : state=55,aitargetdistfurther=210:aistop,state=1 :state=55,aicanshoot=0:state=1
;//reloading------------------------------------------------------------------------- ;//when out of ammo, choose to fall back and reload or charge foreward and melee.
;//Attempt to fall back to cover and reload :state=20,aiatcover=0:aimovetocover=0,airotatetotarget :state=20,aiatcover=1,ducking=0:freeze,setaiactive=0,state=25 :state=20,aia tcover=1,ducking=1:freeze,setaiactive=0,state=45 :state=20,etimergreater=500,idle=1,ducking=0:freeze,setaiactive=0,state=25 :state=20,etim ergreater=500,idle=1,ducking=1:freeze,setaiactive=0,state=45 :state=20,etimergreater=2000,ducking=0,random=10:freeze,setaiactive=0,state=25 :state=20,etimergreater=2000,ducking=1,random=10:freeze,setaiactive=0,state=45 :state=20,aitargetdistwithin=70:aistop,state=191