/*
CREDITS:
Yuri voices, landing thump - Black Legion development (Tremulous)
Metal boot step sounds - LucasArts, Raven (SW JKIII:JA)

Alosha voices - Westwood (C&C1)
not sure from where I got the Alosha's beret and face... dusted off some old skulltag mods, and made them from what I've got from there aeons ago...
Marty voices and sprites - Marty Kirra, of course!
*/

ACTOR Yuri : PlayerPawn
{
	Health 100
   	player.maxhealth 30000 //Originally 50000, but there's some overflow problems if you go about 32767 health.
	Radius 16
	Height 56
	Mass 5500
	PainChance 255
    Player.SoundClass "Cyborg"
    player.forwardmove 1.4
	player.sidemove 1.0
	Player.ColorRange 112, 127
	Player.GruntSpeed 24.0
    damagefactor Normal, 0.75
	Player.DisplayName "Yuri"
	Player.StartItem YuriTrigger
	Player.ColorSet 0, "Communism Red", 176, 191, 176

	Player.StartItem Matchstick
	Player.StartItem Punchokrator
	Player.StartItem JumpingStickyBomb
	
	Player.StartItem Boolet 80
	Player.StartItem JetThruster 10
	
	//Weapon Mags
	Player.StartItem ExcaliAmmo 100
	Player.StartItem CubeAmmo 100
	Player.StartItem SatchelAmmo 100
	
	Player.StartItem BeefClip 9
	Player.StartItem PetrovecClip 30
	Player.StartItem SteamClip 8
	
	Player.WeaponSlot 1, "Razorjack","Excalibat","Powercube","BerserkerFist","MorningStar","Caber","Punchokrator"
	Player.WeaponSlot 2, "Matchstick","MP40"
	Player.WeaponSlot 3, "Leviathan","Pantokrator","Quadvolgue","Violator","Erasus","SchwarzerZwerg"
	Player.WeaponSlot 4, "Gorynch","Libra","Obliterator","Tarpan","PowerOverwhelming","Matryoshka"
	Player.WeaponSlot 5, "BeefSupreme","Okudzhava","Steamroller","Rasputin","Torchglow","Pushka"
	Player.WeaponSlot 6, "Gopnik","Mutilator","Chton","Shurricane","Comrade","Colonel"
	Player.WeaponSlot 7, "Instafun","Channeler","Ramjet","Petrovec","Tepesch","Stachanov"
	Player.WeaponSlot 8, "PlanetCracker","Vindicator","Borsch","Gurumaster","Yamato","Deathhead"

    damagefactor "Nope", 0
    +DONTBLAST
	States
	{
	Spawn:
		PLAY A -1
		Stop
 	 See:
	    TNT1 A 0 A_JumpIfInventory("BerserkerTrigger",1,"TankMode")
		PLAY D 0 A_SpawnItemEx ("YuriStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		PLAY AAAAABBBBB 1
		PLAY D 0 A_SpawnItemEx ("YuriStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		PLAY CCCCCDDDDD 1
		Goto Spawn
    TankMode:
		PLAY D 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		PLAY AAAAABBBBB 1
		PLAY D 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		PLAY CCCCCDDDDD 1
		Goto Spawn
	Melee:
		PLAY F 6 Bright
		Goto Missile
	Missile:
		PLAY E 12
		Goto Spawn
	Pain:
		PLAY G 0 A_JumpIfInventory("SalvationActive",1,"IMMELTINNNGG")
		PLAY G 3
		PLAY G 3 A_Pain
		Goto Spawn
	IMMELTINNNGG:
		PLAY G 0 A_JumpIfHealthLower(500, "Kidding")
		Goto Pain+1
	Kidding:
 		TNT1 A 0 A_GiveInventory("SalvationHealth")
		TNT1 A 0 A_GiveInventory("Salvate")
		TNT1 A 0 A_PlaySound("Items/SalvationUsed")
		TNT1 A 0 A_TakeInventory("SalvationSphere")
		TNT1 A 0 A_SetBlend("Green",0.5,50)
		TNT1 A 0 A_TakeInventory("SalvationActive",1)
		Goto Pain+1
	Death:
	AltSkinDeath:
		PLAY H 5 A_PlaySoundEx("Weapons/LarpaExp","SoundSlot5")
		PLAY I 5 A_PlayerScream
		PLAY J 5 A_NoBlocking
		PLAY KLM 5
		PLAY N -1
		Stop
	XDeath:
	AltSkinXDeath:
		 PLAY H 0 A_PlaySoundEx("Cyborg/GoesNuke","SoundSlot5")
		 PLAY GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 2 A_SpawnItemEx("MissileExpSmoke", random(1,-1), random(1,-1), 20, random(1,-1), random(1,-1), random(1,-1.5), random(0,360), 128, 0)
		 PLAY HIJKL 2
 		 PLAY A 0 A_PlaySoundEx("stalinnuke/explode","SoundSlot5",0,2)
 		 TNT1 A 0 //A_SpawnItem("Nuke", 0, 2, 0)
   		 PLAY A 0 A_NoBlocking
		 TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 //A_SpawnItemEx("KaBoom",random(-100,100),random(-100,100),random(-100,100),random(-4,4),random(-4,4),random(-2,6),random(0,359),SXF_TRANSFERTRANSLATION|SXF_SETMASTER|SXF_NOCHECKPOSITION,40)
    		 TNT1 A -1
    		 Stop
	}
}

ACTOR YuriDummy : Yuri 24544
{
	Translation "112:127=176:191"
}

Actor YuriTrigger : Inventory
{
	Inventory.MaxAmount 1
}

actor YuriStep
{
PROJECTILE
+NOBLOOD
+DONTBLAST
damage 0
radius 10
Speed 20
deathsound "Cyborg/Stomp"
States
{
Spawn:
TNT1 A 1
Stop
Death:
TNT1 A 0
TNT1 A 1
Stop
}
}

ACTOR Alosha : PlayerPawn
{
	Game Doom
	Health 100
    player.maxhealth 30000
	Radius 16
	Height 56
	Mass 85
	PainChance 255
    Player.SoundClass "Alosza"
    Player.ForwardMove 1.1
	Player.SideMove 1
	Player.ColorRange 112, 127
	Player.GruntSpeed 20.0
    damagefactor Normal, 0.9
	Player.DisplayName "Alosha"
	Player.StartItem AloszaTrigger
	Player.ColorSet 0, "GDI Standard", 128, 143, 135

	Player.StartItem BernieScreamer
	Player.StartItem Shooter
	Player.StartItem Satcheler
	Player.StartItem JumpingStickyBomb

	Player.StartItem SatchelAmmo 100
	Player.StartItem Boolet 80
	Player.StartItem JetThruster 10
	
	//Weapon Mags
	Player.StartItem ExcaliAmmo 100
	Player.StartItem CubeAmmo 100
	Player.StartItem BeefClip 9
	Player.StartItem PetrovecClip 30
	Player.StartItem SteamClip 8
	
	Player.WeaponSlot 1, "MorningStar","Caber","Razorjack","Excalibat","Punchokrator","Powercube","BerserkerFist","Shooter"
	Player.WeaponSlot 2, "Satcheler","BernieScreamer","MP40"
	Player.WeaponSlot 3, "Erasus","SchwarzerZwerg","Leviathan","Pantokrator","Quadvolgue","Violator"
	Player.WeaponSlot 4, "PowerOverwhelming","Matryoshka","Gorynch","Libra","Obliterator","Tarpan"
	Player.WeaponSlot 5, "Torchglow","Pushka","BeefSupreme","Okudzhava","Steamroller","Rasputin"
	Player.WeaponSlot 6, "Comrade","Colonel","Gopnik","Mutilator","Chton","Shurricane"
	Player.WeaponSlot 7, "Tepesch","Stachanov","Instafun","Channeler","Ramjet","Petrovec"
	Player.WeaponSlot 8, "Yamato","Deathhead","PlanetCracker","Vindicator","Borsch","Gurumaster"

    damagefactor "Nope", 0
    +DONTBLAST
	States
	{
	Spawn:
		COMA A -1
		Stop
 	 See:
	    TNT1 A 0 A_JumpIfInventory("BerserkerTrigger",1,"TankMode")
		COMA A 0 A_SpawnItemEx ("HumanStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		COMA AAAAABBBBB 1
		COMA C 0 A_SpawnItemEx ("HumanStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		COMA CCCCCDDDDD 1
		Goto Spawn
	TankMode:
		COMA A 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		COMA AAAAABBBBB 1
		COMA C 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		COMA CCCCCDDDDD 1
		Goto Spawn
	Melee:
		COMA F 6 Bright
		Goto Missile
	Missile:
		COMA E 12
		Goto Spawn
	Pain:
		COMA G 0 A_JumpIfInventory("SalvationActive",1,"IMMELTINNNGG")
		COMA G 3
		COMA G 3 A_Pain
		Goto Spawn
	IMMELTINNNGG:
		PLAY G 0 A_JumpIfHealthLower(500, "Kidding")
		Goto Pain+1
	Kidding:
 		TNT1 A 0 A_GiveInventory("SalvationHealth")
		TNT1 A 0 A_GiveInventory("Salvate")
		TNT1 A 0 A_PlaySound("Items/SalvationUsed")
		TNT1 A 0 A_TakeInventory("SalvationSphere")
		TNT1 A 0 A_SetBlend("Green",0.5,50)
		TNT1 A 0 A_TakeInventory("SalvationActive",1)
		Goto Pain+1
	Death:
	AltSkinDeath:
		COMA H 5 A_PlayerScream
		COMA I 5 A_NoBlocking
		COMA JKLM 5
	DeathLoop:
		COMA NX 10
		Loop
	XDeath:
	AltSkinXDeath:
		COMA P 3 A_XScream
		COMA Q 3 A_NoBlocking
		COMA RSTUV 3
		COMA W -1
    		Stop
	}
}

ACTOR AloshaDummy : Alosha 24545
{
	Translation "112:127=128:143"
}

ACTOR AloszaTrigger : Inventory
{
	Inventory.MaxAmount 1
}

actor HumanStep
{
PROJECTILE
+NOBLOOD
+DONTBLAST
damage 0
radius 10
Speed 20
deathsound "Marine/Step"
States
{
Spawn:
TNT1 A 1
Stop
Death:
TNT1 A 0
TNT1 A 1
Stop
}
}

ACTOR Marty : PlayerPawn
{
	Health 100
   	player.maxhealth 30000
	Radius 16
	Height 56
	Mass 65
	PainChance 255
    Player.SoundClass "marty"
    Player.ForwardMove 1.2
	Player.SideMove 1.1
	Player.GruntSpeed 20.0
	Player.DisplayName "Marty"
	Player.ColorRange 112, 127
	Player.StartItem MartyTrigger
	Player.ColorSet 0, "Capitalism Blue", 200, 207, 200

	Player.StartItem Hornet
	Player.StartItem TreesFists
	Player.StartItem JumpingStickyBomb
	Player.StartItem JetThruster 10
	
	//Weapon Mags
	Player.StartItem ExcaliAmmo 100
	Player.StartItem CubeAmmo 100
	Player.StartItem SatchelAmmo 100
	
	Player.StartItem BeefClip 9
	Player.StartItem PetrovecClip 30
	Player.StartItem SteamClip 8
	
	Player.WeaponSlot 1, "Powercube","BerserkerFist","MorningStar","Caber","Razorjack","Excalibat","TreeFists"
	Player.WeaponSlot 2, "Hornet","MP40"
	Player.WeaponSlot 3, "Quadvolgue","Violator","Erasus","SchwarzerZwerg","Pantokrator","Leviathan"
	Player.WeaponSlot 4, "Obliterator","Tarpan","PowerOverwhelming","Matryoshka","Gorynch","Libra"
	Player.WeaponSlot 5, "Steamroller","Rasputin","Torchglow","Pushka","BeefSupreme","Okudzhava"
	Player.WeaponSlot 6, "Chton","Shurricane","Comrade","Colonel","Gopnik","Mutilator"
	Player.WeaponSlot 7, "Ramjet","Petrovec","Tepesch","Stachanov","Instafun","Channeler"
	Player.WeaponSlot 8, "Borsch","Gurumaster","Yamato","Deathhead","PlanetCracker","Vindicator"

	Player.StartItem Boolet 80
	Player.StartItem BeefClip 9

    damagefactor "Nope", 0
    +DONTBLAST
	States
	{
	Spawn:
		TSAT A -1
		Stop
 	 See:
	    TNT1 A 0 A_JumpIfInventory("BerserkerTrigger",1,"TankMode")
		TSAT A 0 A_SpawnItemEx ("HumanStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		TSAT AAAAABBBBB 1
		TSAT C 0 A_SpawnItemEx ("HumanStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		TSAT CCCCCDDDDD 1
		Goto Spawn
	TankMode:
		TSAT A 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		TSAT AAAAABBBBB 1
		TSAT C 0 A_SpawnItemEx ("TankStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		TSAT CCCCCDDDDD 1
		Goto Spawn
	Melee:
		TSAT F 6 Bright
		Goto Missile
	Missile:
		TSAT E 12
		Goto Spawn
	Pain:
		TSAT G 0 A_JumpIfInventory("SalvationActive",1,"IMMELTINNNGG")
		TSAT G 3
		TSAT G 3 A_Pain
		Goto Spawn
	IMMELTINNNGG:
		TSAT G 0 A_JumpIfHealthLower(500, "Kidding")
		Goto Pain+1
	Kidding:
 		TNT1 A 0 A_GiveInventory("SalvationHealth")
		TNT1 A 0 A_GiveInventory("Salvate")
		TNT1 A 0 A_PlaySound("Items/SalvationUsed")
		TNT1 A 0 A_TakeInventory("SalvationSphere")
		TNT1 A 0 A_SetBlend("Green",0.5,50)
		TNT1 A 0 A_TakeInventory("SalvationActive",1)
		Goto Pain+1
	Death:
	AltSkinDeath:
		TSAT H 5 A_PlayerScream
		TSAT I 5 A_NoBlocking
		TSAT JK 5
		TSAT L -1
		Stop
	XDeath:
	AltSkinXDeath:
		TSAT A 0
		TSAT A 0 A_PlaySoundEx("Marty/TREES","Normal",0,2)
		TSAT MNOPPPPP 6
		TSAT Q 5 A_NoBlocking
		TSAT RQRQRQRQRQRQRQR 3
		TSAT STU 5
		TSAT V 10
		TSAT V 1 //A_SpawnItemEx("YamatoHit")
		TSAT V -1
    		Stop
	}
}

ACTOR MartyDummy : Marty 24546
{
	Translation "112:120=200:207", "121:127=240:247"
}

Actor MartyTrigger : Inventory
{
	Inventory.MaxAmount 1
}
