<?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=Bullet</id>
	<title>Bullet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=Bullet"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Bullet&amp;action=history"/>
	<updated>2026-04-24T19:40:48Z</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=Bullet&amp;diff=1219&amp;oldid=prev</id>
		<title>Outerbeast at 19:32, 29 March 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1219&amp;oldid=prev"/>
		<updated>2025-03-29T19:32:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 21:32, 29 March 2025&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-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&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;void FireBullets(uint cShots, Vector vecSrc, Vector vecDirShooting, Vector vecSpread, float flDistance, Bullet iBulletType, int iTracerFreq = 4, int iDamage = 0, entvars_t@ pevAttacker = null, FireBulletsDrawMode fDraw = FBDM_DRAW)&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;void FireBullets(uint cShots, Vector vecSrc, Vector vecDirShooting, Vector vecSpread, float flDistance, Bullet iBulletType, int iTracerFreq = 4, int iDamage = 0, entvars_t@ pevAttacker = null, FireBulletsDrawMode fDraw = FBDM_DRAW)&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;Note that FireBullets will draw decals for monster bullets, but not player bullets. This is because player bullets are normally handled by the game&amp;#039;s client side prediction code, which will locally handle effects. Regardless of what value you pass for the draw argument, if the entity FireBullets is called on is a player, it will never draw decals. So when creating custom player weapons which shoot bullets, the weapon&amp;#039;s FireBullets method must be used in order for the decals for bullet holes to draw properly, ensuring that &amp;lt;code&amp;gt;pevAttacker&amp;lt;/code&amp;gt; is the player wielding the weapon.&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;Note that FireBullets will draw decals for monster bullets, but not player bullets. This is because player bullets are normally handled by the game&amp;#039;s client side prediction code, which will locally handle effects. Regardless of what value you pass for the draw argument, if the entity FireBullets is called on is a player, it will never draw decals. So when creating custom player weapons which shoot bullets, the weapon&amp;#039;s FireBullets method must be used in order for the decals for bullet holes to draw properly, ensuring that &amp;lt;code&amp;gt;pevAttacker&amp;lt;/code&amp;gt; is the player wielding the weapon.&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;/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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;hr/&amp;gt;&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;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&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;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&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;|- style=&amp;quot;font-weight:bold; text-align:center;&amp;quot;&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;|- style=&amp;quot;font-weight:bold; text-align:center;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key svencoop_wiki-wiki_:diff:1.41:old-1192:rev-1219:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1192&amp;oldid=prev</id>
		<title>Outerbeast at 13:54, 9 March 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1192&amp;oldid=prev"/>
		<updated>2025-03-09T13:54:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 15:54, 9 March 2025&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-l116&quot;&gt;Line 116:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 116:&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;code&amp;gt;BULLET_PLAYER_BUCKSHOT&amp;lt;/code&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;code&amp;gt;BULLET_PLAYER_BUCKSHOT&amp;lt;/code&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;If custom damage is specified, and the bullet type is not &amp;lt;code&amp;gt;BULLET_PLAYER_CUSTOMDAMAGE&amp;lt;/code&amp;gt;, monsters will always gib if the damage value is greater than their max health. If not, they will never gib.&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 custom damage is specified, and the bullet type is not &amp;lt;code&amp;gt;BULLET_PLAYER_CUSTOMDAMAGE&amp;lt;/code&amp;gt;, monsters will always gib if the damage value is greater than their max health. If not, they will never gib.&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:Scripting]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key svencoop_wiki-wiki_:diff:1.41:old-1191:rev-1192:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1191&amp;oldid=prev</id>
		<title>Outerbeast at 13:54, 9 March 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1191&amp;oldid=prev"/>
		<updated>2025-03-09T13:54:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 15:54, 9 March 2025&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-l108&quot;&gt;Line 108:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 108:&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;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; 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;The following types will also launch enemies (DMG_LAUNCH) if custom damage is specified, and the bullet type is not BULLET_PLAYER_CUSTOMDAMAGE:&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;The following types will also launch enemies (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;DMG_LAUNCH&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;) if custom damage is specified, and the bullet type is not &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_PLAYER_CUSTOMDAMAGE&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&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;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; 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;* BULLET_MONSTER_SAW&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;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_MONSTER_SAW&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&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;* BULLET_PLAYER_SAW&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;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_PLAYER_SAW&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&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;* BULLET_PLAYER_SNIPER&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;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_PLAYER_SNIPER&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&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;* BULLET_MONSTER_BUCKSHOT&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;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_MONSTER_BUCKSHOT&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&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;* BULLET_PLAYER_BUCKSHOT&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;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_PLAYER_BUCKSHOT&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&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;If custom damage is specified, and the bullet type is not BULLET_PLAYER_CUSTOMDAMAGE, monsters will always gib if the damage value is greater than their max health. If not, they will never gib.&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;If custom damage is specified, and the bullet type is not &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;BULLET_PLAYER_CUSTOMDAMAGE&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, monsters will always gib if the damage value is greater than their max health. If not, they will never gib.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1190&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;The Bullet enum contains bullet types used by the game.  It is primarily used by CBaseEntity&#039;s FireBullets method to determine which skill setting to use for damage, and which...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=Bullet&amp;diff=1190&amp;oldid=prev"/>
		<updated>2025-03-09T13:51:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The Bullet enum contains bullet types used by the game.  It is primarily used by CBaseEntity&amp;#039;s FireBullets method to determine which skill setting to use for damage, and which...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Bullet enum contains bullet types used by the game.&lt;br /&gt;
&lt;br /&gt;
It is primarily used by CBaseEntity&amp;#039;s FireBullets method to determine which skill setting to use for damage, and which damage type(s) to use. It also affects material type effects.&lt;br /&gt;
&amp;lt;pre&amp;gt;void FireBullets(uint cShots, Vector vecSrc, Vector vecDirShooting, Vector vecSpread, float flDistance, Bullet iBulletType, int iTracerFreq = 4, int iDamage = 0, entvars_t@ pevAttacker = null, FireBulletsDrawMode fDraw = FBDM_DRAW)&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that FireBullets will draw decals for monster bullets, but not player bullets. This is because player bullets are normally handled by the game&amp;#039;s client side prediction code, which will locally handle effects. Regardless of what value you pass for the draw argument, if the entity FireBullets is called on is a player, it will never draw decals. So when creating custom player weapons which shoot bullets, the weapon&amp;#039;s FireBullets method must be used in order for the decals for bullet holes to draw properly, ensuring that &amp;lt;code&amp;gt;pevAttacker&amp;lt;/code&amp;gt; is the player wielding the weapon.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;font-weight:bold; text-align:center;&amp;quot;&lt;br /&gt;
! Constant&lt;br /&gt;
! Skill value&lt;br /&gt;
! Damage types&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_NONE&lt;br /&gt;
| None&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_CLUB&lt;br /&gt;
| No bullet. Always deals 50 melee damage, and creates impact decals on glass surfaces only.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_9MM&lt;br /&gt;
| sk_plr_9mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| 9mm bullet. The Glock/Beretta pistol uses this.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_MP5&lt;br /&gt;
| sk_plr_9mmAR_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| MP5 bullet. The MP5 uses this.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_SAW&lt;br /&gt;
| sk_556_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| 5.56 NATO bullet. The M249 SAW and M16 use this.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_SNIPER&lt;br /&gt;
| sk_plr_762_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_SNIPER&lt;br /&gt;
| 7.62 NATO bullet. The sniper rifle uses this.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_357&lt;br /&gt;
| sk_plr_357_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| .357 revolver bullet. The Python uses this.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_EAGLE&lt;br /&gt;
| ( sk_plr_357_bullet ) / 3 * 2&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| .357 revolver bullet. The Desert Eagle uses this. This is the same skill value, modified for the Eagle&amp;#039;s speed over damage advantage.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_BUCKSHOT&lt;br /&gt;
| sk_plr_buckshot&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;DMG_LAUNCH&amp;lt;/code&amp;gt;&lt;br /&gt;
| 12 gauge buckshot shell. The shotgun uses this. The shotgun passes in a value of 8 for the number of bullets to fire to simulate 8 pellets in the shell in single shot mode, and 14 for weaponmode_shotgun&amp;#039;s double barreled secondary attack.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_CROWBAR&lt;br /&gt;
| sk_plr_9mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Crowbar swipe. Since FireBullets is not meant to be used by the crowbar, this will use 9mm bullet settings instead.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_CROWBAR_ELECTRIC&lt;br /&gt;
| sk_plr_9mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Crowbar swipe. Since FireBullets is not meant to be used by the crowbar, this will use 9mm bullet settings instead.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_PLAYER_CUSTOMDAMAGE&lt;br /&gt;
| None&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Used in conjunction with custom bullet damage (the iDamage argument).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_9MM&lt;br /&gt;
| sk_9mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Monster 9mm bullet.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_MP5&lt;br /&gt;
| sk_9mmAR_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Monster MP5 bullet.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_SAW&lt;br /&gt;
| sk_556_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Monster 5.56 NATO bullet. Uses the same skill setting as player 5.56 bullets.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_12MM&lt;br /&gt;
| sk_12mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Monster 12mm bullet. Used for large guns like the Apache&amp;#039;s machine gun and fixed gun emplacements.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_EAGLE&lt;br /&gt;
| sk_otis_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Monster .357 revolver bullet.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_SNIPER&lt;br /&gt;
| sk_massassin_sniper&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_SNIPER&lt;br /&gt;
| Monster 7.62 NATO bullet.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;BULLET_MONSTER_BUCKSHOT&lt;br /&gt;
| sk_grunt_buckshot&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;DMG_LAUNCH&amp;lt;/code&amp;gt;&lt;br /&gt;
| Monster 12 gauge buckshot shell. All monsters currently use the sk_hgrunt_pellets skill setting to determine how many pellets are fired.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;DECAL_SCORCH_MARK&lt;br /&gt;
| sk_plr_9mm_bullet&lt;br /&gt;
| &amp;lt;code&amp;gt;DMG_BULLET&lt;br /&gt;
| Decal scorch mark. This constant isn&amp;#039;t used by FireBullets, and will fall back to the default of using the player&amp;#039;s 9mm settings.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following types will also launch enemies (DMG_LAUNCH) if custom damage is specified, and the bullet type is not BULLET_PLAYER_CUSTOMDAMAGE:&lt;br /&gt;
&lt;br /&gt;
* BULLET_MONSTER_SAW&lt;br /&gt;
* BULLET_PLAYER_SAW&lt;br /&gt;
* BULLET_PLAYER_SNIPER&lt;br /&gt;
* BULLET_MONSTER_BUCKSHOT&lt;br /&gt;
* BULLET_PLAYER_BUCKSHOT&lt;br /&gt;
If custom damage is specified, and the bullet type is not BULLET_PLAYER_CUSTOMDAMAGE, monsters will always gib if the damage value is greater than their max health. If not, they will never gib.&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>