Hello all , This my stealth scripts I made so far responding to gladius's request , If you have any requests on other scripts , Don't be shime
.
Here is the stealth trigger zone scripts :
Stock :
;Artificial Intelligence Script
;Header
desc = Stealth Trigger Zone Stock
;Triggers
:state=0:globalvar=1,setvar=1,state=1
:state=1,plrwithinzone=1,scancodekeypressed=46:setvar=2,state=2
:state=2,plrwithinzone=0:state=0
;End of Script
Fenix mod , v.1.17 :
;Artificial Intelligence Script
;Header
desc = Stealth Trigger Zone Fenix
;Triggers
:state=0:globalvar=1,setvar=1,state=1
:state=1,plrwithinzone=1,keypressed=46 1:setvar=2,state=2
:state=2,plrwithinzone=0:state=0
:state=2,keypressed=46 0:state=0
;End of Script
Character's main ( Edited from Pace.fpi ):
;Artificial Intelligence Script
;Header
desc = Pace Waypoints, If See Player, Rotate And Shoot
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2,animate=1,state=0
:state=0:globalvar=1,state=1
:state=1,plrcanbeseen,varequal=1:settarget,state=2
:state=1,plrcanbeseen,varequal=2,plrdistwithin=50:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1,shotdamage=10:settarget,animate=1,rotatetotarget,resethead,state=2
:state=1,noiseheard=5:settarget,rotatetotarget,rotatetoplr
:state=2:waypointstop,rotatetoplr,state=3,shootplr
:state=3:animate=1,state=1
;End of Script
How to work it :
Place a trigger zone , give it the stealth script ( Stock or Fenix depends on what you use ) , place an eneny character , give it the pace stealth script to it's main .
Note : Don't place the entities very close to the trigger zone , because that way they will detect the player even if he is stealthing , because the script function won't work fast enough .
Script Feauters:
- The player can't stealth until he is crouching .
- The enemy character will detect the player even if on stealth if he gets very close to him ( 50 units )
Script Bugs ( Stock v1.16 Only , newer versions don't have that problem ) :
- If the player crouches in the stealth zone , the stealth will begin , but if he stands up again , the stealth keeps working until he get out of that zone to another or to nothing ( Pretty obvious ) .
P.S : I still didn't use the scripts or test them so you test them and post for results , I can also have requests to make stealth scripts to many various characters but no Dark AI because I'm working on a mega Dark AI script soon that I'm attempiting to make it with the stealthing feature .
Cheers all
"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest