major control zone [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

major control zone [Solved]

Post by wsa30h »

is it possible to make the major control zone look like it did in the first game, maybe it can be done though the ingame trick that I used to get the vehicle repair droid ingame.
update it does work if you load the dc ingame lvl in the gamescripts first but there is no fake console but now I know there must be a way to do it
Last edited by wsa30h on Tue Aug 07, 2018 6:00 am, edited 4 times in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

All you need to do is edit the CP's ODF and change both GeometryName values (under [GameObjectClass] and [Properties]) to use com_bldg_controlzone_large instead of com_bldg_controlzone, and add com_bldg_controlzone_large to the "model" section of your custom ingame's REQ file.

Additionally, since units can't walk over the large CP mesh, I recommend adding the following to the ODF's [Properties] section:

Code: Select all

AutoBarrierEnable   = "1"
AutoBarrierRemoveOnDeath = "0"
AutoBarrierSize     = "2.0 2.0"
It'll automatically generate a 2x2 AI barrier around the CP during runtime so bots don't run into it. ;)
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

thanks I got it working by copying over the odf from the first game and renaming the major to huge and mentioning it in the dc ingame req.
but that didn't show the symbol above the cp and when I went back and change everything you told me to and add the large to the ingame req it shows up as the normal one.
even if I put the dc ingame first which makes me lose the fake console functionality it does spawn then but it has no faction symbol over it, I think that this is either hardcoded or in mesh file.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

I got it working for Siege mode in MEU; it's not hardcoded.
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

got it working but just one problem the symbol that shows the faction above the normal command post isn't there the same way it is in heroes vs villans or if there is a third local team is there a way to fix this ?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

- Hero Assault uses com_bldg_controlzone_CTF.
- CPs use the HoloImageGeometry parameter to determine which icon they use for each team that owns the CP.

Using the above knowledge, think critically about what you should do to find out how com_bldg_controlzone_CTF uses a different icon from com_bldg_major_controlzone. Try comparing the HoloImageGeometry parameters from com_bldg_major_controlzone with the ones in com_bldg_controlzone_CTF.
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

I tried swapping both nothing is working to get the symbol up are you sure its possible to have it with the symbol ?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Could you post your changed ODF?
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

heres what is inside of it
Hidden/Spoiler:
[code][GameObjectClass]
ClassLabel = "commandpost"
GeometryName = "com_bldg_controlzone_large.msh"
GeometryScale = 1.0


[Properties]
SwitchClassRadius = "5.0"
BUILDINGSECTION = "BODY"

Label = "Control Zone"

NeutralizeTime = 12.0
CaptureTime = 10.0

MapTexture = "hud_flag_icon"
MapScale = 2.5
GeometryName = "com_bldg_controlzone_large"
HoloOdf = "com_holo_controlzone"
HoloImageGeometry = "com_icon_swap alliance"
HoloImageGeometry = "com_icon_swap empire"
HoloImageGeometry = "com_icon_swap republic"
HoloImageGeometry = "com_icon_swap CIS"
HoloTurnOnTime = 2.2
ChargeSound = "com_blg_commandpost_charge defer"
CapturedSound = "com_blg_commandpost_capture defer"
DischargeSound = "com_blg_commandpost_discharge defer"
LostSound = "com_blg_commandpost_lost defer"
DisputeSound = "com_blg_commandpost_dispute defer"
AmbientSound = "all com_blg_commandpost_goodie defer"
AmbientSound = "cis com_blg_commandpost_baddie defer"
AmbientSound = "imp com_blg_commandpost_baddie defer"
AmbientSound = "rep com_blg_commandpost_goodie defer"
SoundPitchDev = "0.4"
Lighting = "dynamic"
AutoRespawnEnable = 1

[InstanceProperties]
CaptureRegion = ""
ControlRegion = ""
SpawnPath = ""
TurretPath = ""
AllyPath = ""
AllyCount = 65536
SpawnRegion = ""
Radius = 0.0
ValueBleed_Alliance = 10
ValueBleed_CIS = 10
ValueBleed_Empire = 10
ValueBleed_Republic = 10
ValueBleed_Neutral = 0
ValueBleed_Locals = 0
Value_ATK_Alliance = 10
Value_ATK_CIS = 10
Value_ATK_Empire = 10
Value_ATK_Republic = 10
Value_ATK_Locals = 10
Value_DEF_Alliance = 10
Value_DEF_CIS = 10
Value_DEF_Empire = 10
Value_DEF_Republic = 10
Value_DEF_Locals = 10
VO_All_AllCapture = "all_off_com_report_captured_commandpost"
VO_All_AllLost = "all_off_com_report_lost_commandpost"
VO_All_AllInDispute = ""
VO_All_AllSaved = ""
VO_All_AllInfo = ""
VO_All_ImpCapture = "all_off_com_report_enemyCaptured_commandpost"
VO_All_ImpLost = ""
VO_All_ImpInDispute = ""
VO_All_ImpSaved = ""
VO_All_ImpInfo = ""
VO_Imp_AllCapture = "imp_off_com_report_enemyCaptured_commandpost"
VO_Imp_AllLost = ""
VO_Imp_AllInDispute = ""
VO_Imp_AllSaved = ""
VO_Imp_AllInfo = ""
VO_Imp_ImpCapture = "imp_off_com_report_captured_commandpost"
VO_Imp_ImpLost = "imp_off_com_report_lost_commandpost"
VO_Imp_ImpInDispute = ""
VO_Imp_ImpSaved = ""
VO_Imp_ImpInfo = ""
VO_Rep_RepCapture = "rep_off_com_report_captured_commandpost"
VO_Rep_RepLost = "rep_off_com_report_lost_commandpost"
VO_Rep_RepInDispute = ""
VO_Rep_RepSaved = ""
VO_Rep_RepInfo = ""
VO_Rep_CISCapture = "rep_off_com_report_enemyCaptured_commandpost"
VO_Rep_CISLost = ""
VO_Rep_CISInDispute = ""
VO_Rep_CISSaved = ""
VO_Rep_CISInfo = ""
VO_CIS_RepCapture = "cis_off_com_report_enemyCaptured_commandpost"
VO_CIS_RepLost = ""
VO_CIS_RepInDispute = ""
VO_CIS_RepSaved = ""
VO_CIS_RepInfo = ""
VO_CIS_CISCapture = "cis_off_com_report_captured_commandpost"
VO_CIS_CISLost = "cis_off_com_report_lost_commandpost"
VO_CIS_CISInDispute = ""
VO_CIS_CISSaved = ""
VO_CIS_CISInfo = ""
SoldierBan = ""
HoverBan = ""
SmallBan = ""
MediumBan = ""
HugeBan = ""
FlyerBan = ""
AISpawnWeight = ""
HUDIndex = ""
HUDIndexDisplay = 1[/code]
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Hmm, are you sure the changes are being reflected? You might have to manually copy over your ingame.lvl file.

Also, to check, try changing com_bldg_controlzone_large to com_bldg_controlzone just to see. If the CP's mesh appears as the Conquest CP mesh in-game, then yeah changes are being reflected.
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

ok I changed it like you said and I still get the big mesh and not the conquest one also the cp didn't change and it should have I presume this means the changes aren't reflecting ?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Correct. Could you post a snippet from your Lua script showing the ingame.lvl sections?
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

am not sure what part you need but here it is

Hidden/Spoiler:
[code]ucft
{
REQN
{
"script"
"points"
"ifs_sideselect"
"ifs_charselect"
"ifs_mapselect"
"ifs_pc_spawnselect"
"ifs_readyselect"
"ifs_fakeconsole"
"game_interface"
}

REQN
{
"script"
"platform=xbox"
}

REQN
{
"script"
"platform=pc"
"ifs_pc_spawnselect"
"ifs_pc_spectator"
}

REQN
{
"texture"
"leaf"
"lightglow"
"lightsabreglow"
"statsscreens_bg"
"ambush_icon"
"blank_icon"
"bluelaser_l"
"blurmask"
"com_icon_ctfflag_all_imp"
"com_icon_ctfflag_rep_cis"
"com_sfx_laser_blue"
"com_sfx_laser_green"
"com_sfx_laser_orange"
"com_sfx_laser_purple"
"com_sfx_laser_red"
"com_sfx_laser_yellow"
"combatspeeder_icon"
"flag_team_carried"
"flag_carried"
"flag_dropped"
"flag_icon"
"fluffy"
"fx_godray"
"fx_snow"
"fx_splash"
"fxrippl1"
"greenlaser_l"
"hud_active_repair_icon"
"hud_blockaderunner_icon"
"hud_clipbar_segment"
"hud_dest_icon"
"hud_detpack_plunger"
"hud_flag_icon"
"hud_flag_timer"
"hud_herobar_saberhilt"
"hud_jetpack_and_energybar_blankfill"
"hud_jetpack_and_energybar_fill"
"hud_map_northpointer"
"hud_map_raster"
"hud_ministardestroyer_icon"
"hud_notallowed"
"hud_objective_icon"
"hud_objective_icon_circle"
"hud_objective_icon_hidden"
"hud_objective_icon_offscreen"
"hud_target_hidden"
"hud_target_hint_hidden"
"hud_target_hint_onscreen"
"hud_target_flag_onscreen"
"hud_target_onscreen"
"hud_target_pointer"
"hud_target_pointer_solid"
"hud_herobar_saberglow"
"hud_reinforcement_icon"
"hud_secondary_refire_segment"
"hud_threshold_tickmark"
"hud_infinite_ammo_icon"
"hud_player_captured_flag"
"hud_poison"
"hud_player_captured_flag"
"hud_proton_bomb"
"hud_black"
"hud_white"
"hud_vehicle_beam_cannon"
"hud_rep_weap_defense_buff_icon"
"map_mask"
"noise"
"player_icon"
"player_shadow"
"qos_veryverybad"
"redlaser_1"
"spacedust1"
"spray"
"tauntaun_kaadu_icon"
"Tooltips_BorderBox"
"troop_icon"
"turret_icon"
"walker_icon"
"weapon_scope"
"weapon_scope2"
"weapon_scope3"
"weapon_scope4"
"whitecircle"
}

REQN
{
"texture"
"platform=xbox"
"fx_ringbump"
}

REQN
{
"texture"
"platform=pc"
"fx_ringbump"
}

REQN
{
"config"
"SoldierAnimation"
"com_sfx_weap_sc_exp_sm"
"com_sfx_weap_sc_exp_md"
"com_sfx_weap_sc_exp_lg"
"com_sfx_weap_sc_exp_xl"
"com_sfx_weap_detpack_exp"
"com_sfx_weap_beam_exp"
"com_sfx_weap_beam_exp_sm"
"com_sfx_weap_beam_exp_md"
"com_sfx_weap_beam_exp_lg"
"com_sfx_weap_beam_exp_xl"
"com_sfx_weap_flamethrower_ord"
"com_sfx_weap_remotedroid_exp"
"com_sfx_weap_remotedroidcharge2"
"com_sfx_chargeup"
"com_sfx_chunksmolder"
"com_sfx_chunktrail"
"com_sfx_chunktrail_sm"
"com_sfx_chunktrail_xs"
"com_sfx_contrail"
"com_sfx_dirtspray_lg"
"com_sfx_dirtspray_sm"
"com_sfx_dustwake"
"com_sfx_exhaust_cloudcar"
"com_sfx_exhaust_jedistarfighter"
"com_sfx_exhaust_jedistarfighter_blue"
"com_sfx_exhaust_kwing"
"com_sfx_exhaust_xwing"
"com_sfx_explosion_lg"
"com_sfx_explosion_sm"
"com_sfx_explosion_xl"
"com_sfx_explosion_xs"
"com_sfx_fireflies"
"com_sfx_landmine"
"com_sfx_ord_exp"
"com_sfx_powerup_blue"
"com_sfx_powerup_red"
"com_sfx_powerup_green"
"com_sfx_buffed_poison"
"com_sfx_buffed_offense"
"com_sfx_buffed_defense"
"com_sfx_buffed_regen"
"com_sfx_buff_offense"
"com_sfx_buff_defense"
"com_sfx_buff_regen"
"com_sfx_buff_poison"
"com_sfx_hackedvehicle"
"com_sfx_inf_damage_disintergrate"
"com_sfx_inf_damage_electricity"
"com_sfx_inf_disintergrate"
"com_sfx_inf_damage_fire"
"com_sfx_inf_damage_smoke"
"com_sfx_forcechoked"
"com_sfx_forcepushed"
"com_sfx_forcepulled"
"com_sfx_mineblink_red"
"com_sfx_mineblink_gold"
"com_sfx_mineblink_green"
"com_sfx_mineblink_blue"
"com_sfx_mineblink_purple"
"com_sfx_ord_flame"
"com_sfx_protontorpedo"
"com_sfx_rainsplash"
"com_sfx_repair"
"com_sfx_sabredeflect"
"com_sfx_sabrehit"
"com_sfx_shieldimpact_sm"
"com_sfx_shieldimpact_xl"
"com_sfx_smokeplume"
"com_sfx_timebomb"
"com_sfx_vehicleflame"
"com_sfx_vehicleflame_sc"
"com_sfx_vehicleflame_speeder"
"com_sfx_vehiclesmoke"
"com_sfx_vehiclesmoke_sc"
"com_sfx_vehiclesmoke_speeder"
"com_sfx_vehiclespark"
"com_sfx_vehiclespark_sc"
"com_sfx_vehiclespark_speeder"
"com_sfx_vehicle_exp"
"com_sfx_walkerstomp"
"com_sfx_waterbulletspray"
"com_sfx_watersplash_lg"
"com_sfx_watersplash_md"
"com_sfx_watersplash_ord"
"com_sfx_watersplash_ord_lg"
"com_sfx_watersplash_ord_md"
"com_sfx_watersplash_sm"
"com_sfx_watersplash_wade"
"com_sfx_watersplash_walker"
"com_sfx_watersplash_xs"
"com_sfx_waterwake_lg"
"com_sfx_waterwake_sm"
"com_sfx_weap_arccaster"
"com_sfx_weap_bluebolt_exp_lg"
"com_sfx_weap_bluebolt_exp_md"
"com_sfx_weap_bluebolt_exp_sm"
"com_sfx_weap_bluebolt_exp_xl"
"com_sfx_weap_bolt_exp_lg"
"com_sfx_weap_bolt_exp_md"
"com_sfx_weap_bolt_exp_sm"
"com_sfx_weap_bolt_exp_xl"
"com_sfx_weap_con_exp_lg"
"com_sfx_weap_con_exp_md"
"com_sfx_weap_con_exp_sm"
"com_sfx_weap_con_exp_xl"
"com_sfx_weap_empmortar_ord"
"com_sfx_weap_emp_exp_lg"
"com_sfx_weap_emp_exp_md"
"com_sfx_weap_emp_exp_sm"
"com_sfx_weap_emp_exp_xl"
"com_sfx_weap_flame_exp_lg"
"com_sfx_weap_flame_exp_md"
"com_sfx_weap_flame_exp_sm"
"com_sfx_weap_flame_exp_xl"
"com_sfx_weap_greenbolt_exp_lg"
"com_sfx_weap_greenbolt_exp_md"
"com_sfx_weap_greenbolt_exp_sm"
"com_sfx_weap_greenbolt_exp_xl"
"com_sfx_weap_grenade_blue"
"com_sfx_weap_grenade_emp_exp"
"com_sfx_weap_grenade_gold"
"com_sfx_weap_grenade_green"
"com_sfx_weap_grenade_radiation_exp"
"com_sfx_weap_grenade_red"
"com_sfx_weap_grenade_schrap_exp"
"com_sfx_weap_grenade_thermal"
"com_sfx_weap_grenade_thermal_exp"
"com_sfx_weap_incinerate_ord"
"com_sfx_weap_incinerate_ord_exp"
"com_sfx_lightning"
"com_sfx_weap_mortartrail_blue"
"com_sfx_weap_mortartrail_red"
"com_sfx_weap_mortartrail_yellow"
"com_sfx_weap_orangebolt_exp_lg"
"com_sfx_weap_orangebolt_exp_md"
"com_sfx_weap_orangebolt_exp_sm"
"com_sfx_weap_orangebolt_exp_xl"
"com_sfx_weap_purplebolt_exp_lg"
"com_sfx_weap_purplebolt_exp_md"
"com_sfx_weap_purplebolt_exp_sm"
"com_sfx_weap_purplebolt_exp_xl"
"com_sfx_weap_rad_exp_lg"
"com_sfx_weap_rad_exp_md"
"com_sfx_weap_rad_exp_sm"
"com_sfx_weap_rad_exp_xl"
"com_sfx_weap_redbolt_exp_lg"
"com_sfx_weap_redbolt_exp_md"
"com_sfx_weap_redbolt_exp_sm"
"com_sfx_weap_redbolt_exp_xl"
"com_sfx_weap_rockettrail"
"com_sfx_weap_rockettrail_blue"
"com_sfx_weap_rockettrail_gold"
"com_sfx_weap_rockettrail_green"
"com_sfx_weap_rockettrail_purple"
"com_sfx_weap_seismiccharge"
"com_sfx_weap_shiplaser_exp_lg"
"com_sfx_weap_shiplaser_exp_md"
"com_sfx_weap_shiplaser_exp_sm"
"com_sfx_weap_spyrifle_ord"
"com_sfx_weap_timebomb"
"com_sfx_weap_yellowbolt_exp_lg"
"com_weap_overheat"
"com_sfx_muzzleflash_lg"
}

REQN
{
"animbank"
"human"
"humanfp"
"humanlz"
}

REQN
{
"model"
"all_weap_inf_thermaldetonator"
"cis_weap_inf_thermaldetonator"
"imp_weap_inf_thermaldetonator"
"rep_weap_inf_thermaldetonator"
"com_weap_inf_thermaldetonator"
"com_bldg_controlzone_large "
"com_item_powerup_dual"
"com_weap_inf_grenadethermal"
"com_weap_inf_grenadethermal_ord"
"com_1st_weap_inf_grenadethermal"
"com_weap_inf_torpedo"
"com_1st_weap_inf_torpedo"
"com_weap_inf_medkit"
"com_weap_inf_repairkit"
"com_weap_missile"
"com_bldg_controlzone"
"com_bldg_ctfbase_redteam"
"com_bldg_ctfbase_greenteam"
"com_bldg_ctfbase"
"com_bldg_inf_defenseturret"
"com_icon_alliance"
"com_icon_imperial"
"com_icon_republic"
"com_icon_CIS"
"com_icon_swap"
"com_weap_probedroid"
"com_smallchunk1"
"com_mediumchunk1"
"com_weap_inf_landmine"
"com_weap_inf_seismic_mine"
"com_weap_inf_detpack"
"coll_drive"
"com_sfx_muzzleflash"
"com_prop_buildzone"
"shell_cube"
"com_weap_inf_binoculars"
"hud_arrow"
"hud_map_fov"
"hud_large_map_fov"
"hud_main_reticule"
"hud_main_reticule_bullseye"
"hud_main_reticule_hit"
"hud_main_reticule_outline"
"hud_main_reticule_criticalhit"
"hud_main_reticule_rocketlockon_active"
"hud_energybar_frame_front"
"hud_energybar_frame_back"
"hud_jetpackbar_frame_front"
"hud_jetpackbar_frame_back"
"hud_vehicle_seatingchart_ai_icon"
"hud_vehicle_seatingchart_empty_icon"
"hud_vehicle_seatingchart_player1_icon"
"hud_weapon_backdrop"
"hud_weapon2_backdrop"
"hud_thermaldetonator"
"hud_detpack_plunger"
"hud_vehicle_lasers"
"hud_vehicle_bombs"
"hud_vehicle_chaingun"
"hud_vehicle_guided_rocket"
"hud_vehicle_flak"
"hud_vehicle_missile"
"hud_vehicle_mortar"
"hud_vehicle_stingers"
"hud_vehicle_recoiless"
"hud_vehicle_torpedo"
"hud_vehicle_beam_cannon"
"hud_hint_backdrop"
"hud_healthbar_frame"
"hud_tooltips_frame"
"hud_infinite_ammo_icon"
"hud_lightsaber"
"hud_force_choke"
"hud_force_saberthrow"
"hud_force_pull"
"hud_force_push"
"hud_force_lightning"
"hud_poison"
"hud_rage"
"hud_rep_weap_defense_buff_icon"
"hud_health_regen"
}

REQN
{
"class"
"com_item_vehicle_spawn"
"com_item_powerup_ammo"
"com_item_powerup_health100"
"com_item_powerup_health25"
"com_item_powerup_dual"
"com_item_powerup_offense"
"com_item_powerup_defense"
"com_item_powerup_energy"
"com_item_machineryrepair"
"com_item_vehiclerecharge"
"com_item_space_vehiclerecharge"
"com_item_weaponrecharge"
"com_item_weaponrecharge_unbuilt"
"com_item_hero_healthrecharge"
"com_item_healthrecharge"
"com_item_healthrecharge_unbuilt"
"com_item_flag"
"com_item_flag_all_carried"
"com_item_flag_cis_carried"
"com_item_flag_imp_carried"
"com_item_flag_rep_carried"
"com_item_null"
"com_item_holocron"
"com_item_flag_all"
"com_item_flag_cis"
"com_item_flag_imp"
"com_item_flag_rep"
"com_prop_barrier_01"
"com_weap_ord_exp"
"com_snd_amb_streaming"
"com_snd_amb_static"
"com_bldg_controlzone"
"com_bldg_controlzone_ctf"
"com_bldg_untakeable_controlzone"
"com_bldg_ctfbase_greenteam"
"com_bldg_ctfbase_redteam"
"com_bldg_ctfbase"
"com_bldg_invisible_controlzone"
"com_bldg_controlzone_large"
"com_bldg_major_controlzone"
"com_bldg_inf_defenseturret"
"com_weap_inf_seismic_mine"
"com_prop_buildzone"
"com_weap_inf_landmine_placed"
"com_weap_inf_landmine"
"com_weap_inf_empmine"
"com_prop_barrier_02"
"com_prop_cratemd_01"
"com_prop_barrel"
"com_prop_cratelg_01"
"com_holo_trap"
"com_inv_col_8"
"com_inv_col_16"
"com_inv_col_32"
"com_inv_col_64"
"com_inf_default"
"com_weap_inf_force_lightning"
"com_weap_inf_force_pull"
"com_weap_inf_force_push"
}

REQN
{
"config"
"hudtransforms"

}
}[/code]
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

That's the REQ file. I'm talking about the .lua script, something like ABCg_con.lua. The section would look something like this:

Code: Select all

	ReadDataFile("dc:ingame.lvl")
	ReadDataFile("ingame.lvl")
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

oops here you go
Hidden/Spoiler:
[code]--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
cp7 = CommandPost:New{name = "cp7"}
cp8 = CommandPost:New{name = "cp8"}


--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:AddCommandPost(cp7)
conquest:AddCommandPost(cp8)
conquest:Start()
SetUberMode(1);
EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- 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()

ReadDataFile("ingame.lvl")
ReadDataFile("dc:ingame.lvl")

SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

ReadDataFile("sound\\rhn.lvl;rhn1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep2_rocketeer_chaingun",
"rep_inf_ep2_jettrooper",
"rep_hover_fightertank",
"rep_hero_macewindu",
"rep_walk_oneman_atst",
"rep_walk_atte",
"rep_fly_gunshis",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_countdooku",
"cis_fly_geofighter",
"cis_hover_aat")


ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"com_item_vehiclerecharge",
"com_item_vehiclerecharge.odf",
"tur_bldg_geoturret")

SetupTeams{
rep = {
team = REP,
units = 40,
reinforcements = 250,
soldier = { "rep_inf_ep2_rifleman"},
assault = { "rep_inf_ep2_rocketeer"},
engineer = { "rep_inf_ep2_engineer"},
sniper = { "rep_inf_ep2_sniper"},
officer = {"rep_inf_ep2_rocketeer_chaingun"},
special = { "rep_inf_ep2_jettrooper"},

},
cis = {
team = CIS,
units = 40,
reinforcements = 200,
soldier = { "cis_inf_rifleman"},
assault = { "cis_inf_rocketeer"},
engineer = { "cis_inf_engineer"},
sniper = { "cis_inf_sniper"},
officer = {"cis_inf_officer"},
special = { "cis_inf_droideka"},
}
}

SetHeroClass(CIS, "cis_hero_countdooku")
SetHeroClass(REP, "rep_hero_macewindu")


-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 6) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(1, 8) -- ATSTs
AddWalkerType(3, 3) -- 2 attes with 3 leg pairs each
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("CommandWalker", 2)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("CommandBuildingArmed", 2)
SetMemoryPoolSize("EntityCarrier", 2)
SetMemoryPoolSize("PowerupItem", 25)
SetMemoryPoolSize("CommandFlyer", 1)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:GES\\GES.lvl", "GES_conquest")
ReadDataFile("dc:GES\\GES.lvl", "GES_conquest")
SetDenseEnvironment("false")




-- Sound

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")

voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)

voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_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\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1")
OpenAudioStream("sound\\yav.lvl", "yav1_emt")

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)

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

SetAmbientMusic(REP, 1.0, "rep_yav_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_yav_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_yav_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_yav_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_yav_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_yav_amb_end", 2,1)

SetVictoryMusic(REP, "rep_yav_amb_victory")
SetDefeatMusic (REP, "rep_yav_amb_defeat")
SetVictoryMusic(CIS, "cis_yav_amb_victory")
SetDefeatMusic (CIS, "cis_yav_amb_defeat")

SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--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")


--OpeningSateliteShot
AddCameraShot(0.908386, -0.209095, -0.352873, -0.081226, -45.922508, -19.114113, 77.022636);

AddCameraShot(-0.481173, 0.024248, -0.875181, -0.044103, 14.767292, -30.602322, -144.506851);
AddCameraShot(0.999914, -0.012495, -0.004416, -0.000055, 1.143253, -33.602314, -76.884430);
AddCameraShot(0.839161, 0.012048, -0.543698, 0.007806, 19.152437, -49.802273, 24.337317);
AddCameraShot(0.467324, 0.006709, -0.883972, 0.012691, 11.825212, -49.802273, -7.000720);
AddCameraShot(0.861797, 0.001786, -0.507253, 0.001051, -11.986043, -59.702248, 23.263165);
AddCameraShot(0.628546, -0.042609, -0.774831, -0.052525, 20.429928, -48.302277, 9.771714);
AddCameraShot(0.765213, -0.051873, 0.640215, 0.043400, 57.692474, -48.302277, 16.540724);
AddCameraShot(0.264032, -0.015285, -0.962782, -0.055734, -16.681797, -42.902290, 129.553268);
AddCameraShot(-0.382320, 0.022132, -0.922222, -0.053386, 20.670977, -42.902290, 135.513001);
end[/code]
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Your custom ingame.lvl needs to be loaded before the stock ingame.lvl.

Also, it sounds/looks to me like you need to refine your ingame.req file to only require the files that you're using/changing, like com_bldg_major_controlzone.

Keep the following in mind as you do it:
- "class" section = ODF files
- "model" section = MSH files
- "texture" section = TGA files
- "config" section = FX files, HUD files, and some others

In your case, your ingame.req file should only require the CP ODF, the CP's mesh, and the mesh's textures.
Calrissian97
Second Lance Corporal
Second Lance Corporal
Posts: 102
Joined: Sun May 07, 2017 11:31 pm
Projects :: ANF - ISM Skin Changer - BF1 Ports
Games I'm Playing :: All teh BFs
Location: Kentucky, USA

Re: major control zone

Post by Calrissian97 »

Are you sure the textures are necessary for the req file? From what I've seen the models will automatically call for their textures.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Maybe, maybe not ¯\_(ツ)_/¯
wsa30h
Rebel Sergeant
Rebel Sergeant
Posts: 208
Joined: Thu Jul 26, 2018 12:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: star wars bf2
xbox live or psn: No gamertag set

Re: major control zone

Post by wsa30h »

yeah but anytime I load the custom ingame lvl before the stock one I get no fake console.
update got it working marth you were right about the ingame lvl you were right. thanks marth8880 you got me out of trouble once again.
had to do a clean munge but its all fine now.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: major control zone

Post by Marth8880 »

Glad to hear! :thumbs:
wsa30h wrote:yeah but anytime I load the custom ingame lvl before the stock one I get no fake console.
The reason why is because your custom ingame.lvl was loading the pause menu scripts that are normally loaded by the stock ingame.lvl.
Post Reply