PDA

View Full Version : dod_object & dod_capture_area


gunsofnavarone
09-19-2009, 07:35 AM
I'm working on a map whereas I have documents being taken to an area.

Here's the setup so far: Allies and Axis can both capture a particular room. But, when the Allies capture it, it in-turn opens a safe (Target when allies complete capture = safe). But the same definition for Axis is left blank. So far, so good. This works fine.

After this, is where I'm having difficulty figuring out how to proceed. What I want next is that the Allies take the documents to another dod_capture_area (I believe this is right). But, in this case I obviously need the Allies to need the documents to capture the area, but obviously the Axis do not. So, would I need 2 separate dod_capture_areas for each? One for Allies requiring the object and one for Axis not requiring the object and both triggering the same flag? Also, if the dod_capture_area is captured by the Axis, then I need the documents to reset and return to the safe (even though the same documents may have been previously used to capture that zone by the Allies).

I guess the short of it is, is that I don't want the allies to win the game as I've seen in other capture document maps, but I want it to act normally (meaning the axis can recapture the area). This is because all the capture areas must be taken and I don't want the capturing of the area with documents to bypass all other flag captures and win the round unless all others are still in the Allies possession.

So, what should the setup be for the area to capture with the documents?

Zor
09-20-2009, 10:26 PM
I would say your best bet is to use ripent and see what they did in dod_jagd. If you remember you need to get the docs to the hq, and the Axis need to kill the tanks. See what they did to figure it out....would be cool if you flipped sides when capture is done, which can be done in the ripent as well.

Cheers!

meathead
09-21-2009, 09:04 PM
A map called bierville. You took the keg in to a bar to cap the area, but the other team could take a keg of there own in and recapture the area.

Sohood
12-27-2009, 05:48 PM
Yes you would need 2 different capture areas, 1 for each team. Here's what I would do: If I were to create an airstrike and be able to use it multiple times without interfering with capping out I would proceed like this:

{
"origin" "511 2570 -5"
"target" "as1"
"object_donetarget" "allies_airstrike1"
"object_hud_sprite" "sprites/radio.spr"
"object_player_sprite" "sprites/radio.spr"
"object_takesound" "object/object_taken.wav"
"object_cappoints" "0"
"object_resettime" "180"
"object_resetontouch" "0"
"object_carryspeed" "1"
"object_owner" "1"
"object_group" "allies_air1"
"object_name" "Artillery Strike Radio"
"model" "models/hk_radio.mdl"
"angles" "0 0 0"
"classname" "dod_object"
}
{
"origin" "1699 2615 -38"
"targetname" "allies_airstrike1"
"capobj_donetarget" "allies_airstrike_mm"
"capobj_hud_sprite" "sprites/mapsprites/caparea.spr"
"capobj_group" "allies_air1"
"classname" "dod_object_goal"
}
{
"origin" "1794 762 -133"
"score_resetitemtime" "180"<-----resets every 3 mins.
"score_points" "10"
"team" "1"
"targetname" "allies_airstrike1"
"classname" "dod_score_ent"
}

or

{
"origin" "750 -891 58"
"object_player_sprite" "sprites/obj_tnt_sm.spr"
"object_otherpoints" "0"
"object_hud_sprite" "sprites/tnt.spr"
"object_group" "allies_docs"
"object_owner" "1"
"object_name" "TNT"
"object_cappoints" "0"
"object_resettime" "45"
"object_resetontouch" "1"
"object_carryspeed" "0.5"
"model" "models/tnt.mdl"
"classname" "dod_object"
}
{
"model" "*75"
"area_hud_sprite" "sprites/mapsprites/soldier_tnt.spr"
"target" "allies_safe"
"area_allies_endcap" "allies_docs_score"
"area_time_to_cap" "6"
"area_axis_numcap" "1"
"area_allies_numcap" "1"
"area_allies_cancap" "0"
"area_axis_cancap" "1"
"area_object_group" "allies_docs"
"spawnflags" "3"
"classname" "dod_capture_area"
}
{
"origin" "-504 1225 520"
"message" "MAP_ALLIED_VICTORY2"
"score_resetitemtime" "5"
"score_points" "25"
"team" "1"
"targetname" "allies_docs_score"
"classname" "dod_score_ent"
}
{
"origin" "-110 458 -29"
"angles" "0 180 0"
"point_reset_model" "models/w_wflag3.mdl"
"point_win_string" "%p captured the %n for the %t"
"point_allies_capsound" "ambience/usobjectivesecure.wav"
"point_group" "win"
"point_axis_capsound" "ambience/gerareasecure.wav"
"point_index" "1"
"point_hud_icon_allies" "1"
"point_hud_icon_axis" "2"
"point_axis_model" "models/ufw_gflag.mdl"
"point_allies_model" "models/ufw_aflag.mdl"
"point_default_owner" "1"
"point_team_points" "10"
"point_points_for_cap" "25"
"point_pointvalue" "0"
"point_can_axis_touch" "1"
"point_can_allies_touch" "1"
"point_name" "Allies Safe"
"targetname" "allies_docs"
"classname" "dod_control_point"
}