Page 1 of 1
Vehicles and ground CTF mode
Posted: Tue Dec 23, 2014 1:41 am
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.
Re: Vehicles and ground CTF mode
Posted: Tue Dec 23, 2014 3:38 am
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

Re: Vehicles and ground CTF mode
Posted: Tue Dec 23, 2014 7:04 pm
by ForceMaster
I've tried changing the flag's odf and msh but not work, also, these code are not working for vehicles...
may be hardcoded function for space maps only?
Re: Vehicles and ground CTF mode
Posted: Wed Dec 24, 2014 12:59 am
by Marth8880
Are your flyer vehicles able to pick up the flags?
Re: Vehicles and ground CTF mode
Posted: Wed Dec 24, 2014 9:48 am
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()
Re: Vehicles and ground CTF mode
Posted: Sat Dec 27, 2014 1:58 am
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.
Re: Vehicles and ground CTF mode
Posted: Mon Dec 29, 2014 7:54 am
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.
Re: Vehicles and ground CTF mode
Posted: Mon Dec 29, 2014 8:07 am
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.