OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: efrenespartano on April 26, 2021, 06:50:01 am

Title: [DONE][SUGGESTION] Priming grenades sound
Post by: efrenespartano on April 26, 2021, 06:50:01 am
Howdy!

I'd like to make a (i hope) small suggestion for a new addition: a priming sound for grenades (battleType: 4)!
My ideas for it are basically having a small "ping!" when you prime a Frag, a tic-tac sound on a TNT pack or a lighter starting fire on the cloth of a Molotov!

Example below

Code: [Select]
items:
  - type: STR_GRENADE
    explosionHitSound: 50
    primeSound: 51
    tuPrime: 20

I hope this may be useful for other modders besides me and i hope this may be easy to implement. Thanks in advance!
Title: Re: [SUGGESTION] Priming grenades sound
Post by: The Martian on September 15, 2021, 10:48:14 am
As grenade type items can also be unprimed please also allow for each item to play its own custom unprime sound as well if you implement custom grenade priming sounds.

Code: [Select]
items:
  - type: STR_GRENADE
    explosionHitSound: 50
    primeSound: 51
    unprimeSound: 52
    tuPrime: 20
    tuUnprime: 20


Title: Re: [SUGGESTION] Priming grenades sound
Post by: BlackStaff on September 15, 2021, 02:13:19 pm
Very good idea...  ;)
Title: Re: [SUGGESTION] Priming grenades sound
Post by: Meridian on January 02, 2022, 06:04:05 pm
Done.
Can be a single sound, or a list of sounds.

Code: [Select]
items:
  - type: STR_GRENADE
    primeSound: 52
    unprimeSound: 52
    unprimeActionName: STR_UNPRIME_GRENADE
Title: Re: [DONE][SUGGESTION] Priming grenades sound
Post by: efrenespartano on January 05, 2022, 04:27:26 am
Thank you so much, Meridian! :D