Actor LCroft : PlayerPawn
{
	Mass 700
	Player.Maxhealth 100
	Scale 1.1
	Player.SoundClass "Lara"
    Player.WeaponSlot 1, "Lara-Pistols"
    Player.WeaponSlot 2, "Lara-Rifle"
	Player.WeaponSlot 3, "Lara-Bow"
	Player.DisplayName "Lara Croft"	
	Player.StartItem "Lara-Pistols", 1
	Player.StartItem "Lara-Rifle", 1
	Player.StartItem "Lara-Bow", 1
	Player.StartItem "BowAmmo1", 30
	Player.StartItem "BowAmmo2", 10
	Player.StartItem "IsHuman", 1
    Player.StartItem "Dual9mmPrimaryLara", 30
	Player.StartItem "Dual9mmSecondaryLara", 120
	Player.StartItem "LARPrimaryLara", 10
	Player.StartItem "LARSecondaryLara", 10
	Player.StartItem "clip"
	Player.StartItem "SpecialAbility", 1
	Player.StartItem "Screamer", 0
	Player.ScoreIcon "LCROFTST"
	Player.ColorRange 112, 127
	Player.ForwardMove 1.1
	Player.SideMove 1.1
	Player.JumpZ 11
	DamageFactor "Grenade", 0.4
	Damagefactor "normal", 0.9
	DamageFactor "GhostTrap", 0.0
	Damagefactor "Sentinel", 0.0
	Damagefactor "MechPewPews", 0.0
	Damagefactor "MacheteSlicerino", 0.0
    Damagefactor "GasterSmokeHurt", 0.0
	Damagefactor "StrifeSuit", 0.0
	PainChance 256
	LimitedToTeam 0
	+NOSKIN
	+NOICEDEATH
	+GHOST
	+QUICKTORETALIATE
	States
	{
	Spawn:
		TNT1 A 0 ACS_NamedExecute("PlayerSpawn")
		LARA Z 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA Z 1 Setplayerproperty(0,0,0)
		Loop
	See:
		LARA A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA A 0 A_JumpIfHealthLower(50,"INeedHealingSee")
		LARA AB 6
		LARA A 0 A_SpawnItemEx("LaraStomp",0,0,0,0,0,-20,0,0,0) 
		LARA CD 6
		LARA A 0 A_SpawnItemEx("LaraStomp",0,0,0,0,0,-20,0,0,0) 
		Goto Spawn
	INeedHealingSee:
		LARA A 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA A 0 A_SpawnItemEx("INeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		LARA AB 6
		LARA A 0 A_SpawnItemEx("LaraStomp",0,0,0,0,0,-20,0,0,0) 
		LARA CD 6
		LARA A 0 A_SpawnItemEx("LaraStomp",0,0,0,0,0,-20,0,0,0) 
		Goto Spawn
	Missile:
		LARA E 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA E 12 
		Goto Spawn
	Melee:
		LARA F 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA F 6 bright
		Goto Missile
	Pain.TeleOtherPlant:
	TNT1 A 0 A_GiveInventory("TeleOtherPlanted",1)
	Goto Pain
	Pain.TeleOtherActivateDamage:
	TNT1 A 0 A_JumpIfInventory("TeleOtherPlanted",1,"TeleOtherSend")
	Goto Pain	
	TeleOtherSend:
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 ACS_ExecuteAlways(466,0,2)
	LARA G 1 A_PlaySound("TeleOther/activate",CHAN_6,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	Goto Pain
	Death.TeleOtherActivateDamage:
	TNT1 A 0 A_JumpIfInventory("TeleOtherPlanted",1,"TeleOtherSplode")
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 A_GiveToTarget("KilledMe",1)
	LARA G 1 A_PlaySound("Gibbage/XSplat")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
	TeleOtherSplode:
	TNT1 A 0 A_TakeInventory("TeleOtherPlanted",1)
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_7,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	TNT1 A 0 ACS_ExecuteAlways(466,0,2)
	TNT1 A 0 A_GiveToTarget("KilledMe",1)
	LARA G 1 A_PlaySound("Gibbage/XSplat")
	TNT1 A 0 A_PlaySound("TeleOther/activate",CHAN_6,1)
	TNT1 A 0 A_SpawnItem("TeleOtherFog")
	NULL A 0 A_PlaySound("gibbage/playergib") 
	NULL A 0 A_NoBlocking 
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
	NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
	NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
	Pain.Choke:
		TNT1 A 0 A_GiveToTarget("Health",2)
		TNT1 A 0 A_GiveToTarget("ChokeCharging",1)
		Goto Pain
	Pain.JusticarSpike:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
		TNT1 A 0 A_GiveToTarget("Health",2)
	Pain:
		LARA G 0 A_JumpIfInventory("GloomWatchStack",100,"GloomDeath")
		LARA G 4 
		LARA G 4 A_Pain
		Goto Spawn
	Pain.GloomWatcherLure:
	TNT1 A 0 ACS_ExecuteAlways(134)
	TNT1 A 0 A_Playsound("GloomWatcher/FeintAttack",CHAN_7)
	Goto pain
	Death.GloomWatcherlure:
	TNT1 A 0 ACS_ExecuteAlways(134)
	TNT1 A 0 A_Playsound("GloomWatcher/FeintAttack",CHAN_7)
	Goto Death.Jitter
	GloomDeath:
	TNT1 A 1 Damagething(99999,18)
	Goto Death
	Death.Fleshbent:
	TNT1 A 0 A_GiveToTarget("TentacleAmmo",2)
	TNT1 A 0 A_GiveToTarget("Soulscepter1",15)
	TNT1 A 0 A_GiveToTarget("Soulscepter2",50)
	Goto Death.Jitter
	Pain.LoonaClawing:
	TNT1 A 0 A_GiveToTarget("Health",6)
	LARA G 20 Setplayerproperty(0,1,0)
	LARA G 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Pain.LoonaClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",5)
	LARA G 20 Setplayerproperty(0,1,0)
	LARA G 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Pain.LoonaClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",8)
	LARA G 20 Setplayerproperty(0,1,0)
	LARA G 2 Setplayerproperty(0,0,0)
	Goto Spawn
	Death.LoonaClawing:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Death.LoonaClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Death.LoonaClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death.Jitter
	Pain.BastetClawing:
		TNT1 A 0 A_GiveToTarget("Health",4)
		Goto Pain
	Pain.BastetClawingLightSFX:
		TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_5)
		TNT1 A 0 A_GiveToTarget("Health",3)
		Goto Pain
	Pain.BastetClawingHeavySFX:
		TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_5)
		TNT1 A 0 A_GiveToTarget("Health",6)
		Goto Pain
	Pain.Sickle:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
	Pain.Wendigo:
		TNT1 A 0 A_PlaySound("RAVEN1",CHAN_5)
		TNT1 A 0 A_SpawnItemEx ("GIB4", 0, 0, random(0,42), 0, 0, random(2,4), random(0,360), 128)
		TNT1 A 0 A_SpawnItemEx ("GIB4", 0, 0, random(0,42), 0, 0, random(2,4), random(0,360), 128)
		Goto Pain
		Pain.Justicar:
	TNT1 A 0 A_custommissile("Justicarattack",14,0,random(0,360))
	TNT1 A 0 A_GiveToTarget("Health",1)
	TNT1 A 0 A_GiveToTarget("JusticarSecondaryAmmo",1)
	Goto pain
	Pain.CreepStun:
    LARA G 0 A_Pain
	LARA G 0 A_GiveToTarget("health",5)
	LARA G 40 Setplayerproperty(0,1,0)
	LARA G 2 Setplayerproperty(0,0,0)
		Goto Spawn
	Death.Creeper:
		LARA A 0 A_PlaySoundEx("CreeperAttack","Body")
		TNT1 A 0 A_GiveToTarget("GhoulAmmo",1)
		LARA A 0 A_SpawnItemEx("CreeperPopUp",0,0,10)
		LARA A 0 A_GiveToTarget("CreeperHeal",1)
		LARA A 0 ACS_ExecuteAlways(997,0,1)
		Goto DeathAnimAlt
	Death.CreepStun:
		LARA A 0 A_GiveToTarget("Unlock13",1)
		LARA A 0 A_GiveToTarget("CreepGotya",1)
		Goto DeathAnimAlt
	Death.SjasScream:
	Death.FrostbiteWind:
	Death.EmtalicSaw:
	Death.LichFire:
		LARA A 0 A_GiveToTarget("KilledJ",1)
		Goto DeathAnim
	Death:
	DeathAnim:
		LARA A 0 A_GiveToTarget("KillBeep",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_TakeInventory("KilledCount",999)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledCroft",1)
		LARA H 5
		LARA I 5 A_PlayerScream
		LARA J 5 A_NoBlocking
		LARA KLM 5
		LARA N -1
		Stop
	DeathAnimAlt:
		LARA A 0 A_GiveToTarget("KillIndicator",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_TakeInventory("KilledCount",999)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledCroft",1)
		LARA H 5
		LARA I 5 A_PlayerScream
		LARA J 5 A_NoBlocking
		LARA KLM 5
		LARA N -1
		Stop
	Death.GhoulChainSaw:
	TNT1 A 0 A_GiveToTarget("Health",50)
	TNT1 A 0 A_GiveToTarget("BearTarpsAmmo",1)
	TNT1 A 0 A_GiveToTarget("SawyerRageammo",10)
	TNT1 A 0 A_GiveToTarget("DUMMY_SawyerBloodyChainsaw", 1)
	Goto Death.Jitter
	Death.BastetClawing:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.BastetClawingLightSFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitLight",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.BastetClawingHeavySFX:
	TNT1 A 0 A_PlaySound("Bastet/ClawHitHeavy",CHAN_6)
	TNT1 A 0 A_GiveToTarget("Health",30)
	Goto Death.Jitter
	Death.Choke:
		TNT1 A 0 A_GiveToTarget("Health",25)
		TNT1 A 0 A_GiveToTarget("ChokeCharging",40)
	Goto Death.Jitter
	Death.JusticarSpike:
		TNT1 A 0 A_GiveToTarget("Health",15)
	Goto Death.Jitter
	Death.Sinistar:
		TNT1 A 0 A_GiveToTarget("SiniPrimary",1)
	Goto Death.Jitter
	Death.MapGibber:
		TNT1 A 0 A_PlaySound("car/hit",chan_auto)
	Death.MapGibber2:
	Death.Jitter:
		LARA A 0 A_GiveToTarget("KillBeep",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledCroft",1)
		LARA A 0 A_GiveToTarget("Crunched",1)
		LARA G 1 A_PlaySound("Gibbage/XSplat")
		NULL A 0 A_PlaySound("Gibbage/PlayerGib") 
		NULL A 0 A_NoBlocking 
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.JitterAlt:
		LARA A 0 A_GiveToTarget("KillIndicator",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledCroft",1)
		LARA A 0 A_GiveToTarget("Crunched",1)
		LARA G 1 A_PlaySound("Gibbage/XSplat")
		NULL A 0 A_PlaySound("Gibbage/PlayerGib") 
		NULL A 0 A_NoBlocking 
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.Harvester:
		TNT1 A 0 A_GiveToTarget("SoulHarvesterFragment",1)
		TNT1 A 0 A_GiveToTarget("KilledJ",1)
		Goto Death.Jitter
	Death.HarvesterRock:
		TNT1 A 0 ACS_NamedExecute("SilverFieldsBell",55)
		Goto DeathAnim
	Death.HarvesterAlt:
		TNT1 A 0 A_GiveToTarget("Crunched2",1)
		TNT1 A 0 ACS_NamedExecute("SilverFieldsBell",55)
		Goto Death.Jitter
	Death.Ravager:
		LARA A 0 A_GiveToTarget("KilledR",1)
		LARA A 0 A_GiveToTarget("Health",100)
		LARA A 0 ACS_ExecuteAlways(997,0,2)
		LARA A 0 A_PlaySoundEx("RavagerAttack","Body")
		LARA A 0 A_SpawnItemEx("RavagerHit",0,0,32)
		Goto DeathAnimAlt
	Death.RavagerBall:
		LARA A 0 A_GiveToTarget("RavagerGotYa",1)
		LARA A 0 A_GiveToTarget("KilledJ",1)
		Goto DeathAnimAlt
	Death.Yurei:
		LARA A 0 A_GiveToTarget("KilledY",1)
		LARA A 0 A_PlaySoundEx("YureiKill1","Body",0,1)
		LARA A 0 ACS_ExecuteAlways(997,0,3)
		Goto DeathAnimAlt
	Death.YureiBall:
		LARA A 0 A_GiveToTarget("Health",10)
		LARA A 0 A_SpawnItemEx("BallFire")
		Goto Death.SjasScream
	Death.UboaRawrScream:
		Goto DeathAnimAlt
	Death.Misty:
	Death.Whiteface:
		LARA A 0 A_GiveToTarget("KillBeep",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledM",1)
		LARA HHHHH 1 A_FadeOut(0.05)
		LARA A 0 A_PlayerScream
		LARA IIIIIJJJJJKKKKK 1 A_FadeOut(0.05)
		LARA A 0 A_NoBlocking
		NULL A -1
		Stop
	Death.Clowny:
		LARA A 0 ACS_ExecuteAlways(997,0,4)
		LARA A 0 A_GiveToTarget("KilledC",1)
		LARA A 0 A_GiveToTarget("ClownyAmmo",5)
		Goto DeathAnim
	Death.Mohoph:
		LARA A 0 A_GiveToTarget("TransCroft",1)
		TNT1 A 0 A_GiveToTarget("MorphAmmo", 1)
		LARA A 0 A_PlaySoundEx("MohophKill","Body")
		LARA A 0 ACS_ExecuteAlways(997,0,5)
		Goto DeathAnim
	Death.EmtalicWeak:
		LARA A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto DeathAnim
	Death.Emtalic:
		LARA A 0  A_PlaySoundEx("RamSuccess","Body")
		Goto Death.Jitter
	Death.I1:
		LARA A 0 A_SpawnItemEx("Heart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		LARA A 0 A_GiveToTarget("KilledI1",1)
		Goto DeathAnim
	Death.I2:
		LARA A 0 A_GiveToTarget("KillBeep",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledI2",1)
		LARA A 0 A_GiveToTarget("Clip",1)
		LARA G 0 SetPlayerProperty(0,1,4)
		LARA G 0 A_Stop
		LARA GGGGGGGGGGGGGG 5 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		NULL A 0 A_PlayerScream
		NULL A 0 ACS_ExecuteAlways(997,0,6)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, 33, 160, 0)
		NULL A 0 A_SpawnItemEx("PLAYERBOOT", 0, 0, 11, 0, 0, 27, -33, 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 25, 0, 0, 50, random(0,360), 160, 0)
		NULL A 0 A_SpawnItemEx("SHOTGUYARM", 0, 0, 36, 0, 0, 32, random(0,360), 160, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner1", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner2", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
        NULL A 0 A_SpawnItemEx ("BoneShardSpawner3", 1, 1, random(8,32), random(0,5), random(0,5), random(8,18), random(0,360), SXF_NOCHECKPOSITION, 0)
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A 1 A_SpawnItemEx("SkullGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A 1 A_SpawnItemEx("ChestGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("ArmGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("HandGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A 1 A_SpawnItemEx("CoccyxGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AA 1 A_SpawnItemEx("LegGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL AAAAAA 1 A_SpawnItemEx("BoneGib",0,0,0,random(2,4),random(2,4),random(8,12),random(-180,180))
		NULL A -1 A_NoBlocking
		Stop
	Death.I3:
		LARA A 0 A_GiveToTarget("KillBeep",1)
		LARA A 0 A_GiveInventory("ItemDeath",1)
		LARA A 0 A_GiveToTarget("KilledMe",1)
		LARA A 0 A_GiveToTarget("KilledI3",1)
		LARA HHHHH 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		LARA I 0 A_PlayerScream
		LARA IIIII 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		LARA J 0 A_NoBlocking
		LARA JJJJJKKKKKLLLLLMMMMM 1 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		LARA NNNNNNN 3 A_SpawnItemEx("PainSmoke",0,random(-22,22),random(-22,22),random(2,4),momy,random(8,12),random(-180,180))
		LARA N -1
		Stop
	Death.I4:
		LARA A 0 A_GiveToTarget("KilledI4",1)
		Goto DeathAnim
	Death.I5:
		LARA A 0 A_GiveToTarget("KilledI5",1)
		Goto DeathAnim
	Pain.RavagerBall:
		LARA A 0 ACS_ExecuteAlways(920,0)
		Goto Pain
	Pain.YureiBall:
		LARA A 0 A_GiveToTarget("Health",10)
		LARA A 0 A_SpawnItemEx("BallFire")
		Goto Pain
	Pain.Emtalic:
		LARA A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto Pain
	Pain.EmtalicWeak:
		LARA A 0 A_PlaySoundEx("RamSuccess","Body")
		Goto Pain
	Death.Tenebra:
		TNT1 A 0 A_GiveToTarget("Health",20)
		Goto DeathAnim
	Death.TenebraRail:
	Death.Telefrag:
	Death.Grenade:
	Death.Termissiles:
	Death.ChaosExpl12:
	Death.KarenExplo:
	Death.IlluNukeKABUUM:
	Death.CalebDynamite:
	Death.Wendigo:
	Death.MorphRipperGib:
	Death.DarkVortex:
	Death.ImpostorJitter:
	Death.PuppetStrings:
	Death.LichIce:
	Death.LichLightning:
	Death.AsylumCannonBall:
		Goto Death.Jitter
	Death.TrueDivine:
		TNT1 A 0 A_PlaySoundEx("SoulSnatchStinger",CHAN_AUTO,0,1)
		TNT1 A 0 A_SpawnItemEx("SoulSnatch")
		Goto Death.JitterAlt
	Death.Judgement:
		TNT1 A 0 A_SpawnItemEx("StellarisThunderFX")
		Goto Death.JitterAlt
	Death.VoltMelee:
	Death.AmperRail:
		TNT1 A 0 A_GiveToTarget("VoltRingAmmo",2)
		TNT1 A 0 A_GiveToTarget("AmperSpeedTokenCheck",1)
		Goto Death.Jitter
	Pain.FrostbiteWind:
	Pain.Ravager:
	Pain.Juglava:
	Pain.HarvesterRock:
	Pain.EmtalicSaw:
	Pain.MorphRipper:
	Pain.MorphRipperGib:
	Pain.I1:
	Pain.I3:
	Pain.ZombiePoison:
	Pain.Asylum:
	Pain.AsylumCannonBall:
	Pain.FleshlingMissile:
	Pain.DarkVortex:
	Pain.ImpostorJitter:
	Pain.BlueFire:
	Pain.PuppetStrings:
	Pain.LichFire:
	Pain.LichIce:
	Pain.LichLightning:
	Pain.Whiteface:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
		Goto Pain
	}
}

Actor LaraStomp : CyborgStomp
{
	DeathSound "LaraStep"
	
}

ACTOR Lara-Rifle : Weapon
{
  Weapon.AmmoUse 0
  Scale 0.25
  Weapon.AmmoGive2 20
  Inventory.icon "TNT1A0"
  Weapon.AmmoType "LARPrimaryLara"
  Weapon.AmmoType2 "LARSecondaryLara"
  Obituary "%k taught %o some manners."
  +WEAPON.NOAUTOFIRE
  +WEAPON.NOALERT
  Inventory.Pickupmessage "You picked up the Lever-Action Rifle."
  Inventory.PickupSound "lvac/pickup"
  Tag "Lever-Action Rifle"
  States
  {
  Ready:
    LVID A 0 A_PlaySoundEx("lvac/select","SoundSlot6")
	LVSS ABCDEFGHIJK 2
	TNT1 A 0 A_JumpIfInventory("CyborgDashCheck", 1, "ReloadCheck")
	LVID A 0 A_JumpIfInventory("IsReloading",1,"ToReload")
	LVID A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	BPRI A 0 
	BPRI A 0 
    LVID A 1 A_WeaponReady
    Goto Ready+12
  ReloadCheck:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	TNT1 A 0 A_JumpIfInventory("CanReload", 1, "Reload")
	Goto Ready+12
  ReadyIS:
	BPRI A 0 
	 BPRI A 0
    LVID B 1 A_WeaponReady(1)
	Goto Ready+12
  ToReady:
    TNT1 A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	Goto Ready+12
	TNT1 AAA 0
	TNT1 A 0 A_PlaySound("9mm/dryfire")
	TNT1 A 0 A_Print("Out Of Ammo!")
	TNT1 A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	Goto Ready+12
  ToReload:
    TNT1 A 0 A_TakeInventory("IsReloading",1)
	TNT1 A 0 A_JumpIfInventory("LARPrimaryLara",10,"ToReady")
    TNT1 A 0 A_JumpIfInventory("LARSecondaryLara",1,"Reload")
	Goto ToReady+2
  AltFire:
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	TNT1 A 0 A_JumpIfInventory("IronSights",1,"ZoomOut")
	Goto ZoomIn
  ZoomIn:
	TNT1 A 0 A_ZoomFactor(2.50)
	TNT1 A 0 A_GiveInventory("IronSights",1)
	LVTR ABC 1
	Goto ReadyIS
   ZoomOut:
	TNT1 A 0 A_ZoomFactor(1.0)
	TNT1 A 0 A_TakeInventory("IronSights",1)
	LVTR CBA 1
	Goto Ready+12
  Deselect:
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	 KSGS A 0 A_TakeInventory("IronSights",1)
	 KSGS A 0 A_ZoomFactor(1.0)
     LVPD ABCDEFG 1 A_Lower
     TNT1 AAAAAAAAAA 0 A_Lower
	 TNT1 A 1 A_Lower
     Goto Deselect+9
  Select:
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
     TNT1 A 0 A_Raise
     Wait
  Fire:
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
    PISG B 0 A_JumpIfInventory("LARPrimaryLara",1,1)
	Goto ToReload
	TNT1 A 0 A_GiveInventory("CanReload", 1)
    PISG B 0 A_JumpIfInventory("IronSights",1,"FireIS")
	PISG B 0 A_TakeInventory("LARPrimaryLara",1)
	PISG B 0 A_PlaySoundEx("lvac/fire","Weapon")
    PISG B 0 A_FireBullets (0.2, 0.2, 1, 22, "RevyRifleBullet", FBF_USEAMMO|FBF_NORANDOM)
	BPSS A 0
	BPSS A 0 A_AlertMonsters
	BPSS A 0
	TNT1 A 0
	LVFI A 2 bright
	BPSS A 0
	LVFI BCDEF 2
	LVFI G 0 A_PlaySoundEx("lvac/cockback","SoundSlot6")
	LVFI G 2
	BPSS A 0 A_FireCustomMissile("LongRifleCaseSpawn",5,0,16,-3)
	LVFI HI 2
	LVFI J 0 A_PlaySoundEx("lvac/cockfwd","SoundSlot6")
	LVFI J 2
	LVFI KLMN 2 A_WeaponReady(1)
    Goto Ready+12
  Reload:
	 TNT1 A 0
	 TNT1 A 0 A_TakeInventory("CanReload")
     TNT1 A 0 A_JumpIfInventory("IronSights",1,"IronToReload")
	 Goto ReloadAnim
   IronToReload:
	 TNT1 A 0 A_ZoomFactor(1.0)
	 TNT1 A 0 A_TakeInventory("IronSights",1)
	 LVTR CBA 1
	 Goto ReloadAnim
  ReloadAnim:
     9MRL A 0 
	 LVRL ABCDEFGH 2
	 Goto ReloadLoop

  ReloadLoop:
     SGRL F 0 A_JumpIfInventory("LARPrimaryLara",10,"ReloadEnd")
	 SGRL F 0 A_JumpIfInventory("LARSecondaryLara",1,1)
	 Goto ReloadEnd
	 LVRL IJ 2
	 SGRL G 0 A_PlaySoundEx("lvac/insert","SoundSlot6")
	 LVRL KL 2
	 SGRL H 0 A_TakeInventory("LARSecondaryLara",1)
	 SGRL H 0 A_GiveInventory("LARPrimaryLara",1)
	 SGRL H 0 A_GiveInventory("LARSecondaryLara",1)
	 LVRL MNOP 1 A_WeaponReady(1)
	 LVRL Q 5 A_WeaponReady(1)
	 Loop

  ReloadEnd:
     LVRL ST 2
	 LVRL U 0 A_PlaySoundEx("lvac/bolt","SoundSlot6")
	 LVRL UVWX 2
	 LVRL YZ 2 A_WeaponReady(1)
	 LVRM AB 2 A_WeaponReady(1)
	 CHGG B 0 A_TakeInventory("IsReloading",1)
	 CHGG B 0 A_TakeInventory("ThrowingGrenade",1)
	 CHGG B 0 A_TakeInventory("DoAltFire",1)
	 Goto ToReady
  FireIS:
    PISG B 0 A_JumpIfInventory("LARPrimaryLara",1,1)
	Goto ToReload
	PISG B 0 A_TakeInventory("LARPrimaryLara",1)
	PISG B 0 A_PlaySoundEx("lvac/fire","Weapon")
    PISG B 0 A_FireBullets (0, 0, 1, 35, "RevyRifleBullet", FBF_USEAMMO|FBF_NORANDOM)
	BPSS A 0
	BPSS A 0 A_AlertMonsters
	BPSS A 0
	TNT1 A 0
	LVFJ A 2 bright
	BPSS A 0
	LVFJ BC 2
	LVID B 2
	LVFJ D 0 A_TakeInventory("IronSights",1)
	LVFJ D 0 A_ZoomFactor(1.0)
	LVTR CB 1
	LVFI G 0 A_PlaySoundEx("lvac/cockback","SoundSlot6")
	LVFI G 2
	BPSS A 0 A_FireCustomMissile("LongRifleCaseSpawn",5,0,16,-3)
	LVFI HI 2
	LVFI J 0 A_PlaySoundEx("lvac/cockfwd","SoundSlot6")
	LVFI J 2
	LVFI KLMN 2 A_WeaponReady(1)
    Goto Ready+12
  Spawn:
    LVID C -1
    Stop
  }
}

ACTOR LARPrimaryLara : Ammo
{
  Inventory.PickupMessage "You got Winchester ammo." // "Picked up a clip."
  Inventory.Amount 1
  Inventory.MaxAmount 10
  Ammo.BackpackAmount 1
  Ammo.BackpackMaxAmount 10
}

ACTOR LARSecondaryLara : Ammo
{
  Inventory.PickupMessage "You got Winchester ammo." // "Picked up a clip."
  Inventory.Amount 8
  Inventory.MaxAmount 20
  Ammo.BackpackAmount 8
  Ammo.BackpackMaxAmount 70
  Inventory.Icon "CLIPA0"
  States
  {
  Spawn:
    SBOX B -1
    Stop
  }
}

Actor CanReload : Inventory
{
	Inventory.Amount 1
	Inventory.MaxAmount 1
}

ACTOR Dual9mmPrimaryLara : Ammo
{
  Inventory.PickupMessage "You got 9mm ammo." // "Picked up a clip."
  Inventory.Amount 1
  Inventory.MaxAmount 30
  Ammo.BackpackAmount 1
  Ammo.BackpackMaxAmount 30
}

ACTOR Dual9mmSecondaryLara : Ammo
{
  Inventory.PickupMessage "Picked up a mag of 9mm ammo." // "Picked up a clip."
  Inventory.PickupSound "9mm/magtap"
  Inventory.Amount 15
  Inventory.MaxAmount 210
  Ammo.BackpackAmount 15
  Ammo.BackpackMaxAmount 210
  Inventory.Icon "CLIPA0"
  States
  {
  Spawn:
    PMAG A -1
    Stop
  }
}

Actor Lara-Pistols : Weapon
{
  Weapon.AmmoUse 0
  Weapon.AmmoUse2 0
  Weapon.AmmoGive2 60
  Inventory.icon "TNT1A0"
  Weapon.AmmoType "Dual9mmPrimaryLara"
  Weapon.AmmoType2 "Dual9mmSecondaryLara"
  Obituary "%k raided %o's tomb!"
  +WEAPON.WIMPY_WEAPON
  +WEAPON.NOAUTOFIRE
  +WEAPON.NOALERT
  Inventory.Pickupmessage "You picked up another 9mm pistol."
  Inventory.PickupSound "9mm/pickup"
  Scale 0.1
  States
  {
  Ready:
    D9IE A 0 A_PlaySoundEx("9mm/select","SoundSlot6")
	D9SS ABCDEFGHIJKLM 2
	TNT1 A 0 A_JumpIfInventory("CyborgDashCheck", 1, "ReloadCheck")
	D9IE A 0 A_JumpIfInventory("IsReloading",1,"ToReload")
	D9IE A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	D9IE A 0 
	BPRI A 0 
	BPRI A 0 
    D9IE A 1 A_WeaponReady
    Goto Ready+14
  ReloadCheck:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	TNT1 A 0 A_JumpIfInventory("CanReload_Duals", 1, "Reload")
	Goto Ready+14
  ReadyIS:
    D9IE A 0
	BPRI A 0
	 BPRI A 0 
    D9IE B 1 A_WeaponReady(1)
	Goto Ready+14
  ToReady:
    TNT1 A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	Goto Ready+14
	TNT1 AAA 0
	TNT1 A 0 A_PlaySound("9mm/dryfire")
	TNT1 A 0 A_Print("Out Of Ammo!")
	TNT1 A 0 A_JumpIfInventory("IronSights",1,"ReadyIS")
	Goto Ready+14
  ToReload:
    TNT1 A 0 A_TakeInventory("IsReloading",1)
	TNT1 A 0 A_JumpIfInventory("Dual9mmPrimaryLara",30,"ToReady")
    TNT1 A 0 A_JumpIfInventory("Dual9mmSecondaryLara",1,"Reload")
	Goto ToReady+2
  AltFire:
    TNT1 A 0
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	TNT1 A 0 A_JumpIfInventory("IronSights",1,"ZoomOut")
	Goto ZoomIn
  ZoomIn:
	TNT1 A 0 A_ZoomFactor(1.25)
	TNT1 A 0 A_GiveInventory("IronSights",1)
	D9TR ABCDEF 1
	Goto ReadyIS
   ZoomOut:
	TNT1 A 0 A_ZoomFactor(1.0)
	TNT1 A 0 A_TakeInventory("IronSights",1)
	D9TR FEDCBA 1
	Goto Ready+14
  Deselect:
	 TNT1 A 0
	 TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	 KSGS A 0 A_TakeInventory("IronSights",1)
	 KSGS A 0 A_ZoomFactor(1.0)
	 KSGS A 0
     D9SS MLKJIHGFEDCBA 1
	 TNT1 A 0
     TNT1 AAAAAAAAAA 0 A_Lower
	 TNT1 A 1 A_Lower
     Goto Deselect+16
  Select:
	 TNT1 A 0
	 TNT1 A 0 A_TakeInventory("CyborgDashCheck")
     TNT1 A 0 A_Raise
     Wait
  Fire:
    PISG B 0 A_JumpIfInventory("Dual9mmPrimaryLara",1,1)
	Goto ToReload
	TNT1 A 0 A_TakeInventory("CyborgDashCheck")
	TNT1 A 0 A_GiveInventory("CanReload_Duals", 1)
    PISG B 0 A_JumpIfInventory("IronSights",1,"FireIS")
	PISG B 0 A_JumpIfInventory("FireLeft",1,"FireLeft")
	PISG B 0 A_TakeInventory("Dual9mmPrimaryLara",1)
	BPSS A 0 A_AlertMonsters
	BPSS A 0 A_GiveInventory("FireLeft",1)
	PISG B 0 A_PlaySoundEx("Lara/Pistolfire","Weapon")
    PISG B 0 A_FireBullets (0, 0, 1, 5, "SeriousDeagle1")
	BPSS A 0
	BPSS A 0
	BPSS A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,16,-3)
	TNT1 A 0
	D9FR A 2 bright
	BPSS A 0
	D9FR B 2
    D9FR CD 2 A_WeaponReady(1)
	D9FR EF 2 A_ReFire
    Goto Ready+14
  FireLeft:
    PISG B 0 A_TakeInventory("Dual9mmPrimaryLara",1)
	BPSS A 0 A_AlertMonsters
	BPSS A 0 A_TakeInventory("FireLeft",1)
	PISG B 0 A_PlaySoundEx("Lara/Pistolfire","Weapon")
    PISG B 0 A_FireBullets (0, 0, 1, 5, "SeriousDeagle1")
	BPSS A 0
	BPSS A 0
	BPSS A 0 A_FireCustomMissile("InvertedRifleCaseSpawn",5,0,-16,-3)
	TNT1 A 0
	D9FL A 2 bright
	BPSS A 0
	D9FL B 2
    D9FL CD 2 A_WeaponReady(1)
	D9FR EF 2 A_ReFire
    Goto Ready+14
  Reload:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("CanReload_Duals")
     TNT1 A 0 A_JumpIfInventory("IronSights",1,"IronToReload")
	 Goto ReloadAnim
   IronToReload:
	 TNT1 A 0 A_ZoomFactor(1.0)
	 TNT1 A 0 A_TakeInventory("IronSights",1)
	 D9TR FEDCBA 1
	 Goto ReloadAnim
  ReloadAnim:
     D9RL A 2
	 D9RL C 0 A_PlaySoundEx("9mm/dualreload1","SoundSlot6")
	 D9RL BCDEFGHIJKLMNOPQRSTUV 2
	 D9RL W 0 A_PlaySoundEx("9mm/dualreload2","SoundSlot6")
	 D9RL WXYZ 2
	 D9RM ABCDEFGHIJKLMNO 1
	 D9RM P 0 A_PlaySoundEx("9mm/dualreload3","SoundSlot6")
	 D9RM PQRST 2
	 D9RM Y 0 A_PlaySoundEx("9mm/dualreload4","SoundSlot6")
	 D9RM UVWXYZ 2
	 D9RN ABC 1
	 CHGG B 0 A_TakeInventory("IsReloading",1)
	 CHGG B 0
	 CHGG B 0 A_TakeInventory("DoAltFire",1)
	 Goto CalcAmmo
   CalcAmmo:
     TNT1 A 0 A_JumpIfInventory("Dual9mmSecondaryLara",1,2)
	 Goto Ready+14
	 TNT1 AAA 0
	 TNT1 A 0 A_JumpIfInventory("Dual9mmPrimaryLara",30,"ToReady")
	 TNT1 A 0 A_TakeInventory("Dual9mmSecondaryLara",1)
	 TNT1 A 0 A_GiveInventory("Dual9mmPrimaryLara",1)
	 Loop
  FireIS:
    PISG B 0 A_JumpIfInventory("Dual9mmPrimaryLara",1,1)
	Goto ToReload
	PISG B 0 A_JumpIfInventory("FireLeft",1,"FireLeftIS")
	PISG B 0 A_TakeInventory("Dual9mmPrimaryLara",1)
	PISG B 0 A_GiveInventory("FireLeft",1)
    // PISG B 0 A_StopSoundEx("Weapon")
	BPSS A 0 A_AlertMonsters
	PISG B 0 A_PlaySoundEx("Lara/Pistolfire","Weapon")
    PISG B 0 A_FireBullets (0, 0, 1, 6, "SeriousDeagle1")
	BPSS A 0
	BPSS A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,5,-3)
	TNT1 A 0
	D9FS A 2 bright
	BPSS A 0
	D9FS B 2
    D9FS CD 2 A_WeaponReady(1)
	D9FS EF 2 A_ReFire
    Goto ReadyIS
  FireLeftIS:
    PISG B 0 A_TakeInventory("Dual9mmPrimaryLara",1)
    // PISG B 0 A_StopSoundEx("Weapon")
	BPSS A 0 A_AlertMonsters
	BPSS A 0 A_TakeInventory("FireLeft",1)
	PISG B 0 A_PlaySoundEx("Lara/Pistolfire","Weapon")
    PISG B 0 A_FireBullets (0, 0, 1, 6, "SeriousDeagle1")
	BPSS A 0
	BPSS A 0 A_FireCustomMissile("InvertedRifleCaseSpawn",5,0,-5,-3)
	TNT1 A 0
	D9FM A 2 bright
	BPSS A 0
	D9FM B 2
    D9FM CD 2 A_WeaponReady(1)
	D9FM EF 2 A_ReFire
    Goto ReadyIS
  Spawn:
    D9IE C -1
    Stop
  }
}


Actor LaraPuff1 : BulletPuff2
{
	DamageType "SamDeagle"
}

Actor RevyRifleBullet : BulletPuff2
{
	DamageType "RevyRifleBullet"
}


Actor DroppedBullet
{
	Speed 8
	Scale 0.2
	Damage 0
	BounceCount 2
	BounceFactor 0.8
	ReactionTime 5
	PROJECTILE
	
	+DOOMBOUNCE
	+RIPPER
	-NOGRAVITY
	+CLIENTSIDEONLY
	States
	{
	Spawn:
		BLLT ABCDEFGH 3
		Loop
	Death:
		BLLT C 35
		Stop
	}
}

Actor IronSights : Inventory
{
Inventory.MaxAmount 1
}

// Used for dual pistols
Actor FireLeft : Inventory
{
Inventory.MaxAmount 1
}

// Used for fixing hold animations
Actor HoldFixer : Inventory
{
Inventory.MaxAmount 1
}

Actor DoAltFire : Inventory
{
Inventory.MaxAmount 1
}

Actor IsReloading : Inventory
{
Inventory.MaxAmount 1
}

ACTOR Action_Reloading : CustomInventory
{
   Inventory.Amount 1
   Inventory.MaxAmount 1
   -INVBAR
+INVENTORY.UNDROPPABLE

   States
   {
 Spawn:
  TNT1 A 1
  Loop
 Use:
  TNT1 A 0 A_GiveInventory("IsReloading")
  Fail
   }
}

ACTOR Action_DoAltFire : CustomInventory
{
   Inventory.Amount 1
   Inventory.MaxAmount 1
   -INVBAR
+INVENTORY.UNDROPPABLE

   States
   {
 Spawn:
  TNT1 A 1
  Loop
 Use:
  TNT1 A 0 A_GiveInventory("DoAltFire")
  Fail
   }
}


Actor Lara-Bow : Weapon
{
	Weapon.AmmoType1 "BowAmmo1"
	Weapon.AmmoGive1 25
	Weapon.AmmoUse1 1
	Weapon.AmmoType2 "BowAmmo2"
	Weapon.AmmoGive2 8
	Weapon.AmmoUse2 1
	Weapon.SelectionOrder 1800
	Weapon.SlotNumber 3
	weapon.kickback 1000
	Inventory.Icon "LARACROS"
	Decal "BulletChip"
	+WEAPON.NOAUTOAIM
	+INVENTORY.UNDROPPABLE
	States
	{
	Spawn:
		CSBW A 1
		Stop
	Ready:
		CSBW A 1 A_WeaponReady
		Loop
	Deselect:
		CSBW A 1 A_Lower
		Loop
	Select:
		CSBW A 1 A_Raise
		Loop
	Fire:
		CSBW B 0 A_PlayWeaponSound("LaraCrossBow")
		CSBW B 0 A_FireCustomMissile("LaraArrow1",0,1)
		CSBW B 2
		CSBW BB 5
		CSBW CA 3
		Goto Ready
	AltFire:
		CSBW B 0 A_PlayWeaponSound("LaraCrossBow")
		CSBW B 0 A_FireCustomMissile("LaraArrow2",0,1)
		CSBW A 2
		CSBW BBBB 8
		CSBW CA 3
		Goto Ready
	}
}

Actor BowAmmo1 : Ammo
{
	Inventory.Amount 30
	Inventory.MaxAmount 30
	Inventory.Icon "CSBAMMO1"
}

Actor BowAmmo2 : Ammo
{
	Inventory.Amount 10
	Inventory.MaxAmount 10
	Inventory.Icon "CSBAMMO2"
}

Actor LaraArrow1
{
	Radius 5
	Height 5
	Speed 100
	Damage 6
	Obituary "%k turned %o into a pin cushion."
	PROJECTILE
	DamageType "LaraArrow"
	+RANDOMIZE
	+RIPPER
	+NOEXTREMEDEATH
	States
	{
	Spawn:
		BOLT A 1
		Loop
	Death:
		BOLT A 35
		Stop
	}
}

Actor LaraArrow2 : FastProjectile
{
	Radius 5
	Height 5
	Speed 280
	Damage 0
	DamageType "Grenade"
	Obituary "%o caught %k's explosive bolt with %p teeth."
	-RIPPER
	States
	{
	Spawn:
		BOLE A 1
		Loop
	Death:
		BOLE A 20
	XDeath:
		BOLE A 0 A_SpawnItemEx("GrenadeExplosion2",0,0,0,0,0,0,0,128,0)
		BOLE A 1 A_SpawnItemEx("LaraArrowBoom",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS)
		Stop
	}
}

Actor LaraArrowBoom : LaraArrow2
{
	+SEEKERMISSILE
	Speed 0
	States
	{
	Spawn:
		TNT1 A 1
		Goto Death
	Death:
		TNT1 A 0 A_ChangeFlag("NOINTERACTION",1)
		TNT1 A 0 A_Stop
		TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK|SMF_CURSPEED,256)
		TNT1 A 0 A_JumpIfTargetInLOS("SplashBeep",360,JLOSF_PROJECTILE,141)
		TNT1 A 0 A_Jump(256,"DeathCont")
		Goto DeathCont
	SplashBeep:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		TNT1 A 0 A_Jump(256,"DeathCont")
		Goto DeathCont
	DeathCont:
		TNT1 A 0 A_Explode(70,150,1)
		Stop
	}
}

actor GrenadeExplosion2
{
renderstyle translucent
alpha 1.0
+NOGRAVITY
-SOLID
+NOBLOCKMAP
+CLIENTSIDEONLY
radius 1
height 1
scale 1.5
States
{
Spawn:
COOM A 0
COOM A 0 A_PlaySound("CBOWBOMB")
COOM ABCDEFGHIJJKKLLMNNNOOOPPPQQRRSSTTTUUUVVVXXX 2 bright A_FadeOut(0.04)
Stop
}
}