Es effect smoke

From EventScripts Community Encyclopedia


Overview

Syntax: es_effect smoke <origin-vector> <model-index> <scale> <framerate>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xeffect smoke

Description

Draws dust particles moving from origin in the direction specified..

Parameters

  • <origin-vector> - the vector point of origin for the effect.
  • <model-index> - index of model provided by es_precachemodel.
  • <scale> - The gameunit size of the smoke
  • <framerate> - Frames per second:
    • 0.1 - 1 : Nearly static smoke
    • 2 - 7: Slow moving smoke
    • 7 - 14: Normal Smoke like smoke grenades
    • 14+: Bad for performance, not really sensible


Examples

event player_hurt
{
  es_set x1 0
  es_set y1 0
  es_set z1 0
  es_set v1 0
  es_getplayerlocation x1 y1 z1 event_var(userid)
  es_createvectorstring v1  server_var(x1) server_var(y1) server_var(z1)
  
  es_delayed 2.5 es_effect smoke server_var(v1) smoke 1 0.1
}


Notes

  • ES can only reliably provide a subset of effects and these are shown to all players.
  • All points/vectors use the vector-string syntax of es_createvectorstring.
  • This command is still experimental and may have its syntax changed eventually.
  • This command was introduced in EventScripts version 1.5.


See also

blog comments powered by Disqus