Env grass sprite (GoldSrc): Difference between revisions
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
|||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{entity | {{this is a|point entity|<!--sprite=1-->|name=env_grass_sprite|engine=GoldSrc|game=Paranoia}} Which creates random grass sprites. | ||
The installation of the automatically scattered grass on the map involves the usage of a point entity called env_grass_sprite. The location where the entity will be placed holds the same importance as the rain_settings. Imagine that the grass initially appears at the same height as the env_grass_sprite entity and then appears to fall to the ground. Therefore, it is recommended to place these entities somewhere in the sky to ensure that they are positioned above the entire ground. | The installation of the automatically scattered grass on the map involves the usage of a point entity called env_grass_sprite. The location where the entity will be placed holds the same importance as the rain_settings. Imagine that the grass initially appears at the same height as the env_grass_sprite entity and then appears to fall to the ground. Therefore, it is recommended to place these entities somewhere in the sky to ensure that they are positioned above the entire ground. | ||
==Keyvalues== | ==Keyvalues== | ||
[[File:Grassplacement.png|right|thumb|370px|Important rule]] | |||
{{KV|Sprite Name|intn=model|sprite|The material to draw.}} | |||
{{KV|Radius|intn=m_fRadius|integer|Distance from the player after which they disappear (e.g. 800)}} | |||
{{KV|Density|intn=m_iDensity|integer|Number of sprites inside this radius (f.e. 200)}} | |||
{{KV|Sprite Scale|intn=m_fScale|integer|The same as scale in env_sprite (by the way, the scale varies a little by random)}} | |||
{{KV|Sprite orientation|intn=m_iMode|choices|}} | |||
:{| class=standard-table | |||
!| Value || Description | |||
|- | |||
: | | 0 || Screen parallel | ||
|- | |||
| 1 || Facing player | |||
|- | |||
| 2 || Fixed | |||
|- | |||
| 3 || Model | |||
|} | |||
== Limitations == | |||
* The total number of env_grass_sprite entities on the map must not exceed 32. | |||
* The sum of all Density values for sprites must not exceed 1000, for models - 100. | |||
{{note|It is necessary to specify the names of the textures on which this sprite can "grow". | |||
[[Category:Paranoia | To do this, disable SmartEdit and add new keys, where the key name is | ||
the name of the texture (all lowercase letters) and the value of the key is any number. | |||
Additional keys (i.e. textures) can have a maximum of eight. | |||
{{ModernExample|Key: out_grnd1 | |||
Value: 1 | |||
}}}} | |||
[[Category:Paranoia entities]] | |||
[[Category:GoldSrc]] |
Latest revision as of 20:27, 17 May 2024
env_grass_sprite
is a point entity available in Paranoia. Which creates random grass sprites.
The installation of the automatically scattered grass on the map involves the usage of a point entity called env_grass_sprite. The location where the entity will be placed holds the same importance as the rain_settings. Imagine that the grass initially appears at the same height as the env_grass_sprite entity and then appears to fall to the ground. Therefore, it is recommended to place these entities somewhere in the sky to ensure that they are positioned above the entire ground.
Keyvalues
- Sprite Name (model) <sprite>
- The material to draw.
- Radius (m_fRadius) <integer>
- Distance from the player after which they disappear (e.g. 800)
- Density (m_iDensity) <integer>
- Number of sprites inside this radius (f.e. 200)
- Sprite Scale (m_fScale) <integer>
- The same as scale in env_sprite (by the way, the scale varies a little by random)
- Sprite orientation (m_iMode) <choices>
Value Description 0 Screen parallel 1 Facing player 2 Fixed 3 Model
Limitations
- The total number of env_grass_sprite entities on the map must not exceed 32.
- The sum of all Density values for sprites must not exceed 1000, for models - 100.

To do this, disable SmartEdit and add new keys, where the key name is the name of the texture (all lowercase letters) and the value of the key is any number. Additional keys (i.e. textures) can have a maximum of eight.

Value: 1