mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-07-07 07:57: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 ] = "cd";
|
||||
game[ "defenders" ] = team;
|
||||
precacheshader( "faction_cd" );
|
||||
game[ "entity_headicon_" + team ] = "faction_cd";
|
||||
game[ "headicon_" + team ] = "faction_cd";
|
||||
level.teamprefix[ team ] = "vox_cd";
|
||||
level.teampostfix[ team ] = "cda";
|
||||
setdvar( "g_TeamName_" + team, &"MPUI_CD_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, "cd" );
|
||||
game[ "strings" ][ team + "_win" ] = &"MP_CD_WIN_MATCH";
|
||||
game[ "strings" ][ team + "_win_round" ] = &"MP_CD_WIN_ROUND";
|
||||
game[ "strings" ][ team + "_mission_accomplished" ] = &"MP_CD_MISSION_ACCOMPLISHED";
|
||||
game[ "strings" ][ team + "_eliminated" ] = &"MP_CD_ELIMINATED";
|
||||
game[ "strings" ][ team + "_forfeited" ] = &"MP_CD_FORFEITED";
|
||||
game[ "strings" ][ team + "_name" ] = &"MP_CD_NAME";
|
||||
game[ "music" ][ "spawn_" + team ] = "SPAWN_TER";
|
||||
game[ "music" ][ "spawn_short" + team ] = "SPAWN_SHORT_TER";
|
||||
game[ "music" ][ "victory_" + team ] = "VICTORY_TER";
|
||||
game[ "icons" ][ team ] = "faction_cd";
|
||||
game[ "voice" ][ team ] = "vox_cda_";
|
||||
setdvar( "scr_" + team, "ussr" );
|
||||
level.heli_vo[ team ][ "hit" ] = "vox_ops_2_kls_attackheli_hit";
|
||||
game[ "flagmodels" ][ team ] = "mp_flag_axis_3";
|
||||
game[ "carry_flagmodels" ][ team ] = "mp_flag_axis_3_carry";
|
||||
game[ "carry_icon" ][ team ] = "hudicon_spetsnaz_ctf_flag_carry";
|
||||
}
|
||||
|
||||
precache()
|
||||
{
|
||||
mpbody/class_assault_cd::precache();
|
||||
mpbody/class_lmg_cd::precache();
|
||||
mpbody/class_shotgun_cd::precache();
|
||||
mpbody/class_smg_cd::precache();
|
||||
mpbody/class_sniper_cd::precache();
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_cordis_assault_fb" );
|
||||
precachemodel( "c_mul_mp_cordis_assault_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team6" ][ "default" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "default" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_cordis_assault_fb" );
|
||||
self setviewmodel( "c_mul_mp_cordis_assault_viewhands" );
|
||||
heads = [];
|
||||
}
|
22
Multiplayer Factions/faction_cd_mp/mpbody/class_lmg_cd.gsc
Normal file
22
Multiplayer Factions/faction_cd_mp/mpbody/class_lmg_cd.gsc
Normal file
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_cordis_lmg_fb" );
|
||||
precachemodel( "c_mul_mp_cordis_lmg_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team6" ][ "mg" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "mg" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_cordis_lmg_fb" );
|
||||
self setviewmodel( "c_mul_mp_cordis_lmg_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_cordis_shotgun_fb" );
|
||||
precachemodel( "c_mul_mp_cordis_shotgun_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team6" ][ "spread" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "spread" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_cordis_shotgun_fb" );
|
||||
self setviewmodel( "c_mul_mp_cordis_shotgun_viewhands" );
|
||||
heads = [];
|
||||
}
|
22
Multiplayer Factions/faction_cd_mp/mpbody/class_smg_cd.gsc
Normal file
22
Multiplayer Factions/faction_cd_mp/mpbody/class_smg_cd.gsc
Normal file
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_cordis_smg_fb" );
|
||||
precachemodel( "c_mul_mp_cordis_smg_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team6" ][ "smg" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "smg" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_cordis_smg_fb" );
|
||||
self setviewmodel( "c_mul_mp_cordis_smg_viewhands" );
|
||||
heads = [];
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#include common_scripts/utility;
|
||||
|
||||
precache()
|
||||
{
|
||||
precachemodel( "c_mul_mp_cordis_sniper_fb" );
|
||||
precachemodel( "c_mul_mp_cordis_sniper_viewhands" );
|
||||
if ( level.multiteam )
|
||||
{
|
||||
game[ "set_player_model" ][ "team6" ][ "rifle" ] = ::set_player_model;
|
||||
}
|
||||
else
|
||||
{
|
||||
game[ "set_player_model" ][ "axis" ][ "rifle" ] = ::set_player_model;
|
||||
}
|
||||
}
|
||||
|
||||
set_player_model()
|
||||
{
|
||||
self setmodel( "c_mul_mp_cordis_sniper_fb" );
|
||||
self setviewmodel( "c_mul_mp_cordis_sniper_viewhands" );
|
||||
heads = [];
|
||||
}
|
Reference in New Issue
Block a user