<?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_MODEL</id>
	<title>TE MODEL - 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_MODEL"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_MODEL&amp;action=history"/>
	<updated>2026-04-24T20:53:17Z</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_MODEL&amp;diff=1342&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;Throws a rotating model with gravity, collisions, and sound effects. Models don&#039;t fade out.  An API function exists:&lt;br&gt; &lt;code&gt;void CEntityFuncs::EjectBrass(const Vector&amp; in v...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_MODEL&amp;diff=1342&amp;oldid=prev"/>
		<updated>2025-04-16T11:27:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Throws a rotating model with gravity, collisions, and sound effects. Models don&amp;#039;t fade out.  An API function exists:&amp;lt;br&amp;gt; &amp;lt;code&amp;gt;void CEntityFuncs::EjectBrass(const Vector&amp;amp; in v...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Throws a rotating model with gravity, collisions, and sound effects. Models don&amp;#039;t fade out.&lt;br /&gt;
&lt;br /&gt;
An API function exists:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;void CEntityFuncs::EjectBrass(const Vector&amp;amp; in vecOrigin, const Vector&amp;amp; in vecVelocity, float flRotation, int iModel, TE_BOUNCE soundtype)&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
[[File:TE MODEL.gif|frame|TE_MODEL]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_model(Vector pos, Vector velocity, float yaw=0, &lt;br /&gt;
	string model=&amp;quot;models/agibs.mdl&amp;quot;, uint8 bounceSound=2, uint8 life=32,&lt;br /&gt;
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);&lt;br /&gt;
	m.WriteByte(TE_MODEL);&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(velocity.x);&lt;br /&gt;
	m.WriteCoord(velocity.y);&lt;br /&gt;
	m.WriteCoord(velocity.z);&lt;br /&gt;
	m.WriteAngle(yaw);&lt;br /&gt;
	m.WriteShort(g_EngineFuncs.ModelIndex(model));&lt;br /&gt;
	m.WriteByte(bounceSound);&lt;br /&gt;
	m.WriteByte(life);&lt;br /&gt;
	m.End();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Vector	pos	Sarting position for the effect&lt;br /&gt;
* Vector	velocity	Speed and direction of the model&lt;br /&gt;
* float	yaw	Initial yaw rotation of the model&lt;br /&gt;
* string	model	Model to display&lt;br /&gt;
* uint8	bounceSound	Possible values:&lt;br /&gt;
0 : No Sound&lt;br /&gt;
1 : Bullet casing&lt;br /&gt;
2 : Shotgun shell&lt;br /&gt;
* uint8	life	Time to display model (seconds * 0.1)&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>