Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3:Source

War3Source Races => Races / Items - Submissions => Topic started by: Necavi on October 27, 2011, 06:31:16 PM



Title: [Race;Utility] Random Race
Post by: Necavi on October 27, 2011, 06:31:16 PM
This race is extremely simple, all it does is sets your race to any race that you have access to (I only check the level requirement, I do NOT check the accessflag currently, as my server doesn't use them, I'll probably add that in at some point). This race also adds the command sm_rand (and of course, the text !rand and /rand) that performs the same function, as long as you are dead or in spectate.

Addendum: Currently it shows the race you are set to and then tells you that you were set to a random race, I know that this would be extremely easy to fix, but my brain has deserted me in this regard, if anyone can provide advice, please do.


Title: Re: [Race;Utility] Random Race
Post by: iceman on November 05, 2011, 07:43:28 AM
Can you add a accessflag check please? We use it on our servers.


Title: Re: [Race;Utility] Random Race
Post by: Ownz on November 06, 2011, 01:30:17 PM
ill make a more uniform race restrictions check once i get to it


Title: Re: [Race;Utility] Random Race
Post by: Necavi on November 06, 2011, 01:43:39 PM
Sounds good, I may make it first, depending on how much time I have.


Title: Re: [Race;Utility] Random Race
Post by: Necavi on July 26, 2012, 06:59:45 PM
I have (finally) updated this race to use the CanSelectRace(client,race) function, making this safe to use in all situations (one would imagine).


Title: Re: [Race;Utility] Random Race
Post by: -El Diablo on September 16, 2012, 10:19:27 AM
Thats a very good idea.