Facepunch / garrysmod-issues

Garry's Mod issue tracker
145 stars 56 forks source link

Hl1 weapons still spawnable when content isn't mounted by server #3933

Closed thegrb93 closed 5 years ago

thegrb93 commented 5 years ago

gm_giveswep weapon_gauss

thegrb93 commented 5 years ago

print(IsMounted( "hl1" ))

is returning true despite mount.cfg having

// "hl1" "hl1"

mount.cfg

"mountcfg"
{
  "cstrike"          "../gmodbase/cstrike"
  "dod"              "../gmodbase/dod"
  "tf"               "../gmodbase/tf"
  "hl2mp"            "../gmodbase/hl2mp"
//  "zps"              "../sourcebase/orangebox/zps"
//  "pvkii"            "../sourcebase/orangebox/pvkii"
//  "dystopia"         "../sourcebase/orangebox/dystopia"
//  "ageofchivalry"    "../sourcebase/orangebox/ageofchivalry"
//  "insurgency"       "../sourcebase/insurgency"
  "ep2"              "ep2"
  "episodic"         "episodic"
  "lostcoast"        "lostcoast"
//  "hl1"              "hl1"
//  "hl1mp"            "hl1mp"
//  "zeno_clash"       "zeno_clash"
//  "portal"           "portal"
//  "diprip"           "diprip"
//  "left4dead2"       "left4dead2"
//  "left4dead"        "left4dead"
//  "portal2"          "portal2"
//  "swarm"            "swarm"
//  "nucleardawn"      "nucleardawn"
//  "dinodday"         "dinodday"
  "csgo"             "csgo"
}
thegrb93 commented 5 years ago

mountdepots.txt

"gamedepotsystem"
{
    "cstrike"   "1"
    "tf" "1"
    "hl1"       "0"
    "hl1_hd"    "0"
    "hl2"       "1"
    "hl2mp"     "1"
    "episodic"  "1"
    "ep2"       "1"
    "lostcoast" "0"
}
robotboy655 commented 5 years ago

"0"s in mountdepots.txt still count as "I want that to be mounted" because reasons.

thegrb93 commented 5 years ago

I see, I'll remove it then.

robotboy655 commented 5 years ago

I have fixed this behavior for next update.