Scritp per alleati, per X9

« Older   Newer »
  Share  
view post Posted on 11/3/2010, 15:40

Mark Zuckerberg calvo

Group:
Member
Posts:
9,513

Status:


Ecco uno script che permette ad un personaggio di seguirci e sparare

CODICE
;Artificial Intelligence Script
;                by xplosys

;Header

desc          = Simple Folow and Shoot
;A simple script to give the appearance of allies
;AI using this script can not hurt each other or the player.

;Change the plrdistwithin= distance to suite.
;Add animations for more realism (squat, strafe, etc)

;Triggers

; *** YOU MUST GET WITHIN RANGE TO PICK UP YOUR AI
:state=0,plrdistwithin=200:state=1,rotatetoplr

; *** AI FOLLOWS YOU
:state=1,plrdistfurther=200:animate=5,followplr
:state=1,plrdistwithin=150:freeze,animate=51

; *** Press Z TO ENGAGE AI
:state=1,scancodekeypressed=44:state=3,animate=5

; *** AI REPOSITION TO ENGAGE ENEMY
:state=3:rotatetoplr,rotatey=30,animate=5,runfore=100,rotatey=-30,state=4

; *** RANDOMIZE ANIMATIONS
:state=4,random=1:state=10,setframe=3
:state=4,random=1:state=11,setframe=4

;*** AI RETURNS FIRE
:state=5,ifweapon=1,plrdistwithin=300:useweapon,rundecal=6
:state=5,ifweapon=0:state=6,setframe=6
:state=5,plrdistfurther=200:state=1

; *** AI RELOAD IF EMPTY
:state=6:incframe=6
:state=6,frameatend=6:state=4,reloadweapon,sound=audiobank\guns\reload.wav

; *** PLAY ANIMATION
:state=10:incframe=3
:state=10,frameatend=3:state=5
:state=11:incframe=4
:state=11,frameatend=4:state=5

;End of Script


spero sia utile a qualcuno :)
 
Top
Tont1
view post Posted on 8/6/2010, 18:12





ma cose si usa?
 
Top
Bonfi96
view post Posted on 8/6/2010, 18:20




hai msn ke ti spiego?
 
Top
Tont1
view post Posted on 17/6/2010, 15:40




per il momento no, ma ho skip, comunque mo metto pure ms

asp che forse ce lo fatta
 
Top
Tont1
view post Posted on 17/6/2010, 16:38





evvai, non mi attaccano +!!! :D .a non attaccano i aversari, :cry: perchè?
 
Top
Ocrop Oid
view post Posted on 16/7/2010, 22:18




Certo che se lo scrivevate qui era meglio...è inutile parlare su msn,skype...
 
Top
Tont1
view post Posted on 17/7/2010, 13:08




guarda che non ci saimo detti niente...
 
Top
Bonfi96
view post Posted on 17/7/2010, 17:10




xè è nella sezione x10??? nn ce n'è bisogno x questa versione...
 
Top
Tont1
view post Posted on 17/7/2010, 19:53




infatti andreabbe nella x9
 
Top
xhogan89x
view post Posted on 18/7/2010, 11:07




CITAZIONE (Tont1 @ 8/6/2010, 19:12)
ma cose si usa?

devi modificare l' IA del character con questo
 
Top
Tont1
view post Posted on 18/7/2010, 11:34




be, mo lo capito, ma comunque non attaccano i miei nemici, perchè?
 
Top
xlsheriklx
view post Posted on 4/8/2010, 23:01




xk non usate lo script del x10? xD
 
Top
Combine Hunter
view post Posted on 5/8/2010, 21:52




non serve piú con la 1.1.7...
 
Top
xlsheriklx
view post Posted on 5/8/2010, 23:37




xk? xD
 
Top
Combine Hunter
view post Posted on 6/8/2010, 11:23




con l'X9 e la 1.17 hanno già introdotto di base gli alleati usando la Dark AI...
 
Top
14 replies since 11/3/2010, 15:40   196 views
  Share