#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[UPDATE\] Shrink Sphere

##

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 3 weeks ago - 10 years 2 weeks ago [\#4283](#4283) by Blue Shadow  *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4283 "Updated submission:

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")* was created by *Blue Shadow*

 Updated submission: [ Shrink Sphere](http://www.realm667.com/index.php/en/item-store-mainmenu-169-61042/powerups-a-artifacts-mainmenu-170-4162/812-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: 10 years 2 weeks ago by Blue Shadow.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 3 weeks ago [\#4288](#4288) by MagicWazard  Replied by *MagicWazard* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4288 "Updated submission:

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")*

 I'll test this out before the end of the day so it can be approved and uploaded.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 3 weeks ago [\#4291](#4291) by MagicWazard  Replied by *MagicWazard* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4291 "Updated submission:

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")*

 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 3 weeks ago [\#4298](#4298) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4298 "Updated submission:

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")*

 As far as I'm aware, there isn't a way to transfer translation to the morphed class.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 3 weeks ago [\#4300](#4300) by MagicWazard  Replied by *MagicWazard* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4300 "Updated submission:

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")*

 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 3 weeks ago [\#4305](#4305) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4305 "Updated submission:

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")*

 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 3 weeks ago [\#4307](#4307) by MagicWazard  Replied by *MagicWazard* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4307 "Updated submission:

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")*

 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422)
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   10 years 3 weeks ago [\#4309](#4309) by Salahmander  Replied by *Salahmander* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4309 "Updated submission:

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")*

> 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **MagicWazard**
- ![MagicWazard's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar517.png)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 808
-
-
-
-

   10 years 3 weeks ago - 10 years 3 weeks ago [\#4314](#4314) by MagicWazard  Replied by *MagicWazard* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4314 "Updated submission:

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")*

> 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: 10 years 3 weeks ago by MagicWazard.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   10 years 3 weeks ago [\#4320](#4320) by Blue Shadow  Replied by *Blue Shadow* on topic *[\[UPDATE\] Shrink Sphere](https://www.realm667.com/forum/closed-submissions/740-update-shrink-sphere#4320 "Updated submission:

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")*

> 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](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83NDAtdXBkYXRlLXNocmluay1zcGhlcmU/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
