Jump to content

Recommended Posts

Hey-hey!

I'm creating a custom survivor, and I would like to add him the ability to make him a bit faster on Carpeted Flooring. I've checked Wurt's .lua file, since she has something similar, but with Marsh Turf. I've used this coding with the carpet, but it sends the game into an endless loading screen after character selection.

What should I change about it?

Quote

    inst.components.locomotor:SetFasterOnGroundTile(GROUND.CARPETFLOOR, true)

 

Edited by BillTheCipher

Is GROUND.CARPET not GROUND.CARPETFLOOR

GROUND_NAMES=
{
	    [GROUND.IMPASSABLE] = "Impassible",
		[GROUND.ROAD] = "Road",
	    [GROUND.ROCKY] = "Rocky",
	    [GROUND.DIRT] = "Dirt",
	    [GROUND.SAVANNA] = "Savanna",
		[GROUND.GRASS] = "Grass",
		[GROUND.FOREST] = "Forest",
	    [GROUND.MARSH] = "Marsh",
		[GROUND.WOODFLOOR] = "Wood",
		[GROUND.CHECKER] = "Checkers",
        [GROUND.METEOR] = "Moon",
	    [GROUND.CARPET] = "Carpet",
        [GROUND.SCALE] = "Scale",

		[GROUND.CAVE] = "CAVE",

		[GROUND.FUNGUS] = "FUNGUS",
		[GROUND.FUNGUSRED] = "FUNGUSRED",
		[GROUND.FUNGUSGREEN] = "FUNGUSGREEN",
		[GROUND.FUNGUSMOON] = "FUNGUSMOON",
	    [GROUND.SINKHOLE] = "SINKHOLE",
	    [GROUND.UNDERROCK] = "UNDERROCK",
	    [GROUND.MUD] = "MUD",

		[GROUND.WALL_MARSH] = "WALL_MARSH",
		[GROUND.WALL_FUNGUS] = "WALL_FUNGUS",
	    [GROUND.WALL_ROCKY] = "WALL_ROCKY",
		[GROUND.WALL_DIRT] = "WALL_DIRT",
		[GROUND.WALL_CAVE] = "WALL_CAVE",
	    [GROUND.WALL_SINKHOLE] = "WALL_SINKHOLE",
	    [GROUND.WALL_MUD] = "WALL_MUD",
	    [GROUND.WALL_WOOD] = "WALL_WOOD",

		[GROUND.GROUND_NOISE] = "GROUND_NOISE",
	    [GROUND.CAVE_NOISE] = "CAVE_NOISE",
	    [GROUND.FUNGUS_NOISE] = "FUNGUS_NOISE",

	    [GROUND.LAVAARENA_TRIM] = "LAVAARENA_TRIM",
	    [GROUND.LAVAARENA_FLOOR] = "LAVAARENA_FLOOR",

	    [GROUND.QUAGMIRE_GATEWAY] = "QUAGMIRE_GATEWAY",
	    [GROUND.QUAGMIRE_PEATFOREST] = "QUAGMIRE_PEATFOREST",
	    [GROUND.QUAGMIRE_PARKFIELD] = "QUAGMIRE_PARKFIELD",
	    [GROUND.QUAGMIRE_PARKSTONE] = "QUAGMIRE_PARKSTONE",
	    [GROUND.QUAGMIRE_CITYSTONE] = "QUAGMIRE_CITYSTONE",
	    [GROUND.QUAGMIRE_SOIL] = "QUAGMIRE_SOIL",
}

For Future Reference

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...