header general

[SUBMISSION] Hexen N64 Foliage

  • Margaret Thatcher
  • Margaret Thatcher's Avatar Topic Author
  • Lost Soul
  • Lost Soul
More
3 months 2 days ago #1 by Margaret Thatcher
[SUBMISSION] Hexen N64 Foliage was created by Margaret Thatcher


Name: Hexen N64 Foliage
Palette: Hexen
Connection: None
Summon: HexenN64Tree1, HexenN64Tree2, HexenN64Leaf1, HexenN64Leaf2, HexenN64LeafSpawner
Ambient Sound: No
De-/Activatable: No
Destroyable: No
Special Effects: Yes
ACS: No

Submitted: PGE
Decorate: PGE, Rage Saprk (randomization code on HexenN64LeafSpawner)
Sprites: Raven Software (Hexen)
Sprite Edit: Software Creations Ltd. (Hexen for Nintendo 64)

Description: The trees and leaves from Hexen's Nintendo 64 port, as their own
distinct actor. Leaves cannot be spawned on their own, only by HexenN64LeafSpawner
(same with regular leaves only being spawnable by LeafSpawner). The angle of
HexenN64LeafSpawner dictates the direction in which it spawns leaves.

File Attachment:

File Name: HexenN64Leaves.zip
File Size:41 KB

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

  • Gothic
  • Gothic's Avatar
  • Moderator
  • Moderator
More
3 months 2 days ago #2 by Gothic
Replied by Gothic on topic [SUBMISSION] Hexen N64 Foliage
We already have them here

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

  • Margaret Thatcher
  • Margaret Thatcher's Avatar Topic Author
  • Lost Soul
  • Lost Soul
More
3 months 2 days ago #3 by Margaret Thatcher
Replied by Margaret Thatcher on topic [SUBMISSION] Hexen N64 Foliage
Oh. Didn't know that.

I feel like my (as in "Rage Spark and I's") leaf spawner is a much more faithful recreation of the Hexen 64 spawner than the one currently on the site. For a refresher, Hexen's leaf spawner does this once every 20 tics:

"Spawns up to four leaves, which are alternatively Leaf1 and Leaf2. The leaves appear randomly in a square area of 128×128 map units centered on the spawner, and with a height between the spawner's and 64 map units above it. They are blown in the direction corresponding to the spawner's angle, with a horizontal velocity between 3.0 and 5.0 units."

* Properly centered

The on-site generator randomizes the leaf position between 0 and 128. This is incorrect, however, as this means the box emanates from the bottom-left corner. Mine randomizes the leaf position between -64 and 64, properly centering the box.

* Actual leaf randomization

The on-site generator is rather simple.
>Flip a coin (generate a random number with a value of either 0 or 1)
>If it's Heads (has a value of 0), summon 4 of the first leaf variety. If it's Tails (has a value of 1), summon 4 of the second leaf variety.

This results in it only summoning one variety of leaves at a time, in contrast to how Hexen actually summons leaves.

My generator is a little more robust.

>Flip a coin. If Heads, summon 1 leaf of the first variety. If Tails, summon 1 leaf of the second variety.
>Repeat this 3 times, for a total of 4 leaves.

This ensures that the leaves are truly varied and random.

* Proper velocity

The on-site generator sets the velocity of leaves to a random number between 3 and 5. The issue is that it can only set it to a whole number (3, 4, or 5) since it doesn't make room for decimals. My generator properly sets the velocity to a random number between 3.0 and 5.0, allowing for a greater variety of velocities.

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

  • Gothic
  • Gothic's Avatar
  • Moderator
  • Moderator
More
3 months 2 days ago #4 by Gothic
Replied by Gothic on topic [SUBMISSION] Hexen N64 Foliage
I could merge this with whirledtsar's submission if you want to.

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

  • Margaret Thatcher
  • Margaret Thatcher's Avatar Topic Author
  • Lost Soul
  • Lost Soul
More
3 months 2 days ago #5 by Margaret Thatcher
Replied by Margaret Thatcher on topic [SUBMISSION] Hexen N64 Foliage
That sounds like a good compromise.

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

  • Gothic
  • Gothic's Avatar
  • Moderator
  • Moderator
More
3 months 2 days ago #6 by Gothic
Replied by Gothic on topic [SUBMISSION] Hexen N64 Foliage

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