// Civi Code

state civimaletalk
ifstrength 0
{
break
}
randvar MALETALK 450
switch MALETALK
  case 1
  ifrnd 128
  soundonce ASSHOLE2
  break
  case 2
  ifrnd 128
  soundonce BITEMETWICE
  break
  case 3
  ifrnd 128
  soundonce DICKWAD1
  break
  case 4
  ifrnd 128
  soundonce DICKWAD2
  break
  case 5
  ifrnd 128
  soundonce HEY1
  break
  case 6
  ifrnd 128
  soundonce HEY2
  break
  case 7
  ifrnd 128
  soundonce HEY3
  break
  case 8
  ifrnd 128
  soundonce HEYBITEMETWICE1 
  break
  case 9
  ifrnd 128
  soundonce HEYBITEMETWICE2
  break
  case 10
  ifrnd 128
  soundonce HEYSCREWYOUASSHOLE1
  case 11
  ifrnd 128
  soundonce HEYSCREWYOUASSHOLE2
  break
  case 12
  ifrnd 128
  soundonce HEYWATCHITBUDDY1
  break
  case 13
  ifrnd 128
  soundonce HEYWATCHITBUDDY2
  break
  case 14
  ifrnd 128
  soundonce JERKOFF1
  break
  case 15
  ifrnd 128
  soundonce JERKOFF2
  break
  case 16
  ifrnd 128
  soundonce KISSMYASS
  break
  case 17
  ifrnd 128
  soundonce OI1
  break
  case 18
  ifrnd 128
  soundonce OI2
  break
  case 19
  ifrnd 128
  soundonce PIECEOFSHIT1 
  break
  case 20
  ifrnd 128
  soundonce PIECEOFSHIT2
  break
  case 21
  ifrnd 128
  soundonce SONOFABITCH1
  break
  case 22
  ifrnd 128
  soundonce WATCHIT
  break
  case 23
  ifrnd 128
  soundonce WHATSTHEIDEA2
  break
  case 24
  ifrnd 128
  soundonce WHATTHEFU 
  break
  case 25
  ifrnd 128
  soundonce WHATTHEHELL
  break
  endswitch
  ifvarg MALETALK 25 { nullop }
ends

state civifemaletalk
ifstrength 0
{
break
}
randvar FEMALETALK 20
switch FEMALETALK
  case 1
  ifrnd 128
  soundonce ASSHOLE1
  break
  case 2
  ifrnd 128
  soundonce WHATSTHEIDEA1
  break
  endswitch
  ifvarg FEMALETALK 25 { nullop }
ends

// MALE CIVILIAN

action CIVIMALESTAND    0 1 5
action CIVIMALEWALK     0 4 5 1 12
action CIVIMALERUN      0 4 5 1 4
action CIVIMALEDIEING   20 4 1 1 10
action CIVIMALEDEAD     24 1 1
move CIVIMALEWALKS 42
move CIVIMALERUNS 84
move STOP

ai AICIVIMALESTAND CIVIMALESTAND 0
ai AICIVIMALEWALK CIVIMALEWALK CIVIMALEWALKS geth
ai AICIVIMALERUN CIVIMALERUN CIVIMALERUNS geth randomangle
ai AICIVIMALEDIEING CIVIMALEDIEING STOP faceplayer
ai AICIVIMALEDEAD CIVIMALEDEAD STOP faceplayer

define CIVIMALE 3590
define CIVIMALEH 50
spriteshadow CIVIMALE
useractor notenemy CIVIMALE
fall
ifpdistl 1024
state civimaletalk
ifaction 0
{
sizeat 32 32
cstator 257
clipdist 32
strength CIVIMALEH
action CIVIMALESTAND
ai AICIVIMALEWALK
}
	ifhitweapon
	{
		guts JIBS6 10
		addvar PSCORE 10
		ai AICIVIMALERUN ifrnd 56 ai AICIVIMALERUN
		ifdead
	{
spawn BLOODPOOL
soundonce CIVIKILLED
action CIVIMALEDIEING
ai AICIVIMALEDIEING
	} 
}

ifaction CIVIMALEDIEING
{
	ifactioncount 4
	{
		fall
		cstat 0
		action CIVIMALEDEAD
		ai AICIVIMALEDEAD
		break
	}
}
enda

// FEMALE CIVILIAN

action CIVIFEMALESTAND    0 1 5
action CIVIFEMALEWALK     0 4 5 1 12
action CIVIFEMALERUN      0 4 5 1 4
action CIVIFEMALEDIEING   20 4 1 1 10
action CIVIFEMALEDEAD     24 1 1
move CIVIFEMALEWALKS 42
move CIVIFEMALERUNS 84

ai AICIVIFEMALESTAND CIVIFEMALESTAND 0
ai AICIVIFEMALEWALK CIVIFEMALEWALK CIVIFEMALEWALKS geth
ai AICIVIFEMALERUN CIVIFEMALERUN CIVIFEMALERUNS geth randomangle
ai AICIVIFEMALEDIEING CIVIFEMALEDIEING STOP faceplayer
ai AICIVIFEMALEDEAD CIVIFEMALEDEAD STOP faceplayer

define CIVIFEMALE 3620
define CIVIFEMALEH 50
spriteshadow CIVIFEMALE
useractor notenemy CIVIFEMALE
fall
ifpdistl 1024
state civifemaletalk
ifaction 0
{
sizeat 32 32
cstator 257
clipdist 32
strength CIVIFEMALEH
action CIVIFEMALESTAND
ai AICIVIFEMALEWALK
}
	ifhitweapon
	{
		guts JIBS6 10
		addvar PSCORE 10
		ai AICIVIFEMALERUN ifrnd 56 ai AICIVIFEMALERUN
		ifdead
	{
spawn BLOODPOOL
soundonce CIVIKILLED
action CIVIFEMALEDIEING
ai AICIVIFEMALEDIEING
	} 
}

ifaction CIVIFEMALEDIEING
{
	ifactioncount 4
	{
		fall
		cstat 0
		action CIVIFEMALEDEAD
		ai AICIVIFEMALEDEAD
		break
	}
}
enda
