-
Notifications
You must be signed in to change notification settings - Fork 0
Multimode Core Download
A wiki explaining how map cycle downloads work in the multimode core, along with map cycle examples and more.
Important
This plugin is experimental, any bugs, please report, it will help a lot!
When you download the Multimode Core project, you also automatically download the multimode_download.smx file. Install this on your server.
Game Dir/
└── addons/
└── sourcemod/
├── configs/
│ ├── mmc_mapcycle.txt (Needed)
├── plugins/
│ ├── multimode_downloads.smx *NEW*
├────────────────────
If you have this file on the server, you can now use mapcycle download commands!
"Mapcycle"
{
"Test Gamemode"
{
// downloads applied to the entire group...
"downloads"
{
"download"
{
// auto download template (automatically downloads related files)
"1"
{
"file" "models/props/gamemode_prop.mdl"
"auto_download" "1"
}
// simple material
"2" "materials/models/props/common_texture.vmt"
// custom sound
"3" "sound/gamemode/ambient.mp3"
}
"precache"
{
"model"
{
"1" "models/props/gamemode_prop.mdl"
"2" "models/weapons/w_mymodeweapon.mdl"
}
"sound"
{
"1" "sound/gamemode/start.mp3"
"2" "sound/gamemode/end.mp3"
"3" "sound/weapons/mymode_fire.wav"
}
}
}
"maps"
{
"de_dust2"
{
// specific downloads for this map onl
"downloads"
{
"download"
{
"1"
{
"file" "models/props/dust2_special.mdl"
"auto_download" "1"
}
"2" "materials/models/dust2/special_texture.vmt"
}
"precache"
{
"sound"
{
"1" "sound/dust2/ambient_sound.mp3"
}
}
}
}
}
"subgroup"
{
"Competitive"
{
// specific downloads for the Competitive subgroup
"downloads"
{
"download"
{
"1" "sound/competitive/match_start.mp3"
}
"precache"
{
"model"
{
"1" "models/competitive/tournament_logo.mdl"
}
}
}
"maps"
{
"de_mirage_comp"
{
"downloads"
{
"download"
{
"1"
{
...
...
}
}
}
}
}
}
}
}
}
"download" Defines the downloadable files section. It can be configured at different levels: gamemode, subgroup, and map-specific.
"download"
{
"1" "models/props/mymodel.mdl"
"2" "materials/models/props/mytexture.vmt"
"3" "sound/mymode/sound.mp3"
}
"auto_download" "1 / 0" Quando definido como "1", o sistema automaticamente detecta e baixa arquivos relacionados.
-
For models (.mdl): Automatically downloads
.vvd,.dx90.vtx,.phy(if it exists), and related materials inmaterials/models/... -
For materials (.vmt/.vtf): Downloads both related
.vmtand.vtffiles
"precache" The precache section allows you to preload resources on the server before they are used.
"model" Precache 3D models (.mdl). Precached models load faster during gameplay.
"precache"
{
"model"
{
"1" "models/props/mymodel.mdl"
"2" "models/player/ctm_sas.mdl"
}
}
"sound" Precache sounds and music (.mp3, .wav). Precached sounds play instantly without delay.
"precache"
{
"sound"
{
"1" "sound/mymode/start.mp3"
"2" "sound/weapons/weapon_fire.wav"
}
}
"generic" Precache generic resources (any other type of file that needs to be precached).
"precache"
{
"generic"
{
"1" "particles/myparticle.pcf"
"2" "scripts/game_sounds_weapons.txt"
}
}
Since multimode core support will always be active for now, updating and making multimode core a reality requires a lot of work and focused time, to support me, you can donate or give us a star on GitHub. It really motivates me! I appreciate it in advance!
Live Pix: https://livepix.gg/thedgb