is there a way to disable the spawning of underwater wreckage? or anyone got a list of the prefabs that spawn when they spawn so i can stop it from x amount of seconds.
Stop the spawning of underwater wreckage?
Might be caught by OnLootSpawn.
I Think i got it.
if (!flooding) return;
if (entity.name.Contains("crate_underwater") || entity.name.Contains("divesite") || entity.name.Contains("smallwaterbottle"))
{
entity.Kill();
} Ts3hostingI Think i got it.
if (!flooding) return; if (entity.name.Contains("crate_underwater") || entity.name.Contains("divesite") || entity.name.Contains("smallwaterbottle")) { entity.Kill(); }
Use shortname instead. name can be changed, and it will make bad joke with it
Orange
Use shortname instead. name can be changed, and it will make bad joke with it
So like this But i think only the junkpile/crates/divesite/ is only needed? rest is during server boot correct?
private static List<string> DefaultLootBlock
{
get
{
return new List<string>
{
"rock_formation_b_underwater",
"rock_formation_c_underwater",
"rock_formation_d_underwater",
"rock_formation_e_underwater",
"rock_formation_f_underwater",
"water_drum_a",
"water_drum_a_junk",
"water_drum_toxic",
"junkpile_water_a",
"junkpile_water_b",
"junkpile_water_c",
"water_junk_pile_a",
"water_junk_pile_a_no_planks",
"water_junk_pile_b",
"water_junk_pile_b_no_planks",
"water_junk_pile_c_no_planks",
"coral_red_big",
"coral_red_small",
"coral_white_big",
"coral_white_small",
"tall_algae_a",
"tall_algae_b",
"thin_algae",
"underwater_lilly",
"junkpile_water",
"underwater_plants",
"water_junk_piles",
"water_drums",
"crate_underwater_basic",
"crate_underwater_advanced",
"crate_underwater",
"v2_rockformation_underwater",
"water_drumsblocklist",
"water_junk_pile_c",
"divesite_a",
"divesite_b",
"divesite_c"
};
}
}