<?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=Breakable_Actor</id>
	<title>Breakable Actor - 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=Breakable_Actor"/>
	<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;action=history"/>
	<updated>2026-04-13T20:02:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-alpha</generator>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11454&amp;oldid=prev</id>
		<title>High Treason at 23:47, 7 January 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11454&amp;oldid=prev"/>
		<updated>2013-01-07T23:47:28Z</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 16:47, 7 January 2013&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-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&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;* You may also be interested in the [[ifwasweapon]] command to make your actor&amp;#039;s behaviour more specific.&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;* You may also be interested in the [[ifwasweapon]] command to make your actor&amp;#039;s behaviour more specific.&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;* If you are unsure about what is happening in the code, try typing each command used into the search bar.&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;* If you are unsure about what is happening in the code, try typing each command used into the search bar.&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-11453:rev-11454:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>High Treason</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11453&amp;oldid=prev</id>
		<title>High Treason at 23:37, 7 January 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11453&amp;oldid=prev"/>
		<updated>2013-01-07T23:37:29Z</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 16:37, 7 January 2013&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;&#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Breakabke &lt;/del&gt;actors&#039;&#039;&#039; are objects in the game which break - that is to say, spawn debris and disappear - when hit by a weapon. The debris could be a material, such as glass shards, or it could be gore. Hardcoded examples are sprites like BOTTLE1.&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;&#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Breakable &lt;/ins&gt;actors&#039;&#039;&#039; are objects in the game which break - that is to say, spawn debris and disappear - when hit by a weapon. The debris could be a material, such as glass shards, or it could be gore. Hardcoded examples are sprites like BOTTLE1.&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;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;This article assumes that you have already added the art or models you wish to use, if you have not yet done so, see [[DEF Language]]. In this example the actor&amp;#039;s tile number is 5124, but you should change this as required.&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;This article assumes that you have already added the art or models you wish to use, if you have not yet done so, see [[DEF Language]]. In this example the actor&amp;#039;s tile number is 5124, but you should change this as required.&lt;/div&gt;&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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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;Firstly, you need to [[define]] your actor. Add the following to the bottom of user.con;&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;Firstly, you need to [[define]] your actor. Add the following to the bottom of user.con;&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;  define BREAKABLE1 5124  // This means Tile 5124 can now be &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reffered &lt;/del&gt;to as BREAKABLE1 in your code&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;  define BREAKABLE1 5124  // This means Tile 5124 can now be &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;referred &lt;/ins&gt;to as BREAKABLE1 in your code&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;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;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;!-- diff cache key edukewiki:diff:1.41:old-11452:rev-11453:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>High Treason</name></author>
	</entry>
	<entry>
		<id>https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11452&amp;oldid=prev</id>
		<title>High Treason: Created page with &quot;&#039;&#039;&#039;Breakabke actors&#039;&#039;&#039; are objects in the game which break - that is to say, spawn debris and disappear - when hit by a weapon. The debris could be a material, such as glass s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.eduke32.com/w/index.php?title=Breakable_Actor&amp;diff=11452&amp;oldid=prev"/>
		<updated>2013-01-07T21:01:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Breakabke actors&amp;#039;&amp;#039;&amp;#039; are objects in the game which break - that is to say, spawn debris and disappear - when hit by a weapon. The debris could be a material, such as glass s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Breakabke actors&amp;#039;&amp;#039;&amp;#039; are objects in the game which break - that is to say, spawn debris and disappear - when hit by a weapon. The debris could be a material, such as glass shards, or it could be gore. Hardcoded examples are sprites like BOTTLE1.&lt;br /&gt;
&lt;br /&gt;
This article assumes that you have already added the art or models you wish to use, if you have not yet done so, see [[DEF Language]]. In this example the actor&amp;#039;s tile number is 5124, but you should change this as required.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Firstly, you need to [[define]] your actor. Add the following to the bottom of user.con;&lt;br /&gt;
 define BREAKABLE1 5124  // This means Tile 5124 can now be reffered to as BREAKABLE1 in your code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you need to decide what you want it to do when it is hit by a weapon, if you want it to spawn generic [[debris]] then add the following below your define;&lt;br /&gt;
 useractor notenemy BREAKABLE1  // Your actor&amp;#039;s code starts here&lt;br /&gt;
   cstat 257  // Makes sure you can hit the actor&lt;br /&gt;
   ifhitweapon  // Has a weapon hit the actor?&lt;br /&gt;
   {&lt;br /&gt;
     sound VENT_BUST  // Makes a noise when you break it&lt;br /&gt;
     debris SCRAP1 4  // These determine what type of debris to spawn and how much&lt;br /&gt;
     debris SCRAP2 4 &lt;br /&gt;
     debris SCRAP3 4 &lt;br /&gt;
     debris SCRAP4 4 &lt;br /&gt;
     debris SCRAP5 4 &lt;br /&gt;
     debris SCRAP6 4 &lt;br /&gt;
     killit  // Removes the actor from the map&lt;br /&gt;
   }&lt;br /&gt;
 enda  // Your actor&amp;#039;s code ends here&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Of course, you can make the actor spawn glass by using [[lotsofglass]] instead of the debris command;&lt;br /&gt;
 useractor notenemy BREAKABLE1&lt;br /&gt;
   cstat 257&lt;br /&gt;
   ifhitweapon&lt;br /&gt;
   {&lt;br /&gt;
     sound GLASS_HEAVYBREAK&lt;br /&gt;
     lotsofglass 30  // Spawns 30 glass shards&lt;br /&gt;
     killit&lt;br /&gt;
   }&lt;br /&gt;
 enda&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other option is to spawn jibs (blood and guts) using the [[guts]] command;&lt;br /&gt;
 useractor notenemy BREAKABLE1&lt;br /&gt;
   cstat 257&lt;br /&gt;
   ifhitweapon&lt;br /&gt;
   {&lt;br /&gt;
     sound SQUISHED&lt;br /&gt;
     guts JIBS1 3  // Spawns 3 of this type of jib&lt;br /&gt;
     guts JIBS2 3&lt;br /&gt;
     guts JIBS3 3&lt;br /&gt;
     guts JIBS4 3&lt;br /&gt;
     guts JIBS5 3&lt;br /&gt;
     killit&lt;br /&gt;
   }&lt;br /&gt;
 enda&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Notes;&lt;br /&gt;
* You could combine more than one effect, spawning guts and debris at the same time for example, or spawn nothing at all.&lt;br /&gt;
* If you are copying this code, make sure you do not set up your actor more than once, there should be only one &amp;#039;&amp;#039;useractor notenemy BREAKABLE1&amp;#039;&amp;#039; line and a single &amp;#039;&amp;#039;enda&amp;#039;&amp;#039; line per actor.&lt;br /&gt;
* A full list of sounds can be found on the [http://infosuite.duke4.net/index.php?page=references_sound_list infosuite].&lt;br /&gt;
* You may also be interested in the [[ifwasweapon]] command to make your actor&amp;#039;s behaviour more specific.&lt;br /&gt;
* If you are unsure about what is happening in the code, try typing each command used into the search bar.&lt;/div&gt;</summary>
		<author><name>High Treason</name></author>
	</entry>
</feed>