View Full Version : Weather effects to play with
Reaper
10-16-2009, 07:33 PM
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
Charger
10-18-2009, 04:07 PM
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?
Reaper
10-18-2009, 04:58 PM
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.
iceman11a
11-05-2009, 11:04 AM
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.
Reaper
11-05-2009, 02:05 PM
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
iceman11a
11-05-2009, 02:40 PM
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
iceman11a
11-05-2009, 02:45 PM
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.