Add surfaceflags used in upstream Nuclide...

This commit is contained in:
Marco Cawthorne 2021-11-06 04:26:37 +01:00
parent 0b250d3501
commit c5386a0446
Signed by: eukara
GPG key ID: C196CD8BA993248A

17
vvm.cpp
View file

@ -4641,7 +4641,22 @@ bool parsemeshfield(const char *tok, char **line, meshprop &spec, bool defaults)
else if (!strcasecmp(tok, "surfaceflags"))
{
bitnames surfaceflagnames[] = {
{"fte", "nodraw", 0x00000080},{"q3", "nodraw", 0x00000080},
{"fte", "nodraw", 0x00000080},{"q3", "nodraw", 0x00000080},
{"", "alien", 0x10000000 },
{"", "flesh", 0x20000000 },
{"", "foliage", 0x30000000 },
{"", "computer", 0x40000000 },
{"", "dirt", 0x50000000 },
{"", "vent", 0x60000000 },
{"", "grate", 0x70000000 },
{"", "metal", 0x80000000 },
{"", "glass", 0x90000000 },
{"", "sand", 0xA0000000 },
{"", "slosh", 0xB0000000 },
{"", "snow", 0xC0000000 },
{"", "tile", 0xD0000000 },
{"", "wood", 0xE0000000 },
{"", "concrete", 0xF0000000 },
{NULL}
};
spec.surfaceflags = parsebits(surfaceflagnames, line);