OpenXcom Forum

Modding => Work In Progress => Topic started by: Wolfstarr on June 12, 2017, 01:09:50 am

Title: Alternatives to Flying Animation in Vanilla OXC?
Post by: Wolfstarr on June 12, 2017, 01:09:50 am
So my experiment for this evening was to see if I could get the helicopter from Jungle Strike into OXC, so initially I thought I could do this with the Cyberdisk routine however it animates the rotor blades underneath the aircraft.  I then tried using the Sectopod animation routine but as soon as the unit leaves the ground there is no animation on the rotor blades :(

Anyone have any ideas or can point me in another direction?

Cheers!
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: bulletdesigner on June 12, 2017, 12:16:47 pm
i haveĀ“d the same problem some time ago doing the flying daemon https://openxcom.org/forum/index.php/topic,4322.msg75625.html#msg75625
this will help
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Wolfstarr on June 12, 2017, 04:04:38 pm
Thanks :)

I suspected that you wouldn't be able to do it in vanilla code but thought I'd give it a go lol
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Warboy1982 on June 13, 2017, 05:25:46 am
i can look into adding a sprite routine that differs from the cyberdisk only in that one regard (draw order of the animated bit) without too much trouble
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Wolfstarr on June 13, 2017, 09:40:04 am
i can look into adding a sprite routine that differs from the cyberdisk only in that one regard (draw order of the animated bit) without too much trouble

That sounds awesome Warboy! :)

Edit. You've perked my curiousity now warboy! Is this something that could be done through a mod or would it still need OXCE? I take it there is some lovely code in the core files that animates the tiles in a specific fashion, I guess is it as simple as changing the order?

Would you be kind enough to let me know where this is stored in the game files as I'd like to try my hand at a bit of coding :)
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Warboy1982 on July 10, 2017, 09:53:03 pm
sorry i didn't reply earlier, didn't notice the edits.
it's stored in UnitSprite.cpp

also i've added the drawing routine for helicopters, it should work with number 22 (please let me know if it has any issues as i didn't actually test it)
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Wolfstarr on July 10, 2017, 10:12:34 pm
Thanks WarBoy is that in the latest nightly? or in the latest version of 1.0?

:)
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Warboy1982 on July 11, 2017, 10:09:47 am
nightly only
Title: Re: Alternatives to Flying Animation in Vanilla OXC?
Post by: Wolfstarr on July 11, 2017, 06:35:17 pm
Thanks Warboy :)

Il try and test out tonight :)