header general

[UPDATE] Shrink Sphere

  • Blue Shadow
  • Blue Shadow's Avatar Topic Author
  • Administrator
  • Administrator
More
8 years 5 months ago - 8 years 4 months ago #1 by Blue Shadow
[UPDATE] Shrink Sphere was created by Blue Shadow
Updated submission: Shrink Sphere

Changes:
  • Fixed: if hurt, the morphed player did not play the pain sound.
  • Fixed: the sound lump's name of the *xdeath sound was misnamed.
  • Replaced all instances of A_PlaySoundEx with A_PlaySound.
  • Utilized inheritance for the shrink special effect actors, to reduce duplicate code.
  • The shrink special effect actor faces the same direction as the player.
  • Player's translation is transferred to the morphed actor.
  • Optimized the sprites.

Download:

https://dl.dropboxusercontent.com/s/7f43go7rfzkwsb2/ShrinkSphere.zip?dl=0
Last edit: 8 years 4 months ago by Blue Shadow.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
8 years 5 months ago #2 by MagicWazard
Replied by MagicWazard on topic [UPDATE] Shrink Sphere
I'll test this out before the end of the day so it can be approved and uploaded.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
8 years 5 months ago #3 by MagicWazard
Replied by MagicWazard on topic [UPDATE] Shrink Sphere
Sorry, I've got one more for you--when the player uses the sphere, the morphed player doesn't retain the translation of the original player. Open up the console and use "Chase" to view this.

Oddly, if you die in morphed form, then open up the console and type "Resurrect", you'll then assume the translation of the original player.

Please Log in or Create an account to join the conversation.

  • Blue Shadow
  • Blue Shadow's Avatar Topic Author
  • Administrator
  • Administrator
More
8 years 5 months ago #4 by Blue Shadow
Replied by Blue Shadow on topic [UPDATE] Shrink Sphere
As far as I'm aware, there isn't a way to transfer translation to the morphed class.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
8 years 5 months ago #5 by MagicWazard
Replied by MagicWazard on topic [UPDATE] Shrink Sphere
That's unfortunate, but also a little bit odd, since like I said, if you die while morphed, then resurrect, your translation takes effect. What do you think?

Please Log in or Create an account to join the conversation.

  • Blue Shadow
  • Blue Shadow's Avatar Topic Author
  • Administrator
  • Administrator
More
8 years 5 months ago #6 by Blue Shadow
Replied by Blue Shadow on topic [UPDATE] Shrink Sphere
Player's translation is restored upon resurrection. The player is meant to unmorph, as well, but I don't know why that's failing.

Edit: Okay, here is an idea: how about unmorphing upon death? It makes sense to me, since this is a powerup, and usually when you die, you lose your active powerups.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
8 years 5 months ago #7 by MagicWazard
Replied by MagicWazard on topic [UPDATE] Shrink Sphere
I personally think it's funny when the player dies in shrunken form. Besides, there's special audio included for just that situation. Maybe if the player dies in shrunken form, then after a delay, he unmorphs after death, we could have the best of both worlds. But it begs the question, is the player really likely to resurrect without using console cheats anyways?

Also, does the ability to transfer translation to a morphed class need to become a feature request?

Please Log in or Create an account to join the conversation.

  • Salahmander
  • Salahmander's Avatar
  • Cacodemon
  • Cacodemon
More
8 years 5 months ago #8 by Salahmander
Replied by Salahmander on topic [UPDATE] Shrink Sphere

MagicWazard wrote: But it begs the question, is the player really likely to resurrect without using console cheats anyways?


The only case where it CAN happen off the top of my head is multiplayer and if the map in the MAPINFO has the AllowRespawn flag set.

Please Log in or Create an account to join the conversation.

  • MagicWazard
  • MagicWazard's Avatar
  • Moderator
  • Moderator
More
8 years 5 months ago - 8 years 5 months ago #9 by MagicWazard
Replied by MagicWazard on topic [UPDATE] Shrink Sphere

Salahmander wrote: The only case where it CAN happen off the top of my head is multiplayer and if the map in the MAPINFO has the AllowRespawn flag set.

I think Respawning and Resurrecting would be treated differently in this case, though admittedly I don't know for sure. AllowRespawn is actually used for single-player mode; with that in mind, I guess the easy way to test this would be to make a map with the flag, but I don't have the time to try that out at the moment. Unless Blue Shadow or someone else beats me to it, I'll try that out in the next couple days or so to see what happens.

EDIT: I just remembered I already had a bunch of single-player maps created, so I just edited them to include AllowRespawn. In this case, if you die while shrunken, you will respawn at your normal size, along with your correct translation.
Last edit: 8 years 5 months ago by MagicWazard.

Please Log in or Create an account to join the conversation.

  • Blue Shadow
  • Blue Shadow's Avatar Topic Author
  • Administrator
  • Administrator
More
8 years 5 months ago #10 by Blue Shadow
Replied by Blue Shadow on topic [UPDATE] Shrink Sphere

MagicWazard wrote: Maybe if the player dies in shrunken form, then after a delay, he unmorphs after death

I tried to do that, but it didn't work well. The player unmorphs but becomes half dead half alive; the player's sprite is set to spawn/idle instead of death, even the player's view height is adjust as if he/she is alive. But the fact is, the player is still dead. It looks like the morph system wasn't designed to handle such a case.

Anyways, I had reported the resurrect command bug, and if it's fixed we won't need to mess with that idea, I think.

Also, does the ability to transfer translation to a morphed class need to become a feature request?

I'll post a feature request and see. Don't hold your breath, though.


For the time being, I'm putting this on hold.

Please Log in or Create an account to join the conversation.