Delta Force Barracks Forums

WAC Questions and information

chrislew200 - 5-19-2005 at 04:55 AM

Please post any wac related questions or information you would like to pass on by repying to this post.

chrislew200

SilenT-SnipeR - 5-19-2005 at 04:58 AM

ok hey does any 1 be able to help i found out that this code does not block all wepons

if Past(1) and never() then
blockfire(1, 1)
blockfire(2, 1)
blockfire(3, 1)
blockfire(4, 1)
blockfire(5, 1)
blockfire(6, 1)
blockfire(7, 1)
blockfire(8, 1)
endif

well yeh it does block them but only by number keys the flaw i found in this is that you can use the [ and the ] key for next and previous weapons i tryed this command

if Past(1) and never() then
blockfire(1, 1)
blockfire([, 1)
blockfire(], 1)
endif


peace

7>Snake - 5-30-2005 at 09:24 PM

When you tried:

if Past(1) and never() then
blockfire(1, 1)
blockfire([, 1)
blockfire(], 1)
endif

Did it work? It's always helpfull for others using the forums if you can do a follow-up on questions like these.

Using Events in WAC file to trigger WAV dialog

Jonathan - 6-5-2005 at 04:41 AM

Background: I created a mission awhile back for Black Hawk Down and was able to get Wavs/Text Msgs in the WAC file to trigger correctly off the Events in MED.

Current Problem: Event checks in the WAC file not triggering correctly.

I created a single player mission for DFx, and it works correctly with the events in the MED. I can run thru the mission and all the events in the MED seem to fire correctly.

Now I want to add some WAV dialogs which will be triggered in the mission WAC file. But I must be doing something wrong. Cause the dialogs are either playing when an event hasn't happened, or they don't play when they should.

So I created a very simple single player map with 3 trigger areas and a Start Player. The Start Player SSN = 1 and has been assigned to the Blue Team. In the MED I created 2 events.

Event 0: If SSN 10000 is within area 1
Event 1: If SSN 1 is within area 2.

And here's the code for the WAC file.

//Wavs
//have a nice walk in park
if event(0) and never() then
wave("chop136.wav",100)
text("area 1")
endif

// looks like we'll do it the hard way
if event(1) and never() then
wave("char509.wav", 100)
text("area 2")
endif

// base is alert
if ssnarea3D(10000,3) and wavready() and never() then
wave("comd108.wav", 100)
text("area 3")
endif

The player starts outside of the 3 areas. But even before the mission starts (weapons loadout screen), I hear the 2nd WAV dialog above. Plus when I hit spacebar to enter the mission, I can see text msg: "area 1 & area 2" in bottom left of screen.

I run to area 1, and nothing.
I run to area 2, and nothing.
I run to area 3 and get the expected results.

Now the difference that I see is that I use an Area check for # 3 vs an Event check for the first 2. I even extracted the WAC files from the pff file and looked at some of the code in them. But none of them used IF Event(X) then... Plus I went thru Chrislew200 WAC Tutorial, searched thru the DF web site map builders forums.

Bottom line: I'm confused as to why the EVENT checks in the WAC aren't working correctly. Anyone see a problem with my syntax or setup? Has anyone tried testing this? I have this small mission zipped if anyone wants to take a look at it or test it.

tia
Jonathan


chrislew200 - 6-5-2005 at 04:59 AM

Send the zip file to wnpboiler1@hotmail.com and ill have a look at it for you.

Jonathan - 6-5-2005 at 07:54 AM

chrislew200, check your email. I hope you can tell me what I've done wrong.

Jonathan

chrislew200 - 6-5-2005 at 08:14 AM

delete the event execute mision wac its not required and probobaly the cause of the problem.

chrislew200

Jonathan - 6-5-2005 at 03:53 PM

The Execute WAC command was just a late addition on my part in an attempt to see if it would fix the problem. I also went so far as to add the /d switch to my DFx icon. Neither helped with the WAC vs If Event(X) issue.

I took the Execute WAC out, and I still get the same results. The WAC file thinks that Event 1 & 2 in the MED have triggered. When in fact they haven't. I know they haven't cause these two events are set to win a subgoal when the player enters a trigger area. When I play the map, the subgoals are unchecked. As soon as I enter either of the first 2 trigger areas, I see the subgoal checked off. This tells me that the events in the MED are working correctly.

But I'm still lost as to why the WAC file is having an issue with Event(X).

Jonathan

Jonathan - 6-11-2005 at 01:57 PM

I finally got my single player mission to execute the WAV msgs by using the SSNarea trigger function in the WAC file instead of trying to use EVENT function. But now I've ran into another issue.

I'm working on converting the single player mission to a coop version. All the Blue team markers are in. Got the SSNarea triggers converted to GroupArea triggers in the MED. But the problem is trying to use a GroupArea trigger in the WAC to play WAV files.

I checked the WAC command list and there is no "GroupArea trigger" function. I went ahead and used GroupArea, but some of the WAV msgs play when they're not suppose to, some play ok, and some just don't even play.

I haven't tested it, but should I just use the SSNarea(#,#) & test for every Blue Team SSN in the game to trigger the WAVs?

ex: if SSNarea(900,1) or SSN(area901,1) or ... then play the WAV.

Jonathan

Legionnaire=M= - 6-11-2005 at 05:16 PM

I played your map.
I enjoyed it.
Thanks for your work and info about AI naming.

I present another method.
This is an example of course.

Use MED's "GroupArea triggers" and .wac WAV script.
And use the Mission Variables instead of .wac command "EVENT(#)".

exp.)
-------------------------------------------
1. Make a MED event.
Triggers:
Group # is within area #
Actions:
Set Mission Var#1 to 1

2. Make a .WAC script.
if eq(V1, 1) and never() then
script for play the WAV
endif
-------------------------------------------

This is just an example. ;)

Jonathan - 6-12-2005 at 10:58 AM

Glad you liked the map.

And thanks to your suggestion, the WAVs for the coop version appear to be triggering in correct seq. Sure is a lot of hoops to jump thru to get a map working correctly.:D

Jonathan

Environmental effects

Saedor - 6-26-2005 at 07:06 PM

Okay, I can't seem to get the rain and snow efects to work using the med, but they work using the WAC commands. However, I'm not certain what all the variables in the WAC commands do. Does anyone know? Specifically...

snow(70,1)
rain(100,1)
overcast(21,1800)

The 70 and 100 in the snow and rain commands seems to be the density in percent of the effect. But I don't know what the "1" does.

And the two numbers in the Overcast command are a complete mystery...

Any help would be appreciated. :)

chrislew200 - 6-26-2005 at 08:46 PM

thats how many seconds it will take to build up to that level so if you had 30,30 then it would fill to the density of 30 but it would take 30 seconds to do so.

chrislew200

Saedor - 6-26-2005 at 09:14 PM

Ah, cool. That helps out alot. Thanks!

LOST

AlphaCAT - 8-9-2005 at 10:58 PM

Chrislew200....I did download and read the tutorial in the download section, and I'm still kinda lost...

I am really new at making maps, matter of fact, I'm still on my first one, I'm trying to build Co-Op maps with the Med and I can't get my objectives to list or work, so someone said that I should look into my .WAC file and edit it the way I want to. I also downloaded the PFF3 viewer or whatever that thing is call, and read the read me and did get all the .WAC file from my novalogic folder, which the only game I have installed now is DFX. That didn't help me out either, since I don't know what to look for or anything like that. So I quess my question is....Is there like something .WAC for dummies that I can read or download....Sorry if this sounds stuipd or anything, but I just don't know.

Thank you in advance for any and all help.

chrislew200 - 8-10-2005 at 01:30 AM

the wac file isnt your problem its either events or the bin file. If you have msn messenger please add me to it wnpboiler1@hotmail.com and i will help you find what is wrong. I will be home in 2 hours

chrislew200

Thank you

AlphaCAT - 8-11-2005 at 06:44 AM

Sorry about the delay in this post, I didn't have my connection, my isp lost a whole network......I don't have MSN, but I will download it and add you, Thank you very much

wac file

azz-kikker - 1-9-2006 at 10:37 AM

I have just finished a map and wanted to put a WAC file into it... the drop down tool for the 'open mission wac' file does not work any suggestions!!?? have i got something missing from my med??

Legionnaire=M= - 1-9-2006 at 10:47 PM

Don't worry, you haven't got the missing.
You need saving your making map as a .mis file before using the 'open mission wac' tool.
For example, you finish making a map.
You save it as 001.mis.
And run the 'open mission wac' tool.
A blanc file be named 001.wac will appear on screen. (to external)
This blanc .wac will be saved to .mis file's directory.

About the .wac file, we need making(scripting) it manually.

wac

azz-kikker - 1-9-2006 at 11:46 PM

Thanks for the swift reply...the file IS saved as a mis. file!! still won't work !!!:(

Legionnaire=M= - 1-10-2006 at 01:00 AM

Ok. Your prob. is not serious.
Something wrong with your text editor, maybe.
The 'open mission wac' tool isn't important for the map making.

Run the text editor (ex. notepad.exe etc...) & make a .txt file.
And write (input) the .wac script, bra....bra...bra......
Save that .txt file anywhere you want.
Rename that .txt file to same your .bms name & .wac.
For example, your .bms is "001.bms".
Rename your .txt file scripted with .wac commands, rename it to "001.wac".
It is not "001.wac.txt", be careful about it.
And put them into your DF:X directory.
That's all.
The .wac must be into the DF:X directory.

WAC

Shifty421 - 3-14-2006 at 10:10 AM

Help! My WAc never makes sense and i need major help!!!!

WAC/Map-Making

Shifty421 - 3-15-2006 at 09:32 AM

How do you create custom objectives (for dfx). Also, your teammates name, how can you customize them. I know it has something to do wiht BIN files, but i know nothing else! Also, what else can you do wiht BIN files? Please post something or email me at ~~ Shifty421@aol.com

Legionnaire=M= - 3-19-2006 at 03:48 PM

Just need editing .bin file.

About editing the .bin file, get this.
Basic Bin File Tutorial (Thanks to 7>Snake and Eagle Eye for great job)
http://www.dfbarracks.com/downloads/index.php?action=df&fid=...
Don't forget, this is explain about DF:BHD's.

About DFX's .bin, just read next thread.
http://www.dfbarracks.com/forums/viewthread.php?tid=36780

Please look through the forums. ;)

WAC File Trigger and Events List

aquafloE - 4-16-2006 at 12:17 PM

Does anyone know where I can find a complete list of all the triggers and events that can be in a wac file? Thanks!

STOP PULLING FACES

MERMITE - 6-23-2006 at 11:17 AM

I work in DFX single player maps and can't get facial gestures to work has any one been able too?...Text Yellowsee this example:

if past(7) and never() then
ssnface 1504 face_surprise
endif

if past(9) and never() then
ssnface 1504 face_happy
endif

if past(11) and never() then
ssnface 1504 face_normal
endif

if past(13) and never() then
ssnface 1504 face_happy
endif

if past(15) and never() then
ssnface 1504 face_normal
endif

Leaving 2 sec's for each face
even less is better

Legionnaire=M= - 6-24-2006 at 04:17 AM

I've tried with JO and DF:X, too.
No result, unfortunately.
I believe ssnface(#, face_name) doesn't work with JO:TR, DF:X.
It works with DF:BHD, maybe. (I havn't checked.)

I'd like to know if anyone is getting result about facial gesture, too.

Crazy Horse WFA - 1-15-2015 at 02:42 PM

Dave61 still around? He sent me a WAC list once. I will see if I still have it.

Crazy Horse WFA - 2-17-2015 at 01:55 PM

I never use this script... I don't get close enough to the enemy to see his face ;)

but here's some info Dave61 sent me years ago:

----------------------------------
Facial Expressions
This script changes the facial expressions of the AL.


if ssndead(44) and never then
ssnface 45 face_disgust
ssnface 46 face_angry
ssnturn(45,90)
ssnturn(46,-90)
endif



Also use : face_normal , face_happy , face_sad , face_smirk , face_angry ,

face_surprise , face_disgust , face_fear , face_aggressive

Crazy Horse WFA - 2-17-2015 at 01:55 PM

I never use this script... I don't get close enough to the enemy to see his face ;)

but here's some info Dave61 sent me years ago:

----------------------------------
Facial Expressions
This script changes the facial expressions of the AL.


if ssndead(44) and never then
ssnface 45 face_disgust
ssnface 46 face_angry
ssnturn(45,90)
ssnturn(46,-90)
endif



Also use : face_normal , face_happy , face_sad , face_smirk , face_angry ,

face_surprise , face_disgust , face_fear , face_aggressive