Vehicles and ground CTF mode

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

Post Reply
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Vehicles and ground CTF mode

Post by ForceMaster »

Hi, there is any way to capture the flag (groud map) when you drive any vehicle like the space CTF mode? I mean, capture the flag with vehicle and without get out from it. Thanks in advance.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Vehicles and ground CTF mode

Post by AnthonyBF2 »

It is possible to pick up flags with tanks and score but I never actually figured it out.

In the vanilla game for PS2, the AAC-1 can pick up the flag on Yavin while driving and score.
The AAC-1 can also pick up the flag in Naboo and score, how ever it doesn't work on every level which is the odd part.

Supposedly you could put CanCharacterInteractWithFlag = "1" on the tank's ODF, This is a code in the list of ODF parameters but I never bothered to mess with it.

This code isn't found on any of the vehicles,ships, or characters.

You could also try replacing the regular flag in your map with a space flag. I think it would look pretty large though on a ground map :?
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Vehicles and ground CTF mode

Post by ForceMaster »

I've tried changing the flag's odf and msh but not work, also, these code are not working for vehicles... :roll:

may be hardcoded function for space maps only?
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: Vehicles and ground CTF mode

Post by Marth8880 »

Are your flyer vehicles able to pick up the flags?
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Vehicles and ground CTF mode

Post by ForceMaster »

No, i've added one for testing, it can't pick up the flag in ground maps. Also, I've make an space ctf map for test and it can pick up the flag, then, there are not great difference between luas of both (space and ground), the objective is the same.

Ground CTF

Code: Select all

    ctf = ObjectiveOneFlagCTF:New{
			   teamATT = REP, teamDEF = CIS,
                           textATT = "game.modes.1flag", textDEF = "game.modes.1flag2",
                           captureLimit = 5, flag = "cmn_flag", flagIcon = "flag_icon", 
                           flagIconScale = 3.0, homeRegion = "homeregion",
                           captureRegionATT = "team1_capture", captureRegionDEF = "team2_capture",
                           capRegionMarkerATT = "hud_objective_icon_circle", capRegionMarkerDEF = "hud_objective_icon_circle",
                           capRegionMarkerScaleATT = 3.0, capRegionMarkerScaleDEF = 3.0, multiplayerRules = true,
    }

    ctf:Start()  
Space CTF

Code: Select all

	ctf = ObjectiveOneFlagCTF:New{
		teamATT = REP, teamDEF = CIS,
		textATT = "game.modes.1flag", textDEF = "game.modes.1flag2", flag = "cmn_flag",
		homeRegion = "flaghome", captureRegionATT = "atthome", captureRegionDEF = "defhome",
		capRegionDummyObjectATT = "1flag_rep_marker", capRegionDummyObjectDEF = "1flag_cis_marker",
		multiplayerRules = true, hideCPs = true,
		AIGoalWeight = 0.0,
	}
	SoundEvent_SetupTeams( REP, 'rep', CIS, 'cis' )
	
    ctf:Start()
	
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Vehicles and ground CTF mode

Post by AnthonyBF2 »

I have another idea you can try based on a theory (I'm too lazy to test this for now...)

Theory, in the stock maps, the AAC-1 can get flags because I think it depends on how the flag is positioned, and aligned with the tank when it gets close.
AAC-1 can't get the flag in all maps, and possibly because the flag isn't positioned correctly.
I think the flag my have to be positioned in a certain way, or possibly higher.

Idea
Take a clear cube (com_inv_col_8.msh <-- smallest one) and place it, and position it so only part of it sticks above the ground. Stick the flag on top of the block. The block should be placed so the flag would appear just foot off the ground.

Then set odf properties for the cube SoldierCollision and VehicleCollision = none so that it can't be in the way of game play. Default there is no texture for the cubes so essentially you have a floating flag low enough for troops to get but high enough for a vehicle. (if this idea works)

Another idea, set flag odf property VehicleCollision = none
This might allow the flag to be picked up by the driver's body in the vehicle instead of trying to make the tank get it.
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Vehicles and ground CTF mode

Post by ForceMaster »

Thanks for your ideas my friend, i've tried with several meshes for the flag, the vehicles can not pick up it, it is very frustrating.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Vehicles and ground CTF mode

Post by AnthonyBF2 »

That's all I could come up with. The ability for the AAC-1 to pick up the flag in Naboo and Yavin stumps me while it does not work on other levels.
Post Reply