Advanced Search

Author Topic: [Suggestion] Teleport FX copies translation of player  (Read 2036 times)

0 Members and 1 Guest are viewing this topic.

August 21, 2017, 07:58:05 PM
Read 2036 times

Offline Messatsu

  • MM8BDM Extender

  • ....
  • *****
  • Date Registered: November 10, 2010, 04:06:39 PM

    • View Profile
[Suggestion] Teleport FX copies translation of player
« on: August 21, 2017, 07:58:05 PM »
(click to show/hide)

Found it weird that whenever you use an escape unit or teleport, the leaving teleportation FX was always the Mega Man blue colors.  I think this makes the effect much nicer overall.  (Though perhaps teleporters shouldn't use the escape upward teleport? I dunno, does look cool though)

September 08, 2017, 01:38:47 PM
Reply #1

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
Re: [Suggestion] Teleport FX copies translation of player
« Reply #1 on: September 08, 2017, 01:38:47 PM »
Trying to actually make this happen in code is annoying since we don't control when the teleport fx spawns (i.e a_spawnitemex). Options are either give the teleport fogs some arbitrary tid number (+ 1000, which is what cbm is doing) or add something to the translation changing code that gives players an inventory based on what translation number they have. I'm not sure the latter can be relied on heavily if a modder chooses to use it (online) and I'm not a fan of taking up more tids that external mods could already be using.

I'd probably settle on the latter, just depends how badly we want them.

September 08, 2017, 04:45:27 PM
Reply #2

Offline Messatsu

  • MM8BDM Extender

  • ....
  • *****
  • Date Registered: November 10, 2010, 04:06:39 PM

    • View Profile
Re: [Suggestion] Teleport FX copies translation of player
« Reply #2 on: September 08, 2017, 04:45:27 PM »
You're overthinking things:
1.) Create an array
2.) Set the value of the array using script 998
3.) Have the teleport actor set the translation based on the value stored in the array.

This has been tested as working. (It was used in that screenshot)

September 08, 2017, 05:40:35 PM
Reply #3

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
Re: [Suggestion] Teleport FX copies translation of player
« Reply #3 on: September 08, 2017, 05:40:35 PM »
You're overthinking things:

I've been doing this for so long I just expect everything to require gross hacks to function. Added.