Model entity/Generic Keyvalues, Inputs and Outputs/Inputs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (spacing fix) |
||
Line 4: | Line 4: | ||
---- | ---- | ||
[[Category:Keyvalue Templates|Global]] | [[Category:Keyvalue Templates|Global]] | ||
</noinclude> | </noinclude>{{IO|skin|param=int|Selects a [[skin]] from the model's index, starting with 0.}} | ||
{{IO|skin|param=int|Selects a [[skin]] from the model's index, starting with 0.}} | |||
{{IO|SetBodyGroup|param=int|Sets the the active [[$bodygroup]].}} | {{IO|SetBodyGroup|param=int|Sets the the active [[$bodygroup]].}} | ||
{{IO|Ignite|Makes the entity catch on fire indefinitely.}} | {{IO|Ignite|Makes the entity catch on fire indefinitely.}} | ||
Line 24: | Line 23: | ||
{{IO|DisableDamageForces|Prevents the entity from being pushed by damage done to it.}} | {{IO|DisableDamageForces|Prevents the entity from being pushed by damage done to it.}} | ||
{{IO|EnableShadow|Allows the entity to draw a [[render target]] shadow.}} | {{IO|EnableShadow|Allows the entity to draw a [[render target]] shadow.}} | ||
{{IO|DisableShadow|Prevents the entity from drawing a [[render target]] shadow.}} | {{IO|DisableShadow|Prevents the entity from drawing a [[render target]] shadow.}}<!-- | ||
{{#if:{{{portal2|}}}|{{IO|EnableDraw|since=P2|Removes {{ent|EF_NODRAW}} from the entity.}} | -->{{#if:{{{portal2|}}}|{{IO|EnableDraw|since=P2|Removes {{ent|EF_NODRAW}} from the entity.}} | ||
{{IO|DisableDraw|since=P2|Applies {{ent|EF_NODRAW}} to the entity. Note that this is different than {{ent|rendermode|10}}.}} | {{IO|DisableDraw|since=P2|Applies {{ent|EF_NODRAW}} to the entity. Note that this is different than {{ent|rendermode|10}}.}} | ||
{{IO|EnableReceivingFlashlight|since=P2|Makes it so that the entity is lit by {{ent|env_projectedtexture}}s.}} | {{IO|EnableReceivingFlashlight|since=P2|Makes it so that the entity is lit by {{ent|env_projectedtexture}}s.}} |
Revision as of 16:02, 4 September 2018
This template is our holder for all inputs that are assigned through CBaseAnimating.
When applying to a page, add |portal2=1
to display inputs added by Portal 2 (if they should be there).
- SetBodyGroup <integer >
- Sets the the active $bodygroup.
- Ignite
- Makes the entity catch on fire indefinitely.
- IgniteLifetime <float >
- Makes the entity catch on fire for a given amount of time.
- IgniteNumHitboxFires <integer >
- Makes the entity catch on fire with a given number of hitbox fire particles.
- IgniteHitboxFireScale <float >
- Makes the entity catch on fire with a given scale for hitbox fire particles.
- BecomeRagdoll
- Kills the entity and creates a client-side ragdoll from the model. Input is only passed if the model contains $collisionjoints, for other models phys_convert can be used instead.
- SetLightingOrigin <targetname >
- Sets the entity's lighting origin to an info_lighting.
- SetLightingOriginHack <targetname >
- Offsets the entity's lighting origin by their distance from an info_lighting_relative.
- fademindist <float >
- Sets distance at which the entity starts fading. If <0, the entity will disappear instantly when end fade is hit. The value will scale appropriately if the entity is in a 3D Skybox.
- fademaxdist <float >
- Sets distance at which the entity ends fading. If <0, the entity won't disappear at all. The value will scale appropriately if the entity is in a 3D Skybox.
- SetModelScale <vector >
- Multiplies the size of the model. Does not alter the physics collisions in most cases, however. Negative values are accepted. Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over.
Warning:Negative or extremely high values can cause crashes!
- Alpha <integer >
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its Render Mode (rendermode) set to a number other than
0
.
- AlternativeSorting <boolean >
- Swaps the rendering order of the entity. Used to attempt to fix sorting problems when rendering, for example an object rendering in front of translucent materials.
- Color <color255 >
- Sets an RGB color for the entity.
- SetDamageFilter <targetname >
- Sets a filter for this entity for when it receives damage.
- EnableDamageForces
- Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).
- DisableDamageForces
- Prevents the entity from being pushed by damage done to it.
- EnableShadow
- Allows the entity to draw a render target shadow.
- DisableShadow
- Prevents the entity from drawing a render target shadow.
- EnableDraw (in all games since
)
- Removes EF_NODRAW from the entity.
- DisableDraw (in all games since
)
- Applies EF_NODRAW to the entity. Note that this is different than rendermode 10.
- EnableReceivingFlashlight (in all games since
)
- Makes it so that the entity is lit by env_projectedtextures.
- DisableReceivingFlashlight (in all games since
)
- Prevents the entity from being lit by env_projectedtextures. The shadow made by the texture will still cast.
- EnableDrawInFastReflection (in all games since
)
- Makes the entity be rendered in reflections from water materials using
$reflectonlymarkedentities
.
- DisableDrawInFastReflection (in all games since
)
- Prevents the entity from rendering in fast reflections.