define ALIENBOT 1404

// gamevar WEAPON1_WORKSLIKE 2 0 //  (system)
gamevar WEAPON1_CLIP 0 0 //  (system)
gamevar WEAPON1_RELOAD 96 0 //  (system)
gamevar WEAPON1_FIREDELAY 5 0 //  (system)
gamevar WEAPON1_HOLDDELAY 32 0 //  (system)
// gamevar WEAPON1_FLAGS 1024 0 //  (system)
gamevar WEAPON1_SHOOTS FIRELASER 0 //  (system)
// gamevar WEAPON1_SPAWNTIME 2 0 //  (system)
gamevar WEAPON2_SPAWN 0 0 //  (system)

gamevar WEAPON6_SHOOTS SPIT 0
gamevar WEAPON2_SHOOTS SHRINKER 0
gamevar WEAPON7_SHOOTS GROWSPARK 0 //3?

gamevar CANTRELOAD 0 1
gamevar RELOADTIMER 0 1
gamevar TEMP 0 2
gamevar TEMP2 0 2
gamevar TEMP3 0 2
gamevar SKILL 0 1
gamevar DNC0 0 0

gamevar SPRINTCOUNTER 0 2
gamevar FOOTPRINTCOUNT 0 1
gamevar STARTRUNNING 0 1

gamevar STARTSHOOTING 0 1

gamevar DUCKSWITCH 0 2
gamevar ELECTRICITYBURST 0 1

gamevar STARTDELAY 0 2

gamevar MX 0 2
gamevar MY 0 2
gamevar MZ 0 2
gamevar MHITAG 0 2


onevent EVENT_FIRE
setvar CANTRELOAD 4
endevent
/*
onevent 30
{
 palfrom 20 30 65
}
endevent

onevent EVENT_ENTERLEVEL
addinventory GET_STEROIDS STEROID_AMOUNT
endevent

onevent EVENT_USESTEROIDS
setvar SPRINTCOUNTER 100
endevent
*/

state playerstuff
setplayer[THISACTOR].crack_time -1
/*
ifp ponsteroids { setvar SPRINTCOUNTER 300 palfrom 16 63 63 63 }
else
{
ifvarg SPRINTCOUNTER 0 { subvar SPRINTCOUNTER 1 palfrom 48 0 0 0 }
else ifpinventory GET_STEROIDS STEROID_AMOUNT ifvare SPRINTCOUNTER 0 { addinventory GET_STEROIDS STEROID_AMOUNT }
}
*/
ifvarg ELECTRICITYBURST 0 { subvar ELECTRICITYBURST 1 shoot SHRINKER }
ifpinventory GET_HEATS 100 { addinventory GET_HEATS 100 }
// getplayer[THISACTOR].curr_weapon TEMP
// ifvare TEMP 1
{
ifvarg RELOADTIMER 0 { addvar RELOADTIMER 1 ifvare RELOADTIMER 30 { setvar RELOADTIMER 0 } }
ifvarg CANTRELOAD 0 { subvar CANTRELOAD 1 }
ifvare CANTRELOAD 0 { ifvare RELOADTIMER 0 { setvar RELOADTIMER 1 addweapon SHRINKER_WEAPON 1 } }
}

ifvare RELOADTIMER 5 { addammo PISTOL_WEAPON 1 }
else ifvare RELOADTIMER 10 { addammo PISTOL_WEAPON 1 }
else ifvare RELOADTIMER 15 { addammo PISTOL_WEAPON 1 }
else ifvare RELOADTIMER 20 { addammo PISTOL_WEAPON 1 }
else ifvare RELOADTIMER 25 { addammo PISTOL_WEAPON 1 }
else ifvare RELOADTIMER 30 { addammo PISTOL_WEAPON 1 }

ifvarg DUCKSWITCH 0 { subvar DUCKSWITCH 1 }

ends
/*
onevent EVENT_CROUCH
ifvare DUCKSWITCH 0
{
getplayer[THISACTOR].posx MX
getplayer[THISACTOR].posy MY
setvar DUCKSWITCH 4
}
else
{
setplayer[THISACTOR].posx MX
setplayer[THISACTOR].posy MY
setvar DUCKSWITCH 4
}

endevent
*/

onevent EVENT_JUMP
{
sound PIG_ROAM
}
endevent

define HEALINGPOOL 5455

action NONEHEALING 0 1 1 1 1

useractor notenemy HEALINGPOOL 0
ifaction 0 { cstat 32768 action NONEHEALING }
ifvarg TEMP 0 { subvar TEMP 1 }
ifvarg TEMP2 0 { subvar TEMP2 1 }
ifpdistl 1024 ifphealthl MAXPLAYERHEALTH
{
ifvare TEMP 0 { addphealth 3 setvar TEMP 10 }
ifvare TEMP2 0 { palfrom 20 23 23 63 setvar TEMP2 10 }
}
enda

onevent EVENT_QUICKKICK
setvar RETURN -1
endevent



