Added LightningSound MAPINFO property.

Also added a tempSound parameter to ForceLightning(). Allowing for changing the specific sound that particular thunderbolt makes when it hits.
This commit is contained in:
inkoalawetrust 2023-01-28 05:56:15 +02:00 committed by Christoph Oelckers
commit ce2a0c9295
8 changed files with 41 additions and 12 deletions

View file

@ -250,6 +250,7 @@ void level_info_t::Reset()
else
flags2 = LEVEL2_LAXMONSTERACTIVATION;
flags3 = 0;
LightningSound = "world/thunder";
Music = "";
LevelName = "";
AuthorName = "";
@ -997,6 +998,13 @@ DEFINE_MAP_OPTION(next, true)
parse.ParseNextMap(info->NextMap);
}
DEFINE_MAP_OPTION(lightningsound, true)
{
parse.ParseAssign();
parse.sc.MustGetString();
info->LightningSound = parse.sc.String;
}
DEFINE_MAP_OPTION(author, true)
{
parse.ParseAssign();