Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Item item crate
From HalfLife 2 Knowledge Base
Contents |
[edit]
item_item_crate
Half-Life 2 Point Entity
[edit]
description
Item Crate
[edit]
properties
- Min Damage to Hurt minhealthdmg(integer) - default: 0
The prop will ignore any damage events if the damage is less than this amount. - Shadow Cast Distance shadowcastdist(integer) - default: 0
Use this to override how far this object casts shadows. 0 = default distance. - Physics Impact Damage Scale physdamagescale(float) - default: 0.1
Scales damage energy when this object is hit by a physics object. NOTE - Impact damage type Damagetype(choices)
- 0 - Blunt
- 1 - Sharp
- Damaging it Doesn't Push It nodamageforces(choices) - default: Used to determine whether or not damage should cause the brush to move.
- 0 - No
- 1 - Yes
- Scale Factor For Inertia inertiaScale(float) - default: 1.0
Scales the angular mass of an object. Used to hack angular damage and collision response. - Mass Scale massScale(float) - default: 0
A scale multiplier for the object's mass. - Override Parameters overridescript(string)
A list of physics key/value pairs that are usually in a physics prop .qc file. Format is 'key,value,key,value,etc'. - Health Level to Override Motion damagetoenablemotion(integer) - default: 0
If specified, this object will start motion disabled. Once it's health has dropped below this specified amount, it will enable motion. - Physics Impact Force to Override Motion forcetoenablemotion(float) - default: 0
If specified, this object will start motion disabled. Any impact that imparts a force greater than this value on the physbox will enable motion. - Start Fade Dist fademindist(float) - default: -1
Distance at which the prop starts to fade (<0 = use fademaxdist) - End Fade Dist fademaxdist(float) - default: 0
Max fade distance at which the prop is visible (0 = don't fade out) - fade scale fadescale(float) - default: 1
If you specify a fade in the worldspawn, or if the engine is running under dx7, or the engine will forcibly fade out props even if fademindist/fademaxdist isn't specified. This scale factor gives you some control over the fade. Using 0 here turns off the forcible fades. Numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances. - Name targetname(target_source)
The name that other entities refer to this entity by. - Pitch Yaw Roll (Y Z X) angles(angle) - default: 0 0 0
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. - Damage Filter damagefilter(target_destination)
Name of the filter entity that controls which entities can damage us. - Crate Contains CrateType(choices)
- 0 - Contains specified item
- Item Type ItemClass(pointentityclass) - default: item_dynamic_resupply
Class name of the entity to spawn when the crate is broken - Item Count ItemCount(integer) - default: 1
Number of items to emit upon breakage
[edit]
spawn flags
- 1: Start Asleep - default: OFF
- 2: Don't take physics damage - default: OFF
- 4: Debris - Don't collide with the player or other debris - default: OFF
- 8: Motion Disabled - default: OFF
- 64: Enable motion on Physcannon grab - default: OFF
- 128: Not affected by rotor wash - default: OFF
- 256: Generate output on +USE - default: ON
- 512: Prevent pickup - default: OFF
- 1024: Prevent motion enable on player bump - default: OFF
- 4096: Debris with trigger interaction - default: OFF
[edit]
inputs
- Wake(void)
Wake up this physics object, if it is sleeping. - Sleep(void)
Put this physics object to sleep. It will wake if given the Wake input, or if force is applied to it. Note that physics objects go to sleep automatically after coming to rest for a while, so you don't really need to use this. - EnableMotion(void)
Enable physics motion/collision response. - DisableMotion(void)
Disable physics motion/collision response. - DisableFloating(void)
Disable fluid/floating simulation to reduce cost. - SetBodyGroup(integer)
Set this prop's body group (from 0 - n). - physdamagescale(float)
Set the Physics Impact Damage Scale for this character. NOTE - EnableDamageForces(void)
Damaging the entity applies physics forces to it. - DisableDamageForces(void)
Damaging the entity does *not* apply physics forces to it. - Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetDamageFilter(string)
Sets the entity to use as damage filter. Pass in an empty string to clear the damage filter.
[edit]
outputs
- OnMotionEnabled(void)
Fired when motion is enabled on this prop, either via 'Health Level to Override Motion' or from the EnableMotion input. - OnAwakened(void)
Fired when this entity becomes awake (collision/force is applied to it while it's asleep). - OnPhysGunPickup(void)
Fired when the player picks up the prop with the physcannon or +USE. - OnPhysGunDrop(void)
Fired when the player drops the prop with the physcannon or USE. - OnPlayerUse(void)
Fired when the player tries to +USE the physbox. This output will fire only if the Generate output on +USE spawnflag is set. - OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input.
[edit]
related tutorials
Submit your tutorial for item_item_crate

