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

War3:Source
September 21, 2012, 09:25:21 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Race;Utility] Random Race  (Read 476 times)
Necavi
Full Member
***
Posts: 217


View Profile
« 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.
« Last Edit: July 26, 2012, 06:57:24 PM by Necavi » Logged

iceman
Full Member
***
Posts: 160



View Profile
« Reply #1 on: November 05, 2011, 07:43:28 AM »

Can you add a accessflag check please? We use it on our servers.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #2 on: November 06, 2011, 01:30:17 PM »

ill make a more uniform race restrictions check once i get to it
Logged

DarkEnergy
Necavi
Full Member
***
Posts: 217


View Profile
« Reply #3 on: November 06, 2011, 01:43:39 PM »

Sounds good, I may make it first, depending on how much time I have.
Logged

Necavi
Full Member
***
Posts: 217


View Profile
« Reply #4 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).
Logged

-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #5 on: September 16, 2012, 10:19:27 AM »

Thats a very good idea.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!