Go Back   Novahq.net Forum > Games > Delta Force
FAQ Community Calendar Today's Posts Search

Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-12-2015, 05:57 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Off Mission Bombing Script

Off Mission Bombing Script - A Solution For Map Breaking

I had this script up on Enjin but the situation has changed there.
So I think it belongs here now, where it should have been all along.

These scripts and triggers will bombard players who are off mission.

PREPARATION

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)


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


AFTER PREPARING THE ABOVE COPY THE SCRIPTS BELOW
THEN PASTE INTO YOUR 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]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:56 PM.




Powered by vBulletin®