• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Snippet] [Needs work] PlayerAllianceAdv

Level 31
Joined
Jul 10, 2007
Messages
6,306
Fixed a mess up that made highest set flag retrieval impossible and added a new function to retrieve highest flag set.

edit
Initialization doctored up a bit (I really studied the numbers to make sure all of the math was right because TeamManager was exploding with the same algorithm ^)^, apparently this onInit was bugged).

GetAllianceId now returns a PlayerAlliance rather than an integer (had to typecast every time, so figured returning a PlayerAlliance was smerter).
 
Last edited:
Top