alliedmodders / sourcemod

SourceMod - Source Engine Scripting and Administration
http://www.sourcemod.net/
985 stars 423 forks source link

Gamedata file names inconsistency in L4D1 #1644

Closed dragokas closed 2 years ago

dragokas commented 2 years ago

In https://github.com/alliedmodders/sourcemod/tree/master/gamedata/sdktools.games there are:

Futhermore: game.left4dead2.txt and engine.l4d.txt contains identical keys like: "GiveNamedItem" (function from server.so for both games).

Is it by intention L4D1 doesn't have a game.left4dead.txt file similar to one in L4D2? As I can see, both game. and engine. files contents refers to server.so in "Signatures" section, so what's the differentiation between them in such case?

asherkin commented 2 years ago

When Nuclear Dawn launched it used the L4D2 engine, so both games shared the engine.l4d2.txt gamedata.

All these files are merged together according to the rules in master.games.txt and their internal game/engine restrictions, the on-disk layout is irrelevant.