Title: Detached Gun Sounds
Short Description: A modding utility that generates sound-only effects from any in-game gun entity types so that lua scripts can play gun sounds independently. The effects are explosion-type entities with no visual component.
Name: detached-gun-sounds
Mod State: Beta
Dependencies: Base
Forum Thread: https://forums.factorio.com/viewtopic.php?t=38464
Instructions
The naming convention is "gunsound-"..gun.name.
Looping sounds are also supported but have a -begin_sound, -middle_sound, and -end_sound suffix.
Example
game.player.surface.create_entity{name="gunsound-shotgun", position=game.player.position}
Licence
This software is provided without warranty and the software author/license owner cannot be held liable for damages.
Commercial Use
No. You are not allowed to make money off this mod or any of the contained assets (unless you are Wube Software).
Distribution
Yes. You are allowed to redistribute this mod as is. This includes being repackaged as part of a mod pack. You must disclose the source.
Modification
No. You are not allowed to distribute anything altered, or derived from this mod.
Exceptions:
You can make modifications if you have expressed permission from me (Earendel) first.
You may make alterations for private personal use.
You may post partial modified sections of this mod in the mod portal discussion section or official forum thread for this mod (and only those locations) for the purpose of providing bug fixes or enhancements.
Change Log
Version 0.2.1: Updated for Factorio 0.15