<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.eduke32.com/w/index.php?action=history&amp;feed=atom&amp;title=Value_controlled_rain_code</id>
	<title>Value controlled rain code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eduke32.com/w/index.php?action=history&amp;feed=atom&amp;title=Value_controlled_rain_code"/>
	<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;action=history"/>
	<updated>2026-05-22T09:48:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-alpha</generator>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=5403&amp;oldid=prev</id>
		<title>LordMisfit at 19:14, 24 September 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=5403&amp;oldid=prev"/>
		<updated>2006-09-24T19:14:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:14, 24 September 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l210&quot;&gt;Line 210:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 210:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Try it yourself.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Try it yourself.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Tutorials]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edukewiki:diff:1.41:old-2265:rev-5403:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>LordMisfit</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=2265&amp;oldid=prev</id>
		<title>Mblackwell at 05:33, 30 May 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=2265&amp;oldid=prev"/>
		<updated>2005-05-30T05:33:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:33, 29 May 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l193&quot;&gt;Line 193:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 193:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;action NORSPAWN 0 1 1 1 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;action NORSPAWN 0 1 1 1 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;useractor notenemy RSPAWN &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0 RNOT &lt;/del&gt;0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;useractor notenemy RSPAWN 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	ifaction 0  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	ifaction 0  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mblackwell</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=338&amp;oldid=prev</id>
		<title>Mblackwell at 05:32, 30 May 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=338&amp;oldid=prev"/>
		<updated>2005-05-30T05:32:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:32, 29 May 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar TEMP 0 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar TEMP 0 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar RAND_DIST 0 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar RAND_DIST 0 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;COUNTER &lt;/del&gt;0 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;COUNT &lt;/ins&gt;0 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar MHITAG 0 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar MHITAG 0 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar ORIGRAINPOSX 0 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gamevar ORIGRAINPOSX 0 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edukewiki:diff:1.41:old-337:rev-338:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mblackwell</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=337&amp;oldid=prev</id>
		<title>Mblackwell at 05:26, 30 May 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=337&amp;oldid=prev"/>
		<updated>2005-05-30T05:26:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:26, 29 May 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A couple of [[actor]] tile definitions are also required.  Change these appropriately:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A couple of [[actor]] tile definitions are also required.  Change these appropriately:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;define RSPAWN 3879&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define RAIN1 3890    &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define RAIN1 3890    &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define RAINRIPPLE 3880&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define RAINRIPPLE 3880&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edukewiki:diff:1.41:old-336:rev-337:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mblackwell</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=336&amp;oldid=prev</id>
		<title>Mblackwell at 00:15, 2 March 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=336&amp;oldid=prev"/>
		<updated>2005-03-02T00:15:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:15, 1 March 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l53&quot;&gt;Line 53:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 53:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;else &lt;/del&gt;ifaction INIT&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ifaction INIT&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	cstat 32768&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	cstat 32768&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edukewiki:diff:1.41:old-326:rev-336:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mblackwell</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=326&amp;oldid=prev</id>
		<title>TX at 00:05, 2 March 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=326&amp;oldid=prev"/>
		<updated>2005-03-02T00:05:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;amp;diff=326&amp;amp;oldid=325&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>TX</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=325&amp;oldid=prev</id>
		<title>Mblackwell at 23:26, 1 March 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Value_controlled_rain_code&amp;diff=325&amp;oldid=prev"/>
		<updated>2005-03-01T23:26:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This shows how to use [[Eduke]] to create a nice rain effect, allowing you to [[spawn]] and retain a certain amount of rain within a map. The way this works, is we create both rain, and a [[spawn]]er for the rain. The &amp;quot;rain [[spawn]]er&amp;quot; can then be given a [[hitag]] by the mapper, equal to the amount of rain they want to [[spawn]]. The rain itself [[spawn]]s in a limited area, but &amp;quot;spreads out&amp;quot;, allowing you to easily modify overall density. &lt;br /&gt;
&lt;br /&gt;
First we will create the rain [[actor]] itself:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are afew [[gamevar]]s we will need in the course of this code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gamevar TEMP 0 2&lt;br /&gt;
gamevar RAND_DIST 0 2&lt;br /&gt;
gamevar COUNTER 0 2&lt;br /&gt;
gamevar MHITAG 0 2&lt;br /&gt;
gamevar ORIGRAINPOSX 0 2&lt;br /&gt;
gamevar ORIGRAINPOSY 0 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Of course, then we need [[actor]] tile definitions. Change these appropriately:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define RAIN1 3890   &lt;br /&gt;
define RAINRIPPLE 3880&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s our relevant [[move]] commands (remember, positive verticle values mean downward motion):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
move RAINDOWN 0 800&lt;br /&gt;
move RAINSKY 800 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And here are our actions, including a 5 frame splash:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
action INIT 0 1 1 1 1&lt;br /&gt;
action RAINDROP 0 1 1 1 1&lt;br /&gt;
action RAINSPLASH 1 5 1 1 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And now on to the actual actor code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
useractor notenemy RAIN1 0&lt;br /&gt;
&lt;br /&gt;
ifaction 0&lt;br /&gt;
{&lt;br /&gt;
 cstat 32768&lt;br /&gt;
 action INIT&lt;br /&gt;
 getactor[THISACTOR].x ORIGRAINPOSX &lt;br /&gt;
 getactor[THISACTOR].y ORIGRAINPOSY&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You probably noticed we used &amp;quot;ifaction 0&amp;quot;. This allows us to do things on what is basically actor intialization, and without wasting an action. You may have noticed we saved the original x/y of the actor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sizeat 10 40&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This sets the size of the sprite. In this case I wanted it taller than it is wide. Adjust accordingly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ifaction INIT&lt;br /&gt;
{&lt;br /&gt;
 cstat 32768&lt;br /&gt;
 ifoutside { }&lt;br /&gt;
 else { setactor[THISACTOR].x ORIGRAINPOSX setactor[THISACTOR].y ORIGRAINPOSY }&lt;br /&gt;
 move RAINSKY geth randomangle&lt;br /&gt;
 ifrnd 96 { action RAINDROP }&lt;br /&gt;
}&lt;br /&gt;
else ifaction RAINDROP&lt;br /&gt;
{&lt;br /&gt;
 ifoutside { }&lt;br /&gt;
 else { setactor[THISACTOR].x ORIGRAINPOSX setactor[THISACTOR].y ORIGRAINPOSY } &amp;lt;/pre&amp;gt;&lt;br /&gt;
You probably noticed this last statement above as well. Incase the rain goes indoors, this will reset to it&amp;#039;s original position. This is seen later as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cstat 2&lt;br /&gt;
 move 0 fall&lt;br /&gt;
 move 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This makes the rain transparent, and stops any horizontal movement.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 move RAINDOWN getv&lt;br /&gt;
 iffloordistl 4&lt;br /&gt;
 {&lt;br /&gt;
  sizeat 20 20&lt;br /&gt;
  action RAINSPLASH&lt;br /&gt;
  move 0 fall&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
else ifaction RAINSPLASH&lt;br /&gt;
{&lt;br /&gt;
sizeat 20 20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This sizeat command alters the size of the sprite to account for the fact that it is now a &amp;quot;splash&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cstat 2&lt;br /&gt;
 ifactioncount 5&lt;br /&gt;
 {&lt;br /&gt;
  cstat 32768&lt;br /&gt;
  ifonwater { espawn RAINRIPPLE }&lt;br /&gt;
  getsector[THISACTOR].ceilingz TEMP&lt;br /&gt;
  setactor[THISACTOR].z TEMP&lt;br /&gt;
  action INIT&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
enda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may have realized, I coded to account for the fact that the rain may end up on water, in which case it will spawn a ripple. Here&amp;#039;s some quick code for that:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
action RIPPLING 0 9 1 1 4&lt;br /&gt;
&lt;br /&gt;
useractor notenemy RAINRIPPLE 0&lt;br /&gt;
ifaction 0&lt;br /&gt;
{&lt;br /&gt;
 sizeat 20 20&lt;br /&gt;
 cstat 34&lt;br /&gt;
 action RIPPLING&lt;br /&gt;
 move 0 fall&lt;br /&gt;
}&lt;br /&gt;
ifactioncount 9 { killit }&lt;br /&gt;
iffloordistl 4 { } else { killit }&lt;br /&gt;
enda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now comes the part where we make the rain spawner. First we can make a quick state to handle where the rain spawns.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
state spawnrain&lt;br /&gt;
cstat 32768&lt;br /&gt;
ifvarvare MHITAG COUNT { setvar COUNT 0 killit }&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
 addvar COUNT 1&lt;br /&gt;
 espawn RAIN1&lt;br /&gt;
 getactor[THISACTOR].pal TEMP&lt;br /&gt;
 setactor[RETURN].pal TEMP&lt;br /&gt;
&lt;br /&gt;
ifrnd 64&lt;br /&gt;
{&lt;br /&gt;
getactor[RETURN].x TEMP&lt;br /&gt;
randvar RAND_DIST 2048&lt;br /&gt;
addvar RAND_DIST 2048&lt;br /&gt;
addvarvar TEMP RAND_DIST&lt;br /&gt;
setactor[RETURN].x TEMP&lt;br /&gt;
}&lt;br /&gt;
ifrnd 64&lt;br /&gt;
{&lt;br /&gt;
getactor[RETURN].x TEMP&lt;br /&gt;
randvar RAND_DIST -2048&lt;br /&gt;
subvar RAND_DIST 2048&lt;br /&gt;
addvarvar TEMP RAND_DIST&lt;br /&gt;
setactor[RETURN].x TEMP&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
ifrnd 64&lt;br /&gt;
{&lt;br /&gt;
getactor[RETURN].y TEMP&lt;br /&gt;
randvar RAND_DIST 2048&lt;br /&gt;
addvar RAND_DIST 2048&lt;br /&gt;
addvarvar TEMP RAND_DIST&lt;br /&gt;
setactor[RETURN].y TEMP&lt;br /&gt;
}&lt;br /&gt;
ifrnd 64&lt;br /&gt;
{&lt;br /&gt;
getactor[RETURN].y TEMP&lt;br /&gt;
randvar RAND_DIST -2048&lt;br /&gt;
subvar RAND_DIST 2048&lt;br /&gt;
addvarvar TEMP RAND_DIST&lt;br /&gt;
setactor[RETURN].y TEMP&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
ends&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You may have noticed I cleverly added a bit of code at the beginning to cause the rain to be the same palette as the spawner. This would allow you to create, for instance, a rainbow colored rainfall, or that of blood, if you so choose, all while using the same rain actor. The range I used is (as you could probably tell), 2048x2048x2048. You can change this as you wish, but this is a good number.&lt;br /&gt;
&lt;br /&gt;
And the actor itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
action NORSPAWN 0 1 1 1 1&lt;br /&gt;
useractor notenemy RSPAWN 0 RNOT 0&lt;br /&gt;
&lt;br /&gt;
ifaction 0 &lt;br /&gt;
{&lt;br /&gt;
 getactor[THISACTOR].hitag MHITAG&lt;br /&gt;
 setvar TEMP 0&lt;br /&gt;
 setactor[THISACTOR].hitag TEMP&lt;br /&gt;
 action NORSPAWN&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
state spawnrain&lt;br /&gt;
&lt;br /&gt;
enda&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The advantages of this method are quite obvious, in that it lowers the amount of potential actors that will be in the map (the only time it would increase beyond what you defined is if the rain hits water, which should have a negligable effect), and makes it quite easy to edit the rain in a map. Also, rain is prevented from going indoors, except at the edges, limiting potential bugs, while providing a realistic effect.&lt;br /&gt;
&lt;br /&gt;
Try it yourself.&lt;/div&gt;</summary>
		<author><name>Mblackwell</name></author>
	</entry>
</feed>