mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-07-03 22:17:51 -05:00
Reorganized the scripts so its easier to search thru.
This commit is contained in:
@ -0,0 +1,48 @@
|
||||
|
||||
main()
|
||||
{
|
||||
init( "axis" );
|
||||
maps/mp/teams/_teamset::customteam_init();
|
||||
precache();
|
||||
}
|
||||
|
||||
init( team )
|
||||
{
|
||||
maps/mp/teams/_teamset::init();
|
||||
game[ team ] = "pmc";
|
||||
game[ "defenders" ] = team;
|
||||
precacheshader( "faction_pmc" );
|
||||
game[ "entity_headicon_" + team ] = "faction_pmc";
|
||||
game[ "headicon_" + team ] = "faction_pmc";
|
||||
level.teamprefix[ team ] = "vox_pm";
|
||||
level.teampostfix[ team ] = "pmc";
|
||||
setdvar( "g_TeamName_" + team, &"MPUI_PMC_SHORT" );
|
||||
setdvar( "g_TeamColor_" + team, "0.65 0.57 0.41" );
|
||||
setdvar( "g_ScoresColor_" + team, "0.65 0.57 0.41" );
|
||||
setdvar( "g_FactionName_" + team, "rus_pmc" );
|
||||
game[ "strings" ][ team + "_win" ] = &"MP_PMC_WIN_MATCH";
|
||||
game[ "strings" ][ team + "_win_round" ] = &"MP_PMC_WIN_ROUND";
|
||||
game[ "strings" ][ team + "_mission_accomplished" ] = &"MP_PMC_MISSION_ACCOMPLISHED";
|
||||
game[ "strings" ][ team + "_eliminated" ] = &"MP_PMC_ELIMINATED";
|
||||
game[ "strings" ][ team + "_forfeited" ] = &"MP_PMC_FORFEITED";
|
||||
game[ "strings" ][ team + "_name" ] = &"MP_PMC_NAME";
|
||||
game[ "music" ][ "spawn_" + team ] = "SPAWN_PMC";
|
||||
game[ "music" ][ "spawn_short" + team ] = "SPAWN_SHORT_PMC";
|
||||
game[ "music" ][ "victory_" + team ] = "VICTORY_PMC";
|
||||
game[ "icons" ][ team ] = "faction_pmc";
|
||||
game[ "voice" ][ team ] = "vox_pmc_";
|
||||
setdvar( "scr_" + team, "ussr" );
|
||||
level.heli_vo[ team ][ "hit" ] = "vox_rus_0_kls_attackheli_hit";
|
||||
game[ "flagmodels" ][ team ] = "mp_flag_axis_2";
|
||||
game[ "carry_flagmodels" ][ team ] = "mp_flag_axis_2_carry";
|
||||
game[ "carry_icon" ][ team ] = "hudicon_spetsnaz_ctf_flag_carry";
|
||||
}
|
||||
|
||||
precache()
|
||||
{
|
||||
mpbody/class_assault_rus_pmc::precache();
|
||||
mpbody/class_lmg_rus_pmc::precache();
|
||||
mpbody/class_shotgun_rus_pmc::precache();
|
||||
mpbody/class_smg_rus_pmc::precache();
|
||||
mpbody/class_sniper_rus_pmc::precache();
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_pmc_assault_fb" );
|
||||
precachemodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team4" ][ "default" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "default" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_pmc_assault_fb" );
|
||||
self setviewmodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_pmc_lmg_fb" );
|
||||
precachemodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team4" ][ "mg" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "mg" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_pmc_lmg_fb" );
|
||||
self setviewmodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_pmc_shotgun_fb" );
|
||||
precachemodel( "c_mul_mp_pmc_shortsleeve_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team4" ][ "spread" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "spread" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_pmc_shotgun_fb" );
|
||||
self setviewmodel( "c_mul_mp_pmc_shortsleeve_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_pmc_smg_fb" );
|
||||
precachemodel( "c_mul_mp_pmc_shortsleeve_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team4" ][ "smg" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "smg" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_pmc_smg_fb" );
|
||||
self setviewmodel( "c_mul_mp_pmc_shortsleeve_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_pmc_sniper_fb" );
|
||||
precachemodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team4" ][ "rifle" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "rifle" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_pmc_sniper_fb" );
|
||||
self setviewmodel( "c_mul_mp_pmc_longsleeve_viewhands" );
|
||||
heads = [];
|
||||
}
|
Reference in New Issue
Block a user