LuaGears.wiki
changeset 1947 3cc17b9eed3f
parent 1946 fabbc283a035
child 1979 ee5aa6812f52
equal deleted inserted replaced
1946:fabbc283a035 1947:3cc17b9eed3f
   380 
   380 
   381 A rough description of some of the parameters:
   381 A rough description of some of the parameters:
   382 
   382 
   383  * `Radius`: Effect or collision radius, most of the time
   383  * `Radius`: Effect or collision radius, most of the time
   384  * `ImpactSound`: Sound it makes on a collision (see [Sounds])
   384  * `ImpactSound`: Sound it makes on a collision (see [Sounds])
   385  * `nImpactSounds`: Must be used together with `ImpactSound`. Number of different impact sounds to use. `0`: Disable impact sound. `1`: Use sound selected in `ImpactSound`. `2` or higher: Uses a random impact sound each impact. The first possible sound is `ImpactSound`, the second possible sound is `ImpactSound+1`, and so on. For example, if `ImpactSound` is `sndHellishImpact1` and `nImpactSounds` equals 4, the impact sounds will be `sndHellishImpact1` to `sndHellishImpact4`
   385  * `nImpactSounds`: Must be used together with `ImpactSound`. Number of different impact sounds to use. `0`: Disable impact sound. `1`: Use sound selected in `ImpactSound`. `2` or higher: Uses a random impact sound each impact. The first possible sound is `ImpactSound`, the second possible sound is `ImpactSound+1`, and so on. The order of sounds is specified at [https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uTypes.pas#l120]. For example, if `ImpactSound` is `sndHellishImpact1` and `nImpactSounds` equals 4, the impact sounds will be `sndHellishImpact1` to `sndHellishImpact4`
   386  * `Tint`: Used by some gear types to determine its colorization. The color is in RGBA format.
   386  * `Tint`: Used by some gear types to determine its colorization. The color is in RGBA format.
   387  * `Boom`: Used by most gears to determine the damage dealt.
   387  * `Boom`: Used by most gears to determine the damage dealt.
   388 
   388 
   389 Example:
   389 Example:
   390 <code language="lua">
   390 <code language="lua">