Results 1 to 7 of 7

Thread: Weather effects to play with

  1. #1
    Admin Reaper's Avatar
    Join Date
    Oct 2002
    Location
    Nevada,USA
    Posts
    569
    Downloads
    3
    Uploads
    1

    Weather effects to play with

    Here is a wac script to add to a map to show thunder lighning and roll in fog for a storm.

    Copy and paste the script in to note pad then save the file as all files named the maps .bms file name .wac so it would look like this:

    If the map was name strike, the bms file is also named strike the wac file should be named strike.wac

    The wac must be packed in the pff files or you need to add the /d command the the command line of the game short cut for it to work, And yes players would need the file also.

    if gt(ticks,30) and elapse(10) and never() then
    lightning(250,250,250)
    farflash
    flash
    fogdist(1800)
    fogcolor(55,72,84)
    endif

    if gt(ticks,90) and elapse(10) and never() then
    lightning(250,250,250)
    farflash
    flash
    fogdist(1600)
    fogcolor(55,68,79)
    endif

    if gt(ticks,240) and elapse(10) and never() then
    lightning(250,250,250)
    farflash
    flash
    fogdist(1400)
    fogcolor(50,63,66)
    endif

    if gt(ticks,420) and elapse(10) and never() then
    lightning(250,250,250)
    farflash
    flash
    fogdist(1200)
    fogcolor(45,58,61)
    endif

    if gt(ticks,630) and elapse(10) and never() then
    lightning(250,250,250)
    farflash
    flash
    fogdist(1000)
    fogcolor(40,52,57)
    endif

    if gt(ticks,720) and elapse(35) then
    lightning(250,250,250)
    farflash
    flash
    fogdist(700)
    fogcolor(35,47,52)
    endif

    if gt(ticks,800) and elapse(25) then
    lightning(250,250,250)
    farflash
    flash
    endif

  2. #2
    Admin Charger's Avatar
    Join Date
    Jun 2002
    Location
    USA
    Posts
    2,092
    Downloads
    17
    Uploads
    1

    Re: Weather effects to play with

    Been a while since I used a wac on any map so I might have forgotten something important but tried this with the /d on the command line, didn't seem to work. This wac is for C4 am I right since we're in the C4 Map Editing forum?

  3. #3
    Admin Reaper's Avatar
    Join Date
    Oct 2002
    Location
    Nevada,USA
    Posts
    569
    Downloads
    3
    Uploads
    1

    Re: Weather effects to play with

    Hummm yes it is for c4, I am using it in the OD mod. I just copied the script from the thread to re-test to make sure I didn't make a syntext error when I posted it. The first 3 events worked, I didn't watch the whole scrript as it would take around 15 minutes. Do any of the events work for you?.

    The first event fires after 30 seconds, the next fires at 90 seconds, the third event fires at 240 seconds and so on.

    The version I just tested was copied from the thread to a map with the .bms name test.bms , the .wac file is named test.wac The wac is in the general game folder, not packed in the pff,

    C4 Game version is 1.5 OD mod how ever there is nothing in the mod that would let it work a stock copy of version 1.5 would not. It should have worked.

    Check the wac has the exact same name as the bms, and that the /d command line is correct.
    ( "C:\Program Files\OD\C4OD mod\c4.exe" /d ) is my location yours would be different.

    If it doesn't work still, I will post a sample map you can pack in the pff to see what the problem might be.

  4. #4
    Registered User iceman11a's Avatar
    Join Date
    Feb 2009
    Posts
    15
    Downloads
    10
    Uploads
    0

    Re: Weather effects to play with

    I didn't know that wac files can even work in C4. Can some one tell me what I need to get that to work and some samles.

  5. #5
    Admin Reaper's Avatar
    Join Date
    Oct 2002
    Location
    Nevada,USA
    Posts
    569
    Downloads
    3
    Uploads
    1

    Re: Weather effects to play with

    Quote Originally Posted by iceman11a View Post
    I didn't know that wac files can even work in C4. Can some one tell me what I need to get that to work and some samles.
    If Charger had problems when he tried them, and you seemed to also, Give me a day or so and I will put together some short timed sample events maps with a batch file to pack them in the pff. So anyone who wants to can see how the wac is scripted and see the events in game. That way I know the wac works.

    Here are the wac commands listed in the C4 game .exe, since none were used in C4 I would guess nova was just starting to work these into the game engine.

    They did use them and added more in BHD, You can search the c4 commands listed here and see how they were used in BHD and find out what they were used for.

    There would be little use for most of them in c4, other than weather effects as most of this is done in the med.

    Commands I tested at one time or another and could get to work:
    text and consol commands (text output to screen)
    flash, farflash (thunder/lighning),
    fogcolor, fogdist
    the time commands (chain, elapse, never, past, gt, ect)

    The problem with putting text on the screen is there just isn't a good trigger such as a using dead ai to trigger the commands when building missions. Those were added later, and were how we created coop missions in Joint Ops.

    Any way here are the ones listed in the C4 .exe

    chain
    link
    elapse
    never
    past
    random
    outside
    location
    true
    false
    eq
    ne
    gt
    ge
    waveready
    kill
    vaporize
    flash
    farflash
    set
    add
    sub
    inc
    dec
    sound
    nearwave
    nearanim
    report
    report#
    text
    text#
    consol
    consol#
    opendoors
    closedoors
    fogcolor
    fogdist
    result
    ticks
    wind
    health
    mana
    NearTID
    NearDist
    NearType
    NearMove
    NearHP

  6. #6
    Registered User iceman11a's Avatar
    Join Date
    Feb 2009
    Posts
    15
    Downloads
    10
    Uploads
    0

    Re: Weather effects to play with

    What I mean is that I didn'tr know that you could even add a wac file to our maps. I took that sample from above and added to the sample map that comes with C4. and it worked. I couldn't beleave it. I never did read any thing any where about editing wac files for C4. So that why I'm shocked. I just wish they would have made it easy to add wave files For the game. I hated the idea that I had to edit the *.mis file to add waves to my maps.

    Any way yes and thanks. If you could make some sample maps with the wac file. Please do so.

    Thanks again

  7. #7
    Registered User iceman11a's Avatar
    Join Date
    Feb 2009
    Posts
    15
    Downloads
    10
    Uploads
    0

    Re: Weather effects to play with

    Quote Originally Posted by Reaper View Post
    If Charger had problems when he tried them, and you seemed to also, Give me a day or so and I will put together some short timed sample events maps with a batch file to pack them in the pff. So anyone who wants to can see how the wac is scripted and see the events in game. That way I know the wac works.

    Here are the wac commands listed in the C4 game .exe, since none were used in C4 I would guess nova was just starting to work these into the game engine.

    They did use them and added more in BHD, You can search the c4 commands listed here and see how they were used in BHD and find out what they were used for.

    There would be little use for most of them in c4, other than weather effects as most of this is done in the med.

    Commands I tested at one time or another and could get to work:
    text and consol commands (text output to screen)
    flash, farflash (thunder/lighning),
    fogcolor, fogdist
    the time commands (chain, elapse, never, past, gt, ect)

    The problem with putting text on the screen is there just isn't a good trigger such as a using dead ai to trigger the commands when building missions. Those were added later, and were how we created coop missions in Joint Ops.

    Any way here are the ones listed in the C4 .exe

    chain
    link
    elapse
    never
    past
    random
    outside
    location
    true
    false
    eq
    ne
    gt
    ge
    waveready
    kill
    vaporize
    flash
    farflash
    set
    add
    sub
    inc
    dec
    sound
    nearwave
    nearanim
    report
    report#
    text
    text#
    consol
    consol#
    opendoors
    closedoors
    fogcolor
    fogdist
    result
    ticks
    wind
    health
    mana
    NearTID
    NearDist
    NearType
    NearMove
    NearHP
    I know some of these wac commands. I don't know all of them. Do you have a list of what each one does by chance. lol

Similar Threads

  1. Play part animation and Particle effects
    By Bigjoe11a in forum Comanche 4 Map Editing
    Replies: 8
    Last Post: 10-03-2006, 02:49 PM
  2. Special Mapping effects Tutorial - Df2
    By De Buurman in forum Delta Force 2 Map Editing
    Replies: 0
    Last Post: 01-24-2004, 07:37 PM
  3. Effects, Sounds, and things that go boom.
    By Demolition Man in forum Delta Force Black Hawk Down/Team Sabre Map Editing
    Replies: 2
    Last Post: 11-04-2003, 04:34 PM
  4. "Splash Damage" - How It Effects Scoring...
    By quiet in forum Comanche 4
    Replies: 0
    Last Post: 08-16-2002, 12:15 PM
  5. Weather Effects
    By Beavis in forum Comanche 4
    Replies: 1
    Last Post: 08-10-2002, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •