CBaseEntity.m nRenderFX: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
* <span style="color: #66b1fa">1</span> - Slow Pulse (varies alpha by ±16 over a period of 1.5 s) | * <span style="color: #66b1fa">1</span> - Slow Pulse (varies alpha by ±16 over a period of 1.5 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-1.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">2</span> - Fast Pulse (varies alpha by ±16 over a period of 0.4 s) | * <span style="color: #66b1fa">2</span> - Fast Pulse (varies alpha by ±16 over a period of 0.4 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-2.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">3</span> - Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s) | * <span style="color: #66b1fa">3</span> - Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-3.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">4</span> - Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s) | * <span style="color: #66b1fa">4</span> - Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-4.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">5</span> - Slow Fade Away (decreases alpha by -1 per frame, fades out over 4 s) | * <span style="color: #66b1fa">5</span> - Slow Fade Away (decreases alpha by -1 per frame, fades out over 4 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-5.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">6</span> - Fast Fade Away (decreases alpha by -4 per frame, fades out over 1 s) | * <span style="color: #66b1fa">6</span> - Fast Fade Away (decreases alpha by -4 per frame, fades out over 1 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style=" | {| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | ||
|+Preview | |+Preview | ||
|- | |- | ||
|[[File:CBaseEntity. | |[[File:CBaseEntity.m nRenderFX-6.mp4|border|center|640x360px]] | ||
|} | |} | ||
* <span style="color: #66b1fa">7</span> - Slow Become Solid (increases alpha by +1 per frame, fades in over 4 s) | * <span style="color: #66b1fa">7</span> - Slow Become Solid (increases alpha by +1 per frame, fades in over 4 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-7.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">8</span> - Fast Become Solid (increases alpha by +4 per frame, fades in over 1 s) | * <span style="color: #66b1fa">8</span> - Fast Become Solid (increases alpha by +4 per frame, fades in over 1 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-8.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">9</span> - Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat) | * <span style="color: #66b1fa">9</span> - Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-9.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">10</span> - Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat) | * <span style="color: #66b1fa">10</span> - Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-10.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">11</span> - Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat) | * <span style="color: #66b1fa">11</span> - Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-11.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">12</span> - Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat) | * <span style="color: #66b1fa">12</span> - Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-12.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">13</span> - Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat) | * <span style="color: #66b1fa">13</span> - Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-13.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">14</span> - Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) | * <span style="color: #66b1fa">14</span> - Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) | ||
* <span style="color: #66b1fa">15</span> - Distort (causes unnatural flickering and position shifting), Fade Out (instant; not very useful outside of code) | * <span style="color: #66b1fa">15</span> - Distort (causes unnatural flickering and position shifting), Fade Out (instant; not very useful outside of code) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-15.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">16</span> - Hologram (Distort + "distance fade"), Fade In (instant; not very useful outside of code) | * <span style="color: #66b1fa">16</span> - Hologram (Distort + "distance fade"), Fade In (instant; not very useful outside of code) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-16.mp4|border|center|640x360px]] | |||
|} | |||
* <span style="color: #66b1fa">17</span> - Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts), Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) | * <span style="color: #66b1fa">17</span> - Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts), Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) | ||
* <span style="color: #66b1fa">18</span> - Glow Shell (purpose unclear) | * <span style="color: #66b1fa">18</span> - Glow Shell (purpose unclear) | ||
Line 41: | Line 111: | ||
* <span style="color: #66b1fa">23</span> - Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) | * <span style="color: #66b1fa">23</span> - Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) | ||
* <span style="color: #66b1fa">24</span> - Fade Wider Pulse (varies alpha by ±255 over a period of 0.26 s) | * <span style="color: #66b1fa">24</span> - Fade Wider Pulse (varies alpha by ±255 over a period of 0.26 s) | ||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="padding: 0;" | |||
|+Preview | |||
|- | |||
|[[File:CBaseEntity.m nRenderFX-24.mp4|border|center|640x360px]] | |||
|} |
Latest revision as of 15:23, 21 September 2023
Overview[edit | edit source]
Entity alpha render effects.
Source location : /public/const.h#L367
VScript : Constants#ERenderFx
Lua : scripts/globals.lua#L566
Go back to CBaseEntity
Values[edit | edit source]
- 1 - Slow Pulse (varies alpha by ±16 over a period of 1.5 s)
- 2 - Fast Pulse (varies alpha by ±16 over a period of 0.4 s)
- 3 - Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s)
- 4 - Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s)
- 5 - Slow Fade Away (decreases alpha by -1 per frame, fades out over 4 s)
- 6 - Fast Fade Away (decreases alpha by -4 per frame, fades out over 1 s)
- 7 - Slow Become Solid (increases alpha by +1 per frame, fades in over 4 s)
- 8 - Fast Become Solid (increases alpha by +4 per frame, fades in over 1 s)
- 9 - Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat)
- 10 - Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat)
- 11 - Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat)
- 12 - Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat)
- 13 - Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat)
- 14 - Constant Glow ("NoDissipation;" purpose uncertain—for sprites?)
- 15 - Distort (causes unnatural flickering and position shifting), Fade Out (instant; not very useful outside of code)
- 16 - Hologram (Distort + "distance fade"), Fade In (instant; not very useful outside of code)
- 17 - Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts), Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s)
- 18 - Glow Shell (purpose unclear)
- 19 - Clamp Minimum Scale ("keep this sprite from getting very small (SPRITES only!)")
- 20 - Environmental Rain ("for environmental rendermode, make rain")
- 21 - Environmental Snow ("for environmental rendermode, make snow")
- 22 - Spotlight FX ("TEST CODE for experimental spotlight")
- 23 - Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it)
- 24 - Fade Wider Pulse (varies alpha by ±255 over a period of 0.26 s)