Author Topic: [Race;Utility] Random Race  (Read 2932 times)

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
[Race;Utility] Random Race
« 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: December 27, 2012, 02:44:51 AM by Necavi »

iceman

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: [Race;Utility] Random Race
« Reply #1 on: November 05, 2011, 07:43:28 AM »
Can you add a accessflag check please? We use it on our servers.

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: [Race;Utility] Random Race
« Reply #2 on: November 06, 2011, 01:30:17 PM »
ill make a more uniform race restrictions check once i get to it

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: [Race;Utility] Random Race
« Reply #3 on: November 06, 2011, 01:43:39 PM »
Sounds good, I may make it first, depending on how much time I have.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: [Race;Utility] Random Race
« 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).

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: [Race;Utility] Random Race
« Reply #5 on: December 27, 2012, 02:44:26 AM »
Not tested, but made a new build which should prevent the double racechange message issue

iceman

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: [Race;Utility] Random Race
« Reply #6 on: December 27, 2012, 01:45:50 PM »
This could be useful when players join and some reason they wont choose a race.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: [Race;Utility] Random Race
« Reply #7 on: December 27, 2012, 04:53:18 PM »
I use it all the bloody time because I can never properly choose a race

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: [Race;Utility] Random Race
« Reply #8 on: December 27, 2012, 06:34:22 PM »
bro, do you even ...

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: [Race;Utility] Random Race
« Reply #9 on: December 27, 2012, 07:19:17 PM »
What?