<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=TE_BREAKMODEL</id>
	<title>TE BREAKMODEL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=TE_BREAKMODEL"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_BREAKMODEL&amp;action=history"/>
	<updated>2026-04-29T13:25:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=TE_BREAKMODEL&amp;diff=1320&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;Spawns multiple rotating models with gravity, collisions, fadeout, particle trails, and sound effects. Models are spawned from random locations inside a box.  This is the effe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_BREAKMODEL&amp;diff=1320&amp;oldid=prev"/>
		<updated>2025-04-05T19:22:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Spawns multiple rotating models with gravity, collisions, fadeout, particle trails, and sound effects. Models are spawned from random locations inside a box.  This is the effe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Spawns multiple rotating models with gravity, collisions, fadeout, particle trails, and sound effects. Models are spawned from random locations inside a box.&lt;br /&gt;
&lt;br /&gt;
This is the effect used when you destroy a [[func_breakable]].&lt;br /&gt;
[[File:TE BREAKMODEL.gif|frame|TE_BREAKMODEL]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_breakmodel(Vector pos, Vector size, Vector velocity, &lt;br /&gt;
	uint8 speedNoise=16, string model=&amp;quot;models/hgibs.mdl&amp;quot;, &lt;br /&gt;
	uint8 count=8, uint8 life=0, uint8 flags=20,&lt;br /&gt;
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)&lt;br /&gt;
{&lt;br /&gt;
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);&lt;br /&gt;
	m.WriteByte(TE_BREAKMODEL);&lt;br /&gt;
	m.WriteCoord(pos.x);&lt;br /&gt;
	m.WriteCoord(pos.y);&lt;br /&gt;
	m.WriteCoord(pos.z);&lt;br /&gt;
	m.WriteCoord(size.x);&lt;br /&gt;
	m.WriteCoord(size.y);&lt;br /&gt;
	m.WriteCoord(size.z);&lt;br /&gt;
	m.WriteCoord(velocity.x);&lt;br /&gt;
	m.WriteCoord(velocity.y);&lt;br /&gt;
	m.WriteCoord(velocity.z);&lt;br /&gt;
	m.WriteByte(speedNoise);&lt;br /&gt;
	m.WriteShort(g_EngineFuncs.ModelIndex(model));&lt;br /&gt;
	m.WriteByte(count);&lt;br /&gt;
	m.WriteByte(life);&lt;br /&gt;
	m.WriteByte(flags);&lt;br /&gt;
	m.End();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Vector	pos	Center point for the effect&lt;br /&gt;
* Vector	size	Radius of the box where the models spawn randomly inside&lt;br /&gt;
* Vector	velocity	Speed and direction of the models&lt;br /&gt;
* uint8	speedNoise	Amount to randomize speed and direction&lt;br /&gt;
* string	model	Model to display&lt;br /&gt;
* uint8	count	Number of models to spawn&lt;br /&gt;
* uint8	life	Time to display all models (seconds * 0.1)&lt;br /&gt;
* uint8	flags	Choose only one of the following flags:&lt;br /&gt;
1 : Glass sounds and models draw at 50% opacity&amp;lt;br&amp;gt;&lt;br /&gt;
2 : Metal sounds&amp;lt;br&amp;gt;&lt;br /&gt;
4 : Flesh sounds&amp;lt;br&amp;gt;&lt;br /&gt;
8 : Wood sounds&amp;lt;br&amp;gt;&lt;br /&gt;
64 : Rock sounds&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The following flags can be enabled in addition to the flag selected above:&amp;lt;br&amp;gt;&lt;br /&gt;
16 : Particle trails&amp;lt;br&amp;gt;&lt;br /&gt;
32 : 50% opacity&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>