/*
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 24544
{
	Health 100
   	player.maxhealth 50000
	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.StartItem Hydra
	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, "Hydra","MP40"
	Player.WeaponSlot 3, "Leviathan","Pantokrator","Quadvolgue","Violator","Erasus","SchwarzerZwerg"
	Player.WeaponSlot 4, "Gorynch","Libra","Obliterator","Tarpan","PowerOverwhelming","Wolgir"
	Player.WeaponSlot 5, "BeefSupreme","Okudzhava","Steamroller","Rasputin","Torchglow","Pushka"
	Player.WeaponSlot 6, "Gopnik","Immolator","Chton","Shurricane","Katyusha","Comrade"
	Player.WeaponSlot 7, "Instafun","Channeler","Ramjet","Petrovec","Pushkin","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 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 24545
{
	Health 100
    player.maxhealth 50000
	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.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","Wolgir","Gorynch","Libra","Obliterator","Tarpan"
	Player.WeaponSlot 5, "Torchglow","Pushka","BeefSupreme","Okudzhava","Steamroller","Rasputin"
	Player.WeaponSlot 6, "Katyusha","Comrade","Gopnik","Immolator","Chton","Shurricane"
	Player.WeaponSlot 7, "Pushkin","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 ("MarineStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		COMA AAAAABBBBB 1
		COMA C 0 A_SpawnItemEx ("MarineStep", 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 AloszaTrigger : Inventory
{
	Inventory.MaxAmount 1
}

actor MarineStep
{
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 24546
{
	Health 100
   	player.maxhealth 50000
	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.StartItem MartyTrigger

	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","Wolgir","Gorynch","Libra"
	Player.WeaponSlot 5, "Steamroller","Rasputin","Torchglow","Pushka","BeefSupreme","Okudzhava"
	Player.WeaponSlot 6, "Chton","Shurricane","Katyusha","Comrade","Gopnik","Immolator"
	Player.WeaponSlot 7, "Ramjet","Petrovec","Pushkin","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 ("MarineStep", 0, 0, 0, 0, 0, -20, 0,0, 0) 
		TSAT AAAAABBBBB 1
		TSAT C 0 A_SpawnItemEx ("MarineStep", 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 MartyTrigger : Inventory
{
	Inventory.MaxAmount 1
}
