rules/deathmatch: move precaches into their own dedicated function
This commit is contained in:
parent
7fc646492d
commit
e65f81ae23
5 changed files with 39 additions and 28 deletions
|
@ -1396,27 +1396,27 @@
|
|||
1 materials/sfx/spot_flare.tga
|
||||
1 materials/sfx/steam.mat
|
||||
1 materials/sfx/steam.tga
|
||||
1 materials/ui/avatar_missing.tga
|
||||
1 materials/ui/m_bottom.tga
|
||||
1 materials/ui/m_bottomleft.tga
|
||||
1 materials/ui/m_bottomright.tga
|
||||
1 materials/ui/m_left.tga
|
||||
1 materials/ui/m_linebottom.tga
|
||||
1 materials/ui/m_linebottomleft.tga
|
||||
1 materials/ui/m_linebottomright.tga
|
||||
1 materials/ui/m_lineleft.tga
|
||||
1 materials/ui/m_linemid.tga
|
||||
1 materials/ui/m_lineright.tga
|
||||
1 materials/ui/m_linetop.tga
|
||||
1 materials/ui/m_linetopleft.tga
|
||||
1 materials/ui/m_linetopright.tga
|
||||
1 materials/ui/m_mid.tga
|
||||
1 materials/ui/m_right.tga
|
||||
1 materials/ui/m_top.tga
|
||||
1 materials/ui/m_topleft.tga
|
||||
1 materials/ui/m_topright.tga
|
||||
1 materials/ui/voice_off.tga
|
||||
1 materials/ui/voice_on.tga
|
||||
1 gfx/ui/avatar_missing.tga
|
||||
1 gfx/ui/m_bottom.tga
|
||||
1 gfx/ui/m_bottomleft.tga
|
||||
1 gfx/ui/m_bottomright.tga
|
||||
1 gfx/ui/m_left.tga
|
||||
1 gfx/ui/m_linebottom.tga
|
||||
1 gfx/ui/m_linebottomleft.tga
|
||||
1 gfx/ui/m_linebottomright.tga
|
||||
1 gfx/ui/m_lineleft.tga
|
||||
1 gfx/ui/m_linemid.tga
|
||||
1 gfx/ui/m_lineright.tga
|
||||
1 gfx/ui/m_linetop.tga
|
||||
1 gfx/ui/m_linetopleft.tga
|
||||
1 gfx/ui/m_linetopright.tga
|
||||
1 gfx/ui/m_mid.tga
|
||||
1 gfx/ui/m_right.tga
|
||||
1 gfx/ui/m_top.tga
|
||||
1 gfx/ui/m_topleft.tga
|
||||
1 gfx/ui/m_topright.tga
|
||||
1 gfx/ui/voice_off.tga
|
||||
1 gfx/ui/voice_on.tga
|
||||
1 models/airboat.mdl.doll
|
||||
1 models/alyx.mdl.doll
|
||||
1 models/alyx_emptool_prop.mdl.doll
|
||||
|
|
|
@ -58,6 +58,16 @@ AllowFlashlight(void)
|
|||
return cvars.GetBool("mp_flashlight");
|
||||
}
|
||||
|
||||
void
|
||||
CodeCallback_Precache(void)
|
||||
{
|
||||
precache.Entity("player_mp");
|
||||
|
||||
for (int i = 0; i < g_stockHL2MPPlayerModels.length; i++) {
|
||||
precache.Model(g_stockHL2MPPlayerModels[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CodeCallback_StartGameType(void)
|
||||
{
|
||||
|
@ -71,9 +81,6 @@ CodeCallback_StartGameType(void)
|
|||
}
|
||||
|
||||
game.SetSpawnPoint("info_player_deathmatch");
|
||||
for (int i = 0; i < g_stockHL2MPPlayerModels.length; i++) {
|
||||
precache.Model(g_stockHL2MPPlayerModels[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue