// Alpha Project Engine File
// Version 0.50

// Lighting System 
// Version 1.0

spritenoshade 3746

defineprojectile 11112 PROJ_WORKSLIKE 4098
defineprojectile 11112 PROJ_EXTRA -1
defineprojectile 11112 PROJ_HITRADIUS -1
defineprojectile 11112 PROJ_TRAIL 0
defineprojectile 11112 PROJ_SPAWNS 3746
defineprojectile 11112 PROJ_DECAL -1
defineprojectile 11112 PROJ_VEL 800

spritenoshade 3744

useractor notenemy 3744 0
cstat 32
getactor[THISACTOR].owner myspawner
getactor[THISACTOR].sectnum mysector
getsector[mysector].ceilingz mz
setactor[THISACTOR].z mz
sizeat 32 32

enda

move lightspeed 200

useractor notenemy 3745 0

cstat 32768
sizeat 3 3

getactor[THISACTOR].owner myspawner
getactor[myspawner].ang angvar
setactor[THISACTOR].ang angvar
ifmove 0
{
move lightspeed geth
}

ifmove lightspeed
{
ifnotmoving
{ espawn 3746 killit }
}

enda

spritenoshade 3747
spritenoshade 4377
spritenoshade 4370

useractor notenemy 3746 0

clipdist 0
cstat 16

findnearactor 3747 1024 tmp
ifvarn tmp -1
{
//getactor[THISACTOR].owner tmp
getactor[tmp].xrepeat x
getactor[tmp].yrepeat y
getactor[tmp].pal pal
setactor[THISACTOR].xrepeat x
setactor[THISACTOR].yrepeat y
setactor[THISACTOR].pal pal
cstat 16
}
ifcount 1
{
killit
}

enda

useractor notenemy 3747 0

cstat 32

//ifcount 1 { shoot 11112 resetcount }

getactor[THISACTOR].owner myspawner
getactor[myspawner].x x
getactor[myspawner].y y
getactor[THISACTOR].sectnum mysector
getsector[mysector].floorz z
setactor[THISACTOR].z z
setactor[THISACTOR].x x
setactor[THISACTOR].y y
getactor[THISACTOR].shade shade
setactor[myspawner].shade shade
//getactor[myspawner].extra temp

ifspawnedby 4377
{
sizeat 64 64
}

ifspawnedby 4370
{
sizeat 64 64
}

sizeat 128 128

enda
