Back to the Korax Forum Archives


Forum

Weather effects

Sat, 20 Aug 2011 20:03:23

RambOrc

Are the SE weather effects contained in the KMOD 4 code? If yes, how do I add them to a map?
Sun, 21 Aug 2011 12:49:26

Crimson Wizard

1) yes 2) krpg.acs is the file you should import in map scripts, it contains definitions to weather actions:
            1200:Env_WeatherSnow(5),			  // density (default = 120), horz angle, horz speed x8, vert speed x8, pattern
            1201:Env_WeatherRain(5),			  // density (default = 40), horz angle, horz speed x8, vert speed x8, pattern
            1202:Env_WeatherTerminate(1),         // weather num
            1203:Env_WeatherTerminateAll(0),
            1204:Env_WeatherSetParams(5),         // weather num, density, horz angle, horz speed x8, vert speed x8
            1205:Env_WeatherSetPattern(2),        // weather num, pattern
            1206:Env_WeatherSetColour(5);         // weather num, red, green, blue, alpha
patterns are
#define env_pattern_none			0
#define env_pattern_rainlight		1
#define env_pattern_rainmoderate                2
#define env_pattern_rainheavy		3
Now when you mention this though I remember there was some problem related to compiling scripts via DoomBuilder2 using our custom acc compiler; it was like DB2 sent some extra parameter that compiler couldn't handle. And custom compiler is needed to use ACS commands with id >255... If that will be a problem, you may try using DB1 instead.... that's an ugly solution though. If I'll have time I'll try to make a new custom compiler based on latest version.
Thu, 25 Aug 2011 07:54:05

RambOrc

DB2 also doesn't display the scripts included in a map at all, I recall you having suggested a workaround for that, it was something about opening the map in another editor and doing something to the scripts and then saving again, after which they would show up in DB2, but I am not quite sure how exactly it goes.
Thu, 25 Aug 2011 18:34:45

Crimson Wizard

RambOrc, I am having troublesome times IRL at the moment. When it's finally over, I'll come back and try to find a decent solution to these issues. Perhaps after couple of weeks or so.
Thu, 25 Aug 2011 19:44:06

RambOrc

No hurry, good luck solving your troubles.
Tue, 27 Sep 2011 17:28:55

Crimson Wizard

[quote="RambOrc":xvenws2p]No hurry, good luck solving your troubles. That took longer than I've expected <!-- s:x --><img src="{SMILIES_PATH}/orc8.gif" alt=":x" title="Mad" /><!-- s:x --> I am planning on getting latest acc compiler sources (the one that is compatible with DB2) and making sure compiler suits our needs.

Back to the Korax Forum Archives