Asw pickup stim: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (fixed OnCacheInteraction Output)
No edit summary
Line 3: Line 3:
== Keyvalues ==
== Keyvalues ==


; Name <code><[[string]]></code>
: The name that other entities refer to this entity by.
; Entity Script <code><[[string]]></code>
: Name(s) of script files that are executed after all entities have spawned.
; Script think function <code><[[string]]></code>
: Name of a function in this entity's script scope which will be called automatically.
; Disable Shadows <code><[[bool]]></code>
: Enable/disable shadows.
; Start Fade Dist/Pixels <code><[[int]]></code>
: Distance at which the prop starts to fade (<0 = use fademaxdist). If 'Screen Space Fade' is selected, this represents the number of pixels wide covered by the prop when it starts to fade.
; End Fade Dist/Pixels <code><[[int]]></code>
: Maximum distance at which the prop is visible (0 = don't fade out). If 'Screen Space Fade' is selected, this represents the *minimum* number of pixels wide covered by the prop when it fades.
; Fade Scale <code><{{todo}}: Is type of parameter int or float?></code>
: If you specify a fade in the worldspawn, or if the engine is running under dx7, then 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.
; Stay in air on startup <code><[[bool]]></code>
: If set, this pickup won't fall to the ground when the map starts.
; Bullets in gun <code><[[int]]></code>
; Bullets in gun <code><[[int]]></code>
: Specifies the number of bullets in this pickup. On this pickup, defaults to 3 stim packs.
: Specifies the number of bullets in this pickup. On this pickup, defaults to 5 grenades.
; Clips <code><[[int]]></code>
; Clips <code><[[int]]></code>
: Specifies the number of clips in this pickup. On this pickup, defaults to 0.
: Specifies the number of clips in this pickup. On this pickup, defaults to 0.
; Secondary Bullets <code><[[int]]></code>
; Secondary Bullets <code><[[int]]></code>
: Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.
: Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.
{{KV Angles}}
{{KV ASWPickup}}


== Flags ==
== Flags ==
* Start Constrained. '''{{todo}}: Find out how this constrains the entity.'''
 
{{Fl ASWPickup}}


== Inputs ==
== Inputs ==
; <code>CallScriptFunction <[[string]]></code>
 
: Calls the function named as parameter from the script specified under Keyvalue Entity Script.
{{I ASWPickup}}
; <code>EnableShadow</code>
: Enables shadow.
; <code>DisableShadow</code>
: Disables shadow.
; <code>RunScriptCode</code>
: Runs script code. {{todo}}: Parameters?
; <code>RunScriptFile</code>
: Runs script file. {{todo}}: Parameters?
{{I Targetname}}


== Outputs ==
== Outputs ==
; <code>OnCacheInteraction</code>
 
: {{todo}}: When is this Output fired?
{{O ASWPickup}}
; <code>OnPlayerTouch</code>
: Fired when the player touches this entity.
; <code>OnUser1</code> to <code>OnUser4</code>
: Fired in response to the FireUser inputs; see [[User Inputs and Outputs]].

Revision as of 02:11, 13 August 2010

Template:As point It is used to spawn stim packs.

Keyvalues

Bullets in gun <int>
Specifies the number of bullets in this pickup. On this pickup, defaults to 5 grenades.
Clips <int>
Specifies the number of clips in this pickup. On this pickup, defaults to 0.
Secondary Bullets <int>
Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.
Stay in air on startup (FreezePickup) <boolean>
If set, this pickup won't fall to the ground when the map starts.


Flags

Item:
;Start Constrained : [1]
Keeps the model from moving.

Inputs

Outputs

Item:

OnPlayerTouch
Fires when the player touches this object.
OnCacheInteraction
Confirm:Fires when the player proves they have 'found' this item:
  • Player touch (whether or not player actually acquires the item)
  • Picked up by +USE