Add h2 mod team to ending credits

This commit is contained in:
fed 2023-02-28 21:16:00 +01:00
parent 9f2a74bed2
commit 3ebf784760
12 changed files with 111 additions and 3 deletions

View File

@ -0,0 +1,29 @@
main()
{
replacefunc(maps\_credit_h2_autogen::_id_B775, ::initiwcredits);
}
initcredits_h2mod()
{
maps\_credits::addcenterimage("LOGO_H2MOD", 256, 64, 2);
maps\_credits::addspace();
maps\_credits::addcenterheading(&"CREDIT_H2MOD_DEVELOPERS");
maps\_credits::addgap();
maps\_credits::addcenternamedouble(&"CREDIT_H2MOD_FED", &"CREDIT_H2MOD_VLAD");
maps\_credits::addcenternamedouble(&"CREDIT_H2MOD_FUTURE", &"CREDIT_H2MOD_NETADR");
maps\_credits::addgap();
maps\_credits::addcenterheading(&"CREDIT_H2MOD_SPECIAL_THANKS");
maps\_credits::addgap();
maps\_credits::addcenternamedouble(&"CREDIT_H2MOD_SNAKE", &"CREDIT_H2MOD_QUAK");
maps\_credits::addcenternamedouble(&"CREDIT_H2MOD_XENSIK", &"CREDIT_H2MOD_JARIK");
}
initiwcredits()
{
initcredits_h2mod();
maps\_credit_h2_autogen::initiwcredits_iw();
maps\_credit_h2_autogen::initiwcredits_beenox();
maps\_credit_h2_autogen::initiwcredits_ca();
maps\_credit_h2_autogen::initiwcredits_nerve();
maps\_credit_h2_autogen::initiwcredits_irongalaxy();
}

View File

@ -227,6 +227,8 @@ LUI.MenuBuilder.registerType("credits_menu", function(f6_arg0, f6_arg1)
skipAnim = f6_local2
})
PersistentBackground.ChangeBackground(nil, CoD.Background.CampaignRegular)
menu:AddButton("MENU_SP_CREDITS_CAPS", creditsmap, nil, true, nil, {
desc_text = Engine.Localize("@LUA_MENU_CREDITS_DESC")
})

View File

@ -0,0 +1,2 @@
material,logo_h2mod
localize,english
1 material logo_h2mod
2 localize english

View File

@ -0,0 +1,12 @@
{
"CREDIT_H2MOD_DEVELOPERS": "DEVELOPERS",
"CREDIT_H2MOD_SPECIAL_THANKS": "SPECIAL THANKS",
"CREDIT_H2MOD_FED": "fed",
"CREDIT_H2MOD_VLAD": "Vlad",
"CREDIT_H2MOD_FUTURE": "Future",
"CREDIT_H2MOD_JARIK": "JariKCoding",
"CREDIT_H2MOD_NETADR": "netadr",
"CREDIT_H2MOD_QUAK": "quaK",
"CREDIT_H2MOD_SNAKE": "momo5502",
"CREDIT_H2MOD_XENSIK": "xensik"
}

View File

@ -0,0 +1,26 @@
{
"name": "logo_h2mod",
"techniqueSet->name": "2d",
"gameFlags": 4,
"sortKey": 61,
"renderFlags": 0,
"textureAtlasRowCount": 1,
"textureAtlasColumnCount": 1,
"textureAtlasFrameBlend": 0,
"textureAtlasAsArray": 0,
"surfaceTypeBits": 0,
"cameraRegion": 14,
"materialType": 0,
"assetFlags": 0,
"constantTable": null,
"textureTable": [
{
"image": "logo_h2mod",
"semantic": 0,
"samplerState": 19,
"lastCharacter": 112,
"firstCharacter": 99,
"typeHash": 2695565377
}
]
}

View File

@ -0,0 +1 @@
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@ -0,0 +1,31 @@
[
{
"loadBits": [
10,
3759013900,
65535,
251732325,
0,
0
],
"depthStencilStateBits": [
9938018369548,
17664666632780,
4418985394188,
2211374301773,
19872279822925,
9938018369549,
17664666632781,
281474443903821,
281474443903809,
281474440757260,
9938018369548
],
"blendStateBits": [
251732325,
0,
0
],
"rasterizerState": 33
}
]

View File

@ -0,0 +1,3 @@
{
"stateFlags": 0
}

View File

@ -209,9 +209,9 @@ namespace gsc
}
}
void load_scripts(const std::filesystem::path& root_dir)
void load_scripts(const std::filesystem::path& root_dir, const std::string& subfolder)
{
std::filesystem::path script_dir = root_dir / "scripts";
std::filesystem::path script_dir = root_dir / subfolder;
if (!utils::io::directory_exists(script_dir.generic_string()))
{
return;
@ -248,9 +248,11 @@ namespace gsc
}
}, true);
const auto mapname = game::Dvar_FindVar("mapname");
for (const auto& path : filesystem::get_search_paths())
{
load_scripts(path);
load_scripts(path, "scripts");
load_scripts(path, "scripts/"s + mapname->current.string);
}
}