The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2024, 02:04:11 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  Pkunk rebirth algorythm
« previous next »
Pages: 1 [2] Print
Author Topic: Pkunk rebirth algorythm  (Read 5187 times)
Bwahaha
Zebranky food
*
Offline Offline

Posts: 32


I love YaBB 1G - SP1!


View Profile WWW
Re: Pkunk rebirth algorythm
« Reply #15 on: December 09, 2003, 04:29:00 pm »

It looks as though the mass_points member of the struct is a bit of a red herring in this instance.  Because a generic structure is used to describe a ship's state, and this isn't C++, they couldn't add a "in the middle of rising from the ashes" flag, so they set mass_points to a ridiculously high value, and then check this to see whether to rebirth a pkunk.

Once the ship has finished it's transition from a dead state - to alive, moving and shooting, mass_points is reset back to a normal value.

So basically it's to stop the pkunk from regenerating again, while still only halfway through a regeneration phase.  As such, it should have no impact on whether a pkunk is regenerated or not.  As others have stated, the chances are exactly 50/50.
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!