OpenXcom Forum

Modding => Released Mods => XPiratez => Topic started by: clownagent on September 09, 2017, 06:40:33 pm

Title: [MOD] White rabbit
Post by: clownagent on September 09, 2017, 06:40:33 pm
The attached mod allows the player to buy white rabbits from the magical shoppe. They can give your units a small TU-bonus.

Known issues:
- I could not change the hitAnimation and explosionSound of the corpse explosion.
- I would prefer that the corpse always explodes even when neutralized by melee or stun, but this is not possible.
- The TU-bonus works only up to the TU-maximum of the target unit.
Title: Re: [MOD] White rabbit
Post by: Solarius Scorch on September 09, 2017, 09:08:16 pm
Oh man, that's so cool.
Title: Re: [MOD] White rabbit
Post by: wolfreal on September 10, 2017, 12:50:48 am
One thumb up for this!.
Title: Re: [MOD] White rabbit
Post by: Yankes on September 10, 2017, 02:16:11 am
btw using scripts you could change stats of unit too.
On attack use `Stats.setTimeUnits` to bump battle stats of unit and after couple of turns (counter in custom tag) reduce it to original values using same function.
Title: Re: [MOD] White rabbit
Post by: Dioxine on September 11, 2017, 11:41:43 am
Pretty sweet! I think I will be merging this mod into the game. However the ability to set custom death explosion animation would be nice.
Title: Re: [MOD] White rabbit
Post by: Yataka Shimaoka on September 11, 2017, 04:08:27 pm
Just don't go with the nude ufopaedia
Title: Re: [MOD] White rabbit
Post by: Dioxine on September 11, 2017, 06:04:36 pm
It's default now.
Title: Re: [MOD] White rabbit
Post by: Yankes on September 14, 2017, 11:16:23 pm
Pretty sweet! I think I will be merging this mod into the game. However the ability to set custom death explosion animation would be nice.
Corpse define how unit explode as in any other exploding item.
Title: Re: [MOD] White rabbit
Post by: Dioxine on September 14, 2017, 11:53:55 pm
Code: [Select]
    hitAnimation: 144
    explosionHitSound: 303

Adding this to corpse item doesn't work, though. It plays default explosion anim and default sound.
Title: Re: [MOD] White rabbit
Post by: Yankes on September 15, 2017, 09:30:44 pm
Code: [Select]
    hitAnimation: 144
    explosionHitSound: 303

Adding this to corpse item doesn't work, though. It plays default explosion anim and default sound.
Right, I find bug, in next version it will work.