|
Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
WAC Solution For Map Breakers
A Solution For Map Breakers
(circa 2013) During some file archiving I came across this post from stompem.net This is an old wac solution for COOP and Multi-Player matches but can also be used in Single Player missions. There are probably better ways but this isn't complex to set up and worked OK. It will bombard players who are off mission or in any area or reason you like. You can wrap it with your own variables to trigger or modify. Begin By Creating Some Objects The Mission Editor (MEd) 1. Create a group of destroyable objects: Barrels, crates etc... Select and name them Group 3 or higher * Single or Coop player is always Group 1 Game Defaults: Group 1 - Blue team (Good) Blue Group 2 - Red Team (Evil) Red 2. Next make an Area Trigger: Use 2 area markers to create Area 1 3. Make 3 events: event(0) event(1) event(2) (as listed below) In The Events Editor: Event 0: Trigger Variables Triggers: Group 1 is within area 1 and Group 3 has not been destroyed Actions: Execute WAC Event 1: Trigger Text Reset after 10 seconds Delay event 1 seconds Triggers: Event 0 has been triggered Actions: Execute WAC Event 2: Trigger Reset Reset after 10 seconds Triggers: Group 1 is not within area 1 Actions: Reset Event 0 COPY THE SCRIPT BETWEEN THE GREEN LINES... THEN PASTE IN MISSION WAC. ----------------------------------------------------------------------------- //...[Start_ AREA TRIGGER] //...[Turn Variable ON/OFF] if event(0) then set(v50,1)//...........[ON] set(v51,1)//...........[ON] else set(v50,0)//..........[OFF] set(v51,0)//..........[OFF] endif //...[Mortars - Var50.1] if eq(v50,1) then ploop ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) chain(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) end endif //...[Mortars - Var51.1] if eq(v51,1) then ploop chain(8) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) chain(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) ammoarea AMMO_60MM_MORTAR(1) end endif //...[Text On] if event(1) then ptext("<cfcFF0000>WARNING!<-co> BLUE TEAM OFF MISSION!") endif //...[Text Off] if eq(v50,0) and chain(2) then ptext("<-co>") endif if chain(3) then ptext("<-co>") endif if chain(3) then ptext("<-co>") endif //...[End_Variable] ----------------------------------------------------------------------------- NOTE When issuing verbal instructions with wave files during high activity don't forget the usage of waveready() when needed. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|