Template:KV BaseVehicle

From Valve Developer Community
Revision as of 19:56, 19 January 2009 by VDCBot (talk | contribs) (Robot: fixing template case.)
Jump to navigation Jump to search
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

  • Origin:
Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.
Global:
Global Entity Name (globalname) <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Minimum / Maximum DX Level (mindxlevel / maxdxlevel) <integer choices> (removed since Left 4 Dead)
The entity will not exist if the engine is running outside the given range of DirectX Versions.
Choices
Warning.pngWarning:If these are used, the object may break when the user switches their DirectX settings.[missing string]
World Model (model) <model path>
The model this entity should appear as. 128-character limit.
Skin (skin) <integer>
Some models have multiple skins. This value selects from the index, starting with 0. May be overridden by game code.
Tip.pngTip:Hammer's model browser automatically updates this value if you use it to view different skins.
Model Scale (modelscale) <float> (in all games since Alien Swarm) (also in Source 2013)
A multiplier for the size of the model.
Tip.pngTip:In Hammer++ Hammer++ with a prop selected in 3D view, hold Ctrl and scroll the mouse wheel to change the modelscale in increments of 0.5. Holding Shift will scale it in smaller increments of 0.05.
Bodygroup (body / SetBodyGroup) <integer>
Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
Note.pngNote:If both body and SetBodyGroup are present (even if set to 0), body will be prioritized.
Sequence (sequence) <integer> !FGD
Default animation sequence for the model to be playing after spawning. May be overridden by game code.
Lighting Origin (lightingorigin) <targetname>
Select an entity (not info_lighting!) from which to sample lighting and cubemaps instead of the entity's $illumposition.

Shadow:

Disable Shadows (disableshadows) <boolean>
Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
Disable Receiving Shadows (disablereceiveshadows) <boolean>
Prevent the entity from receiving dynamic shadows on itself.
Shadow Cast Distance (shadowcastdist) <integer> !FGD
Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
Disable Shadow Depth (disableshadowdepth) <boolean> (in all games since Portal 2)
Used to disable rendering into shadow depth (for projected textures) for this entity.
Disable flashlight (disableflashlight) <boolean> (in all games since Portal 2)
Used to disable projected texture lighting and shadows on this entity.
Projected Texture Cache (shadowdepthnocache) <integer choices> (in all games since Portal 2)
Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
Choices
  • 0 : Default
  • 1 : No cache - render every frame
  • 2 : Cache it - render only once
Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since Portal 2)
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies $reflectonlymarkedentities) and in the world impostor pass.
  • solid
<choices> Collisions - using other values may give undesired results
Literal Value Description
0 Not Solid
2 Use Bounding Box
6 Use VPhysics
  • screenspacefade
<boolean> The method by which the fading distance should be determined. If off, the fade distances is the distance from the player's view to the object, in inches. If on, the fade distance is the size of the object onscreen, in pixels. The fademindist value will represent the number of pixels wide covered by the prop when it starts to fade, and the fademaxdist value will represent the *minimum* number of pixels wide covered by the prop when it fades.
  • BaseFadeProp:
Start Fade Dist (fademindist) <float>
Distance at which the entity starts to fade.
End Fade Dist (fademaxdist) <float>
Max fade distance at which the entity is visible.
  • If start fade is <0, the entity will disappear instantly when end fade is hit.
  • If end fade is <0, the entity won't disappear at all. (This is the default behavior.)
The values will scale appropriately if the entity is in a 3D Skybox.
Fade Scale (fadescale) <float>
If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in Source 2006), props will fade out even if the fade distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, while those greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether. See also the QC command $noforcedfade.
  • lightingorigin
<target_destination> Select an info_lighting to specify a location to sample lighting from, instead of using this entity's origin.
  • vehiclescript
<string> Vehicle Script File
Literal Value Description Comment
"scripts/vehicles/airboat.txt" Airboat Use prop_vehicle_airboat
"scripts/vehicles/apc.txt" APC Use prop_vehicle_apc
"scripts/vehicles/apc_npc.txt" NPC Driven APC Use prop_vehicle_apc
"scripts/vehicles/crane.txt" Crane Use prop_vehicle_crane
"scripts/vehicles/digger.txt" ---
"scripts/vehicles/driveway.txt" ---
"scripts/vehicles/fastdigger.txt" ---
"scripts/vehicles/jetski.txt" Jet Ski
"scripts/vehicles/prisoner_pod.txt" Combine Prisoner Transportation Pod Use prop_vehicle_prisoner_pod
"scripts/vehicles/reference_vehicle.txt" Modify this to make your own vehicle, or use it alone!
"scripts/vehicles/jeep_test.txt" Jeep Use prop_vehicle_jeep
"scripts/vehicles/choreo_vehicle.txt" (in all games since Half-Life 2: Episode One) Choreographed vehicle Use prop_vehicle_choreo_generic
"scripts/vehicles/choreo_vehicle_ep1_dogintro.txt" (in all games since Half-Life 2: Episode One) Episode 1 Dog Intro Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Barn Scene Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Hanger Ending Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Intro Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Choreo Use prop_vehicle_choreo_generic
Template:EP2 add Episode 2 Jalopy (Charger) Use prop_vehicle_jeep
  • actionScale
<float> Scale of action input / framerate