OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: bulletdesigner on August 10, 2023, 02:32:58 am

Title: [DONE][Suggestion] Different image background/sound for missile base hit
Post by: bulletdesigner on August 10, 2023, 02:32:58 am
Just a simple flavor request for my alien missiles strikes do have a different background image when some damage is done to the base (like and explosion or the data), and if it possible to vary the background from the ufo that caused the damage ex:
ufos:   
 missilePower: 10
 hitimage: nukeexplosion.SPK

Extra Bonus if an sound is also added.... cabuumm when the image appear

ufos:
 hitmissilesound: 155
Title: Re: [DONE][Suggestion] Different image background/sound for missile base hit
Post by: Meridian on December 30, 2023, 05:02:08 pm
Done.

Sample ruleset:

Code: [Select]
ufos:
  - type: STR_BATTLESHIP
    missilePower: 10
    hitImage: BACK13.SCR  # funding bg
    hitSound: 11          # ufo explosion (GEO.CAT)

https://github.com/MeridianOXC/OpenXcom/commit/2af9575eb03a41dbe3776b381ff275af4495b305
https://github.com/MeridianOXC/OpenXcom/commit/52cb7f72a862182193e36c33bbedffcf99b21297