home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hráč 1998 July & August
/
Hrac_23_1998-07-08_cd2.bin
/
Demos
/
Sin
/
setup.exe
/
DATA
/
base
/
Pak0.pak
/
global
/
neutral.scr
< prev
next >
Wrap
Text File
|
1998-07-26
|
3KB
|
122 lines
//
// neutral.scr
//
// This file is parsed by actors. It sets up the AI states.
//
pause
!init:
local.self civilian
local.self ignoreall
local.self respondto act_idle idle
local.self state act_idle
end
//************************************************************
//
// idle:
// Alert, but standing around waiting for action.
//
//************************************************************
idle:
local.self clearstate
local.self respondto act_pain pain
local.self respondto act_opendoor opendoor
local.self respondto act_sightenemy flee
local.self respondto act_weaponsound flee
local.self respondto act_painsound flee
local.self respondto act_deathsound flee
local.self respondto act_breakingsound flee
local.self respondto act_mutantsound flee
local.self respondto act_twitch twitch
local.self respondto act_stop idle
idle_loop:
local.self idle "idle"
waitFor local.self
goto idle_loop
end
//************************************************************
//
// pain:
// Called when actor damaged
//
//************************************************************
pain:
// ignore most messages
local.self ignore act_pain act_opendoor attackentity act_used act_sightenemy
local.self ignore act_weaponsound act_movementsound act_painsound act_deathsound act_breakingsound
local.self ignore act_doorsound act_mutantsound act_voicesound act_machinesound act_radiosound
local.self ignore act_runtoarea act_twitch act_stop
local.self anim local.painanim
waitFor local.self
end
//************************************************************
//
// opendoor:
// Called when actor blocked by door
//
//************************************************************
opendoor:
local.self behavior OpenDoor local.dir
waitFor local.self
end
//************************************************************
//
// twitch:
// Called periodically by idle command
//
//************************************************************
twitch:
local.self anim "twitch"
waitFor local.self
end
//************************************************************
//
// flee:
// Actor runs from enemy and uses cover
//
//************************************************************
flee:
local.self clearstate
local.self respondto act_twitch twitch
local.self respondto act_stop idle
local.self ignore act_activated act_used act_sightenemy act_nearfriend runtoarea
local.self ignore act_weaponsound act_movementsound act_painsound act_deathsound act_breakingsound
local.self ignore act_doorsound act_mutantsound act_voicesound act_machinesound act_radiosound
local.self behavior Hide "run"
waitFor local.self
local.self state act_idle
end