Skip to content
9 changes: 9 additions & 0 deletions Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,15 @@ void function ReloadMods()
ClientCommand( "weapon_reparse" ) // weapon_reparse only works if a server is running and sv_cheats is 1, gotta figure this out eventually
SetConVarBool( "sv_cheats", svCheatsOriginal )

array<string> materialPaths = [ "cable", "correction", "debug", "decals", "dev", "effect", "engine", "models", "particle", "sprites", "tools", "ui", "vgui", "world" ]
Comment thread
ASpoonPlaysGames marked this conversation as resolved.
Outdated

foreach ( dir in materialPaths )
{
// Ex: "mat_reloadmaterial models/" will reload every vtf and vmt under the "models" path
// The reason this is done this way, is because Respawn removed "mat_reloadallmaterials" for some reason
Comment thread
ASpoonPlaysGames marked this conversation as resolved.
Outdated
ClientCommand( "mat_reloadmaterial " + dir + "/" )
}

// note: the logic for this seems really odd, unsure why it doesn't seem to update, since the same code seems to get run irregardless of whether we've read weapon data before
ClientCommand( "uiscript_reset" )
}
Expand Down