Author Topic: Alternatives to Flying Animation in Vanilla OXC?  (Read 4990 times)

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Alternatives to Flying Animation in Vanilla OXC?
« 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!

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #1 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

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #2 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

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #3 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

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #4 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 :)
« Last Edit: June 13, 2017, 12:29:44 pm by SideQuests »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #5 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)

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #6 on: July 10, 2017, 10:12:34 pm »
Thanks WarBoy is that in the latest nightly? or in the latest version of 1.0?

:)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #7 on: July 11, 2017, 10:09:47 am »
nightly only

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Alternatives to Flying Animation in Vanilla OXC?
« Reply #8 on: July 11, 2017, 06:35:17 pm »
Thanks Warboy :)

Il try and test out tonight :)