Technology Temerity

Free Variables

List of outdated or superfluous model and global level values used as script parameters in place of their intended purpose. The idea is simple enough: The variables exist in the engine anyway, so why not save a kilobyte or two and use them instead of adding more to a script?

*Used as normal otherwise.

  1. MP*
    • Projectile priority for obstacle types. See prjo0001() function.
  2. Throwdamage
    • Custom Subtype:
      • 0 = Human Male.
      • 1 = Human Female.
      • 2 = Mechanical.
      • 3 = Music change.
      • 21 = Default value.
  3. Speed*
    • Manual zoom adjustment for flash effects. SeeĀ spawn0002.c script.
  4. Alpha*
    • Function draw0001() reads in entity’s current alpha setting and uses it as alpha/blend parameter when applying settings to setdrawmethod().
      • 12262010 – Removed. No longer needed as passing -1 to the alpha parameter of setdrawmethod() allows entity’s current alpha property to be used instead.
  5. Nodrop*
    • Flash effects pass random number from 0 through <nodrop> to ADROTATE (results in single random rotation on spawn).
  6. Flash
    • If <Noatflash> parameter is set ( != 0), Flash effects will spawn <Flash> model as a secondary effect. If <Noatflash> is not -1, the secondary model will have its animation set to follow+<Noatflash>. See spaw0002.c for details.
  7. Guardpoints
    • Parameter to identify and differentiate one shot entities (flash & dust) from each other. This allows a single spawn script to deal with most one shot entities and still treat them uniquely (i.e. a dust entity uses a splash animation when out of Z bounds in a beach stage, but a flash entity does not).
  8. Nodrop
    • Music Switching
      • Music text file stream column position marker. See musi0001() function.
  9. Aggression
    • Music switching
      • Music text file stream row position marker. See musi0001() function.
  10. Max Health
    • Music switching
      • Sound effect to play when music switch takes place. See musi0001() function.

Author: Damon Caskey

Hello all, Damon Caskey here - the esteemed owner of this little slice of cyberspace. Welcome!

Leave a Reply