#library "ssplash"
#include "zcommon.acs"

script "BDCheckFloorType" (void) //Ricochets
{
	if (CheckActorFloorTexture(0, "FWATER1"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER2"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER3"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER4"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "BDFWATER"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FHDI01"))    GiveInventory("IsOverWater", 1);

	if (CheckActorFloorTexture(0, "NUKAGE1"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE2"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE3"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE4"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "BDNUKE1"))    GiveInventory("IsOverNukage", 1);

	if (CheckActorFloorTexture(0, "FHDO01"))    GiveInventory("IsOverOrange", 1);
	if (CheckActorFloorTexture(0, "FHDPC01"))    GiveInventory("IsOverPinaColada", 1);
	if (CheckActorFloorTexture(0, "FHDP01"))    GiveInventory("IsOverPurple", 1);

	if (CheckActorFloorTexture(0, "SLIME01"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME02"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME03"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME04"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME05"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME06"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME07"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME08"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "BDSLIME1"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "BDSLIME2"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "GRWAT_01"))    GiveInventory("IsOverSlime", 1);

	if (CheckActorFloorTexture(0, "SLIME09"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "SLIME10"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "SLIME11"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "SLIME12"))    GiveInventory("IsOverLava", 1);

	if (CheckActorFloorTexture(0, "LAVA1"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA2"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA3"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA4"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVAFL"))    GiveInventory("IsOverLava", 1);

	if (CheckActorFloorTexture(0, "MAGEFL"))    GiveInventory("IsOverMagenta", 1);

	if (CheckActorFloorTexture(0, "YAVAFL"))    GiveInventory("IsOverYava", 1);

	if (CheckActorFloorTexture(0, "BLOOD1"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD2"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD3"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD4"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BDBLOOD1"))    GiveInventory("IsOverBlood", 1);

	if (CheckActorFloorTexture(0, "FHDT01"))    GiveInventory("IsOverTar", 1);

	if (CheckActorFloorTexture(0, "BDGRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "BDGRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS3"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "FLAT10"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "JUNKY15"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "JUNKY16"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "MFLR8_2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "MFLR8_3"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "MFLR8_4"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK03"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK09"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK16"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK17"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK18"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK19"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK20"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "SANDS1D"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "SANDS2D"))    GiveInventory("IsOverGrass", 1);

	if (CheckActorFloorTexture(0, "SANDS1"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "SANDS2"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "DESERT01"))    GiveInventory("IsOverSand", 1);

	if (CheckActorFloorTexture(0, "SNOW1"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW2"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW3"))    GiveInventory("IsOverSnow", 1);
}

script "BDCheckFloorType2" (void) // Footstep Sounds
{
	if (CheckActorFloorTexture(0, "FWATER1"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER2"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER3"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FWATER4"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "BDFWATER"))    GiveInventory("IsOverWater", 1);
	if (CheckActorFloorTexture(0, "FHDI01"))    GiveInventory("IsOverWater", 1);

	if (CheckActorFloorTexture(0, "NUKAGE1"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE2"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE3"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "NUKAGE4"))    GiveInventory("IsOverNukage", 1);
	if (CheckActorFloorTexture(0, "BDNUKE1"))    GiveInventory("IsOverNukage", 1);

	if (CheckActorFloorTexture(0, "FHDO01"))    GiveInventory("IsOverOrange", 1);
	if (CheckActorFloorTexture(0, "FHDPC01"))    GiveInventory("IsOverPinaColada", 1);
	if (CheckActorFloorTexture(0, "FHDP01"))    GiveInventory("IsOverPurple", 1);

	if (CheckActorFloorTexture(0, "SLIME01"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME02"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME03"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME04"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME05"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME06"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME07"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "SLIME08"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "BDSLIME1"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "BDSLIME2"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "GRWAT_01"))    GiveInventory("IsOverSlime", 1);
	if (CheckActorFloorTexture(0, "FHDT01"))    GiveInventory("IsOverSlime", 1);

	if (CheckActorFloorTexture(0, "LAVA1"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA2"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA3"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVA4"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "LAVAFL"))    GiveInventory("IsOverLava", 1);
	if (CheckActorFloorTexture(0, "MAGEFL"))    GiveInventory("IsOverMagenta", 1);
	if (CheckActorFloorTexture(0, "YAVAFL"))    GiveInventory("IsOverYava", 1);

	if (CheckActorFloorTexture(0, "BLOOD1"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD2"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD3"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BLOOD4"))    GiveInventory("IsOverBlood", 1);
	if (CheckActorFloorTexture(0, "BDBLOOD1"))    GiveInventory("IsOverBlood", 1);

	if (CheckActorFloorTexture(0, "BDGRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "BDGRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS3"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK19"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK20"))    GiveInventory("IsOverGrass", 1);

	if (CheckActorFloorTexture(0, "FLAT10"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "JUNKY15"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "JUNKY16"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "MFLR8_2"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK03"))    GiveInventory("IsOverDirt", 1);

	if (CheckActorFloorTexture(0, "FLOOR6_1"))    GiveInventory("IsOverGravel", 1);
	if (CheckActorFloorTexture(0, "FLOOR6_2"))    GiveInventory("IsOverGravel", 1);
	if (CheckActorFloorTexture(0, "MFLR8_3"))    GiveInventory("IsOverGravel", 1);
	if (CheckActorFloorTexture(0, "RROCK16"))    GiveInventory("IsOverGravel", 1);
	if (CheckActorFloorTexture(0, "RROCK17"))    GiveInventory("IsOverGravel", 1);
	if (CheckActorFloorTexture(0, "RROCK18"))    GiveInventory("IsOverGravel", 1);

	if (CheckActorFloorTexture(0, "CEIL1_2"))    GiveInventory("IsOverMetal", 1);
	if (CheckActorFloorTexture(0, "FLAT22"))    GiveInventory("IsOverMetal", 1);
	if (CheckActorFloorTexture(0, "FLAT23"))    GiveInventory("IsOverMetal", 1);
	if (CheckActorFloorTexture(0, "FLAT4"))    GiveInventory("IsOverMetal", 1);

	if (CheckActorFloorTexture(0, "METAL51"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "METAL52"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "METAL53"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "METAL54"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "METAL55"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "METAL56"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "SLIME14"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "SLIME15"))    GiveInventory("IsOverMetal2", 1);
	if (CheckActorFloorTexture(0, "SLIME16"))    GiveInventory("IsOverMetal2", 1);

	if (CheckActorFloorTexture(0, "CEIL3_5"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "CEIL3_6"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT1"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT1_1"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT1_2"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT1_3"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT5_7"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLAT5_8"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "FLOOR5_4"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "GRNROCK"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "MFLR8_1"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "MFLR8_1"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK01"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK02"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK04"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK05"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK06"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK07"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK08"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK09"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK10"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK11"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK12"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK13"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK14"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "RROCK15"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "SLIME09"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "SLIME10"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "SLIME11"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "SLIME12"))    GiveInventory("IsOverRock", 1);
	if (CheckActorFloorTexture(0, "SLIME13"))    GiveInventory("IsOverRock", 1);

	if (CheckActorFloorTexture(0, "SANDS1"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "SANDS2"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "SANDS1D"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "SANDS2D"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "DESERT01"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "MFLR8_4"))    GiveInventory("IsOverSand", 1);

	if (CheckActorFloorTexture(0, "SNOW1"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW2"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW3"))    GiveInventory("IsOverSnow", 1);

	if (CheckActorFloorTexture(0, "CEIL3_1"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CEIL3_2"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CEIL3_3"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CEIL3_4"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "COMP01"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CONS1_1"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CONS1_5"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "CONS1_7"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT17"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT18"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT19"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT2"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT20"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT3"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT5"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT8"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLAT9"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_1"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_2"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_3"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_5"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_6"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR0_7"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR3_3"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR4_1"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR4_5"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR4_6"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR5_2"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR5_3"))    GiveInventory("IsOverTile", 1);
	if (CheckActorFloorTexture(0, "FLOOR7_1"))    GiveInventory("IsOverTile", 1);

	if (CheckActorFloorTexture(0, "DEM1_1"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "DEM1_2"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "DEM1_3"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "DEM1_4"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "DEM1_5"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "DEM1_6"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "FLOOR4_8"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "FLOOR5_1"))    GiveInventory("IsOverTile2", 1);
	if (CheckActorFloorTexture(0, "FLOOR7_2"))    GiveInventory("IsOverTile2", 1);

	if (CheckActorFloorTexture(0, "CEIL1_1"))    GiveInventory("IsOverWood", 1);
	if (CheckActorFloorTexture(0, "CEIL1_3"))    GiveInventory("IsOverWood", 1);
	if (CheckActorFloorTexture(0, "CRATOP1"))    GiveInventory("IsOverWood", 1);
	if (CheckActorFloorTexture(0, "CRATOP2"))    GiveInventory("IsOverWood", 1);
	if (CheckActorFloorTexture(0, "FLAT5_1"))    GiveInventory("IsOverWood", 1);
	if (CheckActorFloorTexture(0, "FLAT5_2"))    GiveInventory("IsOverWood", 1);
}

script "BDCheckFloorType3" (void) ///Check if Over Dirt or Grass for explosions
{
	if (CheckActorFloorTexture(0, "BDGRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "BDGRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS1"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS2"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "GRASS3"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK19"))    GiveInventory("IsOverGrass", 1);
	if (CheckActorFloorTexture(0, "RROCK20"))    GiveInventory("IsOverGrass", 1);

	if (CheckActorFloorTexture(0, "FLAT10"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "JUNKY15"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "JUNKY16"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "MFLR8_2"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "MFLR8_3"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "MFLR8_4"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK03"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK09"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK16"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK17"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "RROCK18"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "SANDS1D"))    GiveInventory("IsOverDirt", 1);
	if (CheckActorFloorTexture(0, "SANDS2D"))    GiveInventory("IsOverDirt", 1);

	if (CheckActorFloorTexture(0, "SANDS1"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "SANDS2"))    GiveInventory("IsOverSand", 1);
	if (CheckActorFloorTexture(0, "DESERT01"))    GiveInventory("IsOverSand", 1);

	if (CheckActorFloorTexture(0, "SNOW1"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW2"))    GiveInventory("IsOverSnow", 1);
	if (CheckActorFloorTexture(0, "SNOW3"))    GiveInventory("IsOverSnow", 1);

	if (CheckActorFloorTexture(0, "SFLR6_1"))    GiveInventory("IsOverFlesh", 1);
	if (CheckActorFloorTexture(0, "SFLR6_4"))    GiveInventory("IsOverFlesh", 1);
	if (CheckActorFloorTexture(0, "SFLR7_1"))    GiveInventory("IsOverFlesh", 1);
	if (CheckActorFloorTexture(0, "SFLR7_4"))    GiveInventory("IsOverFlesh", 1);
}