Kamino: Clones vs Empire

Started by Shazam, July 04, 2013, 09:19:54 AM

Previous topic - Next topic
July 04, 2013, 09:19:54 AM Last Edit: July 04, 2013, 02:05:52 PM by Shazam
Kamino: Clones vs Empire

http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=1001

A mission.lvl that replaces the CIS with Empire on Kamino. As far as I know, this is not online compatible, so you will have to use a different mission.lvl if you wish to play Kamino online. I haven't found any bugs, but please let me know if you find any!

Special thanks to Snake for helping me.

For any modders, here's my mission.lvl if you wish to edit it:
[spoiler]---------------------------------------------------------------------------
-- FUNCTION:    ScriptInit
-- PURPOSE:     This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES:       The name, 'ScriptInit' is a chosen convention, and each
--              mission script must contain a version of this function, as
--              it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
--  REP Attacking (attacker is always #1)
    local REP = 2;
    local IMP = 1;
--    local CIS = 1;
--  These variables do not change
    local ATT = 1;
    local DEF = 2;

--    AddMissionObjective(CIS, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(IMP, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(REP, "orange", "level.kamino1.objectives.1");

    ReadDataFile("sound\kam.lvl;kam1cw");
    ReadDataFile("SIDE\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\imp.lvl",
        "imp_fly_fedlander_dome",   
       "imp_inf_basic",                     
        "imp_inf_dark_trooper",
        "imp_inf_darthvader");
--    ReadDataFile("SIDE\cis.lvl",
--        "cis_fly_fedlander_dome",
--       "cis_inf_basic",
--       "cis_inf_countdooku",
--        "cis_inf_droideka");

--    SetTeamAggressiveness(CIS, 0.9)
    SetTeamAggressiveness(IMP, 0.9)
    SetTeamAggressiveness(REP, 0.9)

--  Republic Stats
    SetTeamName(REP, "Republic");
    SetTeamIcon(REP, "rep_icon");
      AddUnitClass(REP, "rep_inf_clone_trooper",11)
      AddUnitClass(REP, "rep_inf_arc_trooper",3)
      AddUnitClass(REP, "rep_inf_clone_pilot",4)
      AddUnitClass(REP, "rep_inf_clone_sharpshooter",4)
      AddUnitClass(REP, "rep_inf_jet_trooper",3)
      SetHeroClass(REP, "rep_inf_macewindu")



--  CIS Stats
--    SetTeamName(CIS, "CIS");
--    SetTeamIcon(CIS, "cis_icon");
--      AddUnitClass(CIS, "cis_inf_battledroid",12)
--      AddUnitClass(CIS, "cis_inf_assault",3)
--      AddUnitClass(CIS, "cis_inf_pilotdroid",4)
--      AddUnitClass(CIS, "cis_inf_assassindroid",4)
--      AddUnitClass(CIS, "cis_inf_droideka",2)
--      SetHeroClass(CIS, "cis_inf_countdooku")

-- Imperial Stats
    SetTeamName(IMP, "Empire")
    SetTeamIcon(IMP, "imp_icon")
    AddUnitClass(IMP, "imp_inf_storm_trooper",12)
    AddUnitClass(IMP, "imp_inf_shock_trooper",3)
    AddUnitClass(IMP, "imp_inf_pilotatst",4)
    AddUnitClass(IMP, "imp_inf_scout_trooper",4)
    AddUnitClass(IMP, "imp_inf_dark_trooper",2)
    SetHeroClass(IMP, "imp_inf_darthvader")

--SetPlayerTeamDifficulty( 11 )
--SetEnemyTeamDifficulty( 11 )

--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)


--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 220)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

--  Level Stats
    ClearWalkers()
    AddWalkerType(0, 16)
    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("KAM\kam1.lvl")
    SetDenseEnvironment("false")

--  AI
    SetMinFlyHeight(60)
    SetMaxFlyHeight(140)
    SetAllowBlindJetJumps(0)

--  Sound
    OpenAudioStream("sound\kam.lvl",  "kamcw_music");
    OpenAudioStream("sound\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\kam.lvl",  "kam1cw");
    OpenAudioStream("sound\kam.lvl",  "kam1cw");


    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1);
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1);

    SetAmbientMusic(REP, 1.0, "rep_kam_amb_start",  0,1);
    SetAmbientMusic(REP, 0.99, "rep_kam_amb_middle", 1,1);
    SetAmbientMusic(REP, 0.1,"rep_kam_amb_end",    2,1);
    SetAmbientMusic(CIS, 1.0, "imp_kam_amb_start",  0,1);
    SetAmbientMusic(CIS, 0.99, "imp_kam_amb_middle", 1,1);
    SetAmbientMusic(CIS, 0.1,"imp_kam_amb_end",    2,1);

    SetVictoryMusic(REP, "rep_kam_amb_victory");
    SetDefeatMusic (REP, "rep_kam_amb_defeat");
    SetVictoryMusic(CIS, "imp_kam_amb_victory");
    SetDefeatMusic (CIS, "imp_kam_amb_defeat");

    SetOutOfBoundsVoiceOver(2, "repleaving");
    SetOutOfBoundsVoiceOver(1, "cisleaving");

    SetSoundEffect("ScopeDisplayZoomIn",  "binocularzoomin");
    SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout");
    --SetSoundEffect("WeaponUnableSelect",  "com_weap_inf_weaponchange_null");
    --SetSoundEffect("WeaponModeUnableSelect",  "com_weap_inf_modechange_null");
    SetSoundEffect("SpawnDisplayUnitChange",       "shell_select_unit");
    SetSoundEffect("SpawnDisplayUnitAccept",       "shell_menu_enter");
    SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change");
    SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter");
    SetSoundEffect("SpawnDisplayBack",             "shell_menu_exit");

    SetPlanetaryBonusVoiceOver(IMP, IMP, 0, "IMP_bonus_IMP_medical");           
    SetPlanetaryBonusVoiceOver(CIS, REP, 0, "IMP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 1, "");
    SetPlanetaryBonusVoiceOver(IMP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 2, "IMP_bonus_IMP_sensors");
    SetPlanetaryBonusVoiceOver(IMP, REP, 2, "IMP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(IMP, CIS, 3, "IMP_bonus_IMP_hero");
    SetPlanetaryBonusVoiceOver(IMP, REP, 3, "IMP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 4, "IMP_bonus_IMP_reserves");
    SetPlanetaryBonusVoiceOver(IMP, REP, 4, "CIS_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 5, "IMP_bonus_IMP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(IMP, REP, 5, "IMP_bonus_REP_sabotage");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 6, "");
    SetPlanetaryBonusVoiceOver(IMP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(IMP, IMP, 7, "IMP_bonus_IMP_training");--advanced training
    SetPlanetaryBonusVoiceOver(IMP, REP, 7, "IMP_bonus_REP_training");--advanced training

    SetPlanetaryBonusVoiceOver(REP, REP, 0, "REP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(REP, IMP, 0, "REP_bonus_IMP_medical");
    SetPlanetaryBonusVoiceOver(REP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, IMP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 2, "REP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(REP, IMP, 2, "REP_bonus_IMP_sensors");
    SetPlanetaryBonusVoiceOver(REP, REP, 3, "REP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(REP, IMP, 3, "REP_bonus_IMP_hero");
    SetPlanetaryBonusVoiceOver(REP, REP, 4, "REP_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(REP, IMP, 4, "REP_bonus_IMP_reserves");
    SetPlanetaryBonusVoiceOver(REP, REP, 5, "REP_bonus_REP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(REP, IMP, 5, "REP_bonus_IMP_sabotage");
    SetPlanetaryBonusVoiceOver(REP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, IMP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 7, "REP_bonus_REP_training");--advanced training
    SetPlanetaryBonusVoiceOver(REP, IMP, 7, "REP_bonus_IMP_training");--advanced training

    SetAttackingTeam(ATT);

    AddDeathRegion("DeathRegion");

--Kamino
--Alpha
AddCameraShot(0.190478, -0.010945, -0.980014, -0.056312, -26.091288, 55.965012, 159.458099);
--Clonecenter
AddCameraShot(-0.376571, -0.019637, -0.924923, 0.048232, 176.042465, 53.957565, 244.261139);
--Overhead many alphas
AddCameraShot(0.639254, -0.073533, 0.760457, 0.087475, 78.395348, 72.538582, 344.086609);
end
[/spoiler]

The mission.lvl goes here:
C:/Program Files/LucasArts/Star Wars Battlefront/GameData/Data/_LVL_PC
Make sure you backup your stock mission.lvl before installing!

Enjoy!  :cheers: