Blob element: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(fgd stuff)
(what kind of crazy man would do this)
Line 1: Line 1:
{{lang|Blob element}}
{{lang|Blob element}}
{{ent not in fgd}}
{{ent not in fgd|nolink=1}}
{{hl2 point|blob_element}} These are normally created and managed by an {{ent|npc_blob}}. By itself, it's basically a {{ent|prop_dynamic}} set to not be solid, but it is somewhat less expensive than one.
{{hl2 point|blob_element}} These are normally created and managed by an {{ent|npc_blob}}. By itself, it's basically a {{ent|prop_dynamic}} set to not be solid.


This entity is ''only'' in Half-Life 2 and the 2013 SDK. Not even the Episodes have it.
This entity is ''only'' in Half-Life 2 and the 2013 SDK. Not even the Episodes have it.


{{code class|CBlobElement|npc_blob.cpp}}
{{code class|CBlobElement|npc_blob.cpp}}
==FGD Code==
Paste these into halflife2.fgd or base.fgd. FGD code is not required, but makes it easier to use the entity. (If anything is wrong, tell [[User talk:Pinsplash|Pinsplash]].)
{{User:Pinsplash/BaseAnimating}}
blob_element point class. This MUST be ''below'' the other two code blocks:
{{ExpandBox|
<pre>
@PointClass base(CBaseEntity, CBaseAnimating) = blob_element : "A blob particle usually created through npc_blob."
[
]
</pre>
}}


==ConVars/Commands==
==ConVars/Commands==

Revision as of 15:34, 28 April 2021

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

Template:Hl2 point These are normally created and managed by an npc_blob. By itself, it's basically a prop_dynamic set to not be solid.

This entity is only in Half-Life 2 and the 2013 SDK. Not even the Episodes have it.

C++ In code, it is represented by theCBlobElementclass, defined in thenpc_blob.cppfile.

ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
npc_blob_use_model 2 Arbitrary number Chooses which model to show blob_elements as. Requires restart to take effect.
0. gibs/agibs.mdl (skull)
1. props_junk/watermelon01.mdl (watermelon)
2. w_squeak.mdl (snark (not in final game, shows error model))
3. baby_headcrab.mdl (baby headcrab (not in final game, shows error model))

Keyvalues

Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history


Inputs

Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


Outputs

Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history