--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- load the gametype script
ScriptCB_DoFile("ObjectiveTDM")
ScriptCB_DoFile("setup_teams")
-- Empire Attacking (attacker is always #1)
CIS = 1
REP = 2
-- These variables do not change
ATT = 1
DEF = 2
---------------------------------------------------------------------------
-- 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.
---------------------------------------------------------------------------
--force all the human players onto the attacking side
function ScriptPostLoad()
hunt = ObjectiveTDM:New{teamATT = 1, teamDEF = 2, pointsPerKillATT = 3, pointsPerKillDEF = 3,
textATT = "game.modes.hunt", textDEF = "game.modes.hunt2", multiplayerRules = true}
hunt.OnStart = function(self)
AddAIGoal(ATT, "Deathmatch", 1000)
AddAIGoal(DEF, "Deathmatch", 1000)
end
hunt:Start()
end
function ScriptInit()
-- Designers, these two lines *MUST* be first!
SetPS2ModelMemory(3000000)
ReadDataFile("ingame.lvl")
ReadDataFile("sound\\nab.lvl;nab2cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_sniper")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_sniper")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser")
SetupTeams{
gungan = {
team = REP,
units = 32,
reinforcements = -1,
soldier = { "rep_inf_ep3_sniper",15},
},
cis = {
team = CIS,
units = 32,
reinforcements = -1,
soldier = { "cis_inf_sniper",15},
}
}
-- Level Stats
ClearWalkers()
AddWalkerType(0, 0)
AddWalkerType(1, 0)
SetMemoryPoolSize("Aimer", 22)
SetMemoryPoolSize("BaseHint", 128)
SetMemoryPoolSize("EntitySoundStream", 1)
SetMemoryPoolSize("EntitySoundStatic", 44)
SetMemoryPoolSize("MountedTurret", 10)
SetMemoryPoolSize("Navigator", 32)
SetMemoryPoolSize("Obstacle", 450)
SetMemoryPoolSize("PathNode", 200)
SetMemoryPoolSize("TreeGridStack", 470)
SetMemoryPoolSize("SoldierAnimation", 200)
SetMemoryPoolSize("UnitAgent", 32)
SetMemoryPoolSize("UnitController", 32)
SetMemoryPoolSize("Weapon", 144)
SetMemoryPoolSize("EntityFlyer", 6)
-- Fishies
SetNumFishTypes(8)
SetFishType(0,1.1,"fish")
SetFishType(1,0.5,"fish")
SetFishType(2,0.9,"fish")
SetFishType(3,0.7,"fish")
SetFishType(4,1.7,"fish")
SetFishType(5,0.1,"fish")
SetFishType(6,1.5,"fish")
SetFishType(7,1.9,"fish")
-- Birdies
SetNumBirdTypes(1)
SetBirdType(0,1.5,"bird")
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:???\\???.lvl","???_hunt")
SetDenseEnvironment("true")
SetMaxFlyHeight(80)
SetMaxPlayerFlyHeight (80)
-- Sound
voiceSlow = OpenAudioStream("sound\\global.lvl", "all_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "gun_unit_vo_slow", voiceSlow)
voiceQuick = OpenAudioStream("sound\\global.lvl", "all_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)
OpenAudioStream("sound\\global.lvl", "cw_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\nab.lvl", "nab2")
OpenAudioStream("sound\\nab.lvl", "nab2")
OpenAudioStream("sound\\nab.lvl", "nab2_emt")
-- SetBleedingVoiceOver(REP, REP, "all_off_com_report_us_overwhelmed", 1)
-- SetBleedingVoiceOver(REP, CIS, "all_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)
-- SetLowReinforcementsVoiceOver(REP, REP, "all_off_defeat_im", .1, 1)
-- SetLowReinforcementsVoiceOver(REP, CIS, "all_off_victory_im", .1, 1)
-- SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
-- SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1)
SetOutOfBoundsVoiceOver(2, "allleaving")
SetOutOfBoundsVoiceOver(1, "cisleaving")
SetAmbientMusic(REP, 1.0, "rep_nab_amb_hunt", 0,1)
-- SetAmbientMusic(REP, 0.9, "rep_nab_amb_middle", 1,1)
-- SetAmbientMusic(REP, 0.1, "rep_nab_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_nab_amb_hunt", 0,1)
-- SetAmbientMusic(CIS, 0.9, "cis_nab_amb_middle", 1,1)
-- SetAmbientMusic(CIS, 0.1, "cis_nab_amb_end", 2,1)
SetVictoryMusic(REP, "rep_nab_amb_victory")
SetDefeatMusic (REP, "rep_nab_amb_defeat")
SetVictoryMusic(CIS, "cis_nab_amb_victory")
SetDefeatMusic (CIS, "cis_nab_amb_defeat")
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")
-- Camera Stats
AddCameraShot(0.504729, 0.008133, 0.863128, -0.013908, -33.028889, 11.698190, -305.239777);
AddCameraShot(0.998757, 0.024656, 0.043299, -0.001069, -173.141403, 11.698190, 135.750336);
AddCameraShot(0.983559, -0.020210, -0.179414, -0.003687, -164.680222, 11.698190, -118.999832);
AddCameraShot(-0.276453, 0.005417, -0.960828, -0.018828, 55.126141, 11.698190, -463.062347);
end