<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3AEffect-triggered_callbacks</id>
	<title>Lua:Effect-triggered callbacks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3AEffect-triggered_callbacks"/>
	<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;action=history"/>
	<updated>2026-05-08T17:06:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9189&amp;oldid=prev</id>
		<title>Crazycarl at 04:11, 29 June 2009</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9189&amp;oldid=prev"/>
		<updated>2009-06-29T04:11:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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 04:11, 29 June 2009&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=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Infobox_Mapping&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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 class=&quot;diffchange diffchange-inline&quot;&gt;Infobox_mapping&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;These callbacks are triggered whenever a player is afflicted with a [[:Category:Status Effects|Status Effect]]. Returning false will prevent the effect from occurring.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;These callbacks are triggered whenever a player is afflicted with a [[:Category:Status Effects|Status Effect]]. Returning false will prevent the effect from occurring.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9188&amp;oldid=prev</id>
		<title>Crazycarl at 04:10, 29 June 2009</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9188&amp;oldid=prev"/>
		<updated>2009-06-29T04:10:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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 04:10, 29 June 2009&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 colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;{{Infobox_Mapping}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;These callbacks are triggered whenever a player is afflicted with a [[:Category:Status Effects|Status Effect]]. Returning false will prevent the effect from occurring.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;These callbacks are triggered whenever a player is afflicted with a [[:Category:Status Effects|Status Effect]]. Returning false will prevent the effect from occurring.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l91&quot; &gt;Line 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Category:Lua Callbacks]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[Category:Lua &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Callbacks]][[Category:Global &lt;/ins&gt;Callbacks]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;{{Infobox manual/Footer}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;{{Infobox manual/Footer}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9041&amp;oldid=prev</id>
		<title>Crazycarl: New page: These callbacks are triggered whenever a player is afflicted with a Status Effect. Returning false will prevent the effect from occurring.  ===Inputs=== *playe...</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:Effect-triggered_callbacks&amp;diff=9041&amp;oldid=prev"/>
		<updated>2009-05-12T04:22:12Z</updated>

		<summary type="html">&lt;p&gt;New page: These callbacks are triggered whenever a player is afflicted with a &lt;a href=&quot;/wiki/index.php?title=Category:Status_Effects&quot; title=&quot;Category:Status Effects&quot;&gt;Status Effect&lt;/a&gt;. Returning false will prevent the effect from occurring.  ===Inputs=== *playe...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;These callbacks are triggered whenever a player is afflicted with a [[:Category:Status Effects|Status Effect]]. Returning false will prevent the effect from occurring.&lt;br /&gt;
&lt;br /&gt;
===Inputs===&lt;br /&gt;
*player_entity(CBaseEntity) The entity that got the effect.&lt;br /&gt;
*effector_entity(CBaseEntity) The entity that caused the effect.&lt;br /&gt;
&lt;br /&gt;
===Variables===&lt;br /&gt;
The following variables are set in the global lua namespace before the function is called. Changing these variables will alter the duration or severity of the effect. Ignoring them will leave them at default values. Setting a duration to -1 will cause it to last forever.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
! LUA Command !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onconc|player_onconc]]( player, inflictor ) || triggers when a player is conced.&lt;br /&gt;
conc_duration -- duration of conc&lt;br /&gt;
&lt;br /&gt;
conc_iconduration -- duration of conced icon on HUD&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_ontranq|player_ontranq]]( player, inflictor ) || triggers when a player is tranq&amp;#039;d.&lt;br /&gt;
tranq_duration -- duration of tranq.&lt;br /&gt;
&lt;br /&gt;
tranq_speed -- speed of tranq&amp;#039;d player.&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_ongas|player_ongas]]( player, inflictor ) || triggers when a player is gassed.&lt;br /&gt;
gas_duration&lt;br /&gt;
&lt;br /&gt;
gas_iconduration&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_oninfect|player_oninfect]]( player, inflictor ) || triggers when a player is infected.&lt;br /&gt;
infection_duration&lt;br /&gt;
&lt;br /&gt;
infect_iconduration&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onradiotag|player_onradiotag]]( player, inflictor ) || triggers when a player is tagged by a sniper.&lt;br /&gt;
radiotag_duration&lt;br /&gt;
radiotag_iconduration&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onheadshot|player_onheadshot]]( player, inflictor ) || triggers when a player is head-shot.&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onlegshot|player_onlegshot]]( player, inflictor ) || triggers when a player is leg-shot.&lt;br /&gt;
legshot_duration&lt;br /&gt;
&lt;br /&gt;
legshot_iconduration&lt;br /&gt;
&lt;br /&gt;
legshot_speed&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_oncaltrop|player_oncaltrop]]( player, inflictor ) || Obsolete.&lt;br /&gt;
caltrop_duration&lt;br /&gt;
&lt;br /&gt;
caltrop_iconduration&lt;br /&gt;
&lt;br /&gt;
caltrop_speed&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onacspinup|player_onacspinup]]( player, inflictor ) || triggers when a player revs up an autocannon.&lt;br /&gt;
acspinup_duration&lt;br /&gt;
&lt;br /&gt;
acspinup_speed&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onsniperrifle|player_onsniperrifle]]( player, inflictor ) || triggers when a player charges a sniperrifle.&lt;br /&gt;
sniperrifle_speed&lt;br /&gt;
|-&lt;br /&gt;
| [[Lua:player_onspeedluaX|player_onspeedluaX]]( player, inflictor ) || these are for various speed settings, like CZ2&amp;#039;s flags. Replace X with a number 1 to 10.&lt;br /&gt;
speedlua_speed&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function player_onconc(player_entity, effector_entity)&lt;br /&gt;
	-- make conc effect last 20 seconds&lt;br /&gt;
	conc_duration = 20&lt;br /&gt;
	-- make conc status icon last 1 second&lt;br /&gt;
	conc_iconduration = 1&lt;br /&gt;
&lt;br /&gt;
	return EVENT_ALLOWED&lt;br /&gt;
	-- or you can just return “true” to let the conc happen. If you return false no conc effect happens&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- player_entity is guy getting conc’d&lt;br /&gt;
-- effector_entity is the one doing the conc’ing&lt;br /&gt;
function player_onconc(player_entity, effector_entity)&lt;br /&gt;
	--effector_entity is a CBaseEntity type, we need to verify that it&amp;#039;s a player before we do anything with it&lt;br /&gt;
	if isPlayer(effector_entity) then&lt;br /&gt;
		local concer = CastToPlayer(effector_entity)&lt;br /&gt;
		--Award some fortress points for concing somebody.&lt;br /&gt;
		concer:AddFortPoints(5, &amp;quot;Conc-Tagging a player&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	--Don&amp;#039;t actually concuss the other guy&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Callbacks]]&lt;br /&gt;
{{Infobox manual/Footer}}&lt;/div&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
</feed>