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
Chat

War3:Source
October 24, 2012, 10:19:01 AM *
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: Assign race on spawn  (Read 291 times)
zero
Full Member
***
Posts: 191



View Profile WWW Email
« on: December 15, 2010, 04:54:20 PM »

Is there any way to assign race on spawn so that a player automatically spawns with their last used race?
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: December 15, 2010, 04:57:11 PM »

yes, if race restrictions are not enabled
Logged

DarkEnergy
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #2 on: December 15, 2010, 05:50:09 PM »

How?

Below is my war3source.cfg
Code:
//Main Commands, these are primary CVAR settings for the war3 plugin


         war3_assistgold                          "0"        //
         war3_autosavetime                        "60"       //
         war3_bug_to_my_db                        "0"        //send war3bug messages to your own database?
         war3_buyitems_csmoney                    "1"        //In CS, use cs money to buy shopmenu items
         war3_chancemodifier_burn                 "0"        //From 0.0 to 1.0 chance modifier for burns
         war3_chancemodifier_directburn           "0"        //From 0.0 to 1.0 chance modifier for direct burns (plasma)
         war3_chancemodifier_heavy                "0"        //From 0.0 to 1.0 chance modifier for heavy gun
         war3_chancemodifier_medic                "0"        //From 0.0 to 1.0 chance modifier for medic needle gun
         war3_chancemodifier_sentry               "0"        //From 0.0 to 1.0 chance modifier for sentry
         war3_chancemodifier_sentryrocket         "0"        //From 0.0 to 1.0 chance modifier for sentry rockets
         war3_chancemodifier_smgsniper            "0"        //From 0.0 to 1.0 chance modifier for sniper SMG
         war3_command_blocking                    "0"        //block chat commands from showing up
         war3_crypt_locust_cooldown               "20"       //Cooldown between ultimate usage
         war3_crypt_locust_range                  "999999999"//Range of locust ultimate
         war3_game_desc                           "1"        //change game description to war3source? does not affect player connect
         war3_human_teleport_cooldown             "20"       //Cooldown between teleports
         war3_hunter_voodoo_cooldown              "20"       //Cooldown between Big Bad Voodoo (ultimate)
         war3_ignore_bots_xp                      "0"        //Set to 1 to not award XP for killing bots
         war3_item_restrict                       "0"        //Disallow items in shopmenu, shortname separated by comma only ie:'claw,orb'
         war3_killgold                            "0"        //
         war3_mage_fire_strike_cooldown           "20"       //Cooldown between fire strikes (ultimate)
         war3_mage_revive_delay                   "2"        //Delay when reviving a teammate (since death)
         war3_max_shopitems                       "3"        //
         war3_maxgold                             "1000"     //
         war3_min_players_xp_gain                 "2"        //minimum amount of players needed on teams for people to gain xp
         war3_minimumultimatelevel                "8"        //
         war3_new_player_levelbank                "300"       //The amount of free levels a person gets that is new to the server (no xp record)
         war3_nightelf_entangle_cooldown          "20"       //Cooldown timer.
         war3_nightelf_entangle_noshoot           "0"        //Disable shooting when entangled?
         war3_orc_chain_cooldown                  "20"       //Cooldown time for chain lightning.
         war3_orc_nocritgloves                    "1"        //Disable nade crit with gloves
         war3_orc_respawn_delay                   "1"        //How long before spawning for reincarnation?
         war3_percent_assistkillxp                "0"        //Percent of kill XP awarded for an assist kill.
         war3_percent_cs_defusexp                 "100"      //Percent of kill XP awarded for defusing the bomb
         war3_percent_cs_hostagerescuexp          "16"       //Percent of kill XP awarded for rescuing a hostage
         war3_percent_cs_plantxp                  "50"       //Percent of kill XP awarded for planting the bomb
         war3_percent_headshotxp                  "100"      //Percent of kill XP awarded additionally for headshots
         war3_percent_meleexp                     "133"      //Percent of kill XP awarded additionally for melee/knife kills
         war3_percent_roundwinxp                  "0"        //Percent of kill XP awarded for being on the winning team
         war3_percent_tf_blockcapturexp           "20"       //Percent of kill XP awarded for blocking a capture
         war3_percent_tf_flagcapturexp            "100"      //Percent of kill XP awarded for capturing the flag
         war3_percent_tf_pointcapturexp           "25"       //Percent of kill XP awarded to the capturing team
         war3_print_levelbank_spawn               "0"        //Print how much you have in your level bank in chat every time you spawn?
         war3_print_on_autosave                   "0"        //Print a message to chat when xp is auto saved?
         war3_racelimit_enable                    "1"        //Should race limit restrictions per team be enabled
         war3_savexp                              "1"        //
         war3_set_race_on_join                    "1"        //
         war3_shop_boots_speed                    "1.2"      //Boots speed, 1.2 is default
         war3_shop_claws_damage                   "6"        //Claws of attack additional damage
         war3_shop_mask_percent                   "0.1"      //Percent of damage rewarded for Mask of Death, from 0.0 - 1.0
         war3_shop_mole_dm                        "0"        //Set this to 1 if server is deathmatch
         war3_shop_orb_speed                      "0.7"      //Orb of Frost speed, 1.0 is normal speed, 0.6 default for orb.
         war3_shop_ring_hp_cs                     "5"        //How much HP is regenerated for CS.
         war3_shop_ring_hp_tf                     "4"        //How much HP is regenerated for TF.
         war3_shop_sock_gravity                   "0.5"      //Gravity used for Sock of Feather, 0.4 is default for sock, 1.0 is normal gravity
         war3_shop_tome_xp                        "100"      //Experience awarded for Tome of Experience.
         war3_stats_sql_error                     "0"        //LOG SQL errors from statistics plugin
         war3_undead_suicidebomber_ff             "0"        //Friendly fire for suicide bomber, 0 for no, 1 for yes, 2 for mp_friendlyfire
         war3_undead_suicidebomber_sentry         "1"        //Should suicide bomber damage sentrys?
         war3_warden_vengence_cooldown            "30"       //Cooldown between Warden Vengence (ultimate)
         war3_warden_vengence_max                 "1"        //Max number of revivals from vengence per round (CS only), 0 for unlimited
         war3_xp_level_difference_bonus           "4"        //Bounus Xp awarded per level if victim has a higher level
war3_succ_ult_cooldown                   "5"        //Cooldown for succubus ultimate


//Internal Commands Below, all comands are intenal and require war3 before the command


//Races
         war3 undead_minlevel "0"          //Minimum level for race
         war3 undead_accessflag "0"        //Admin access flag required for race
         war3 undead_raceorder "100"       //This race"s Race Order on changerace menu
         war3 undead_flags ""              //This race"s flags, ie "hidden,etc
         war3 undead_restrict_items ""     //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 undead_team1_limit "99"      //How many people can play this race on team 1 (RED/T)
         war3 undead_team2_limit "99"      //How many people can play this race on team 2 (BLU/CT)
         war3 human_minlevel "0"           //Minimum level for race
         war3 human_accessflag "0"         //Admin access flag required for race
         war3 human_raceorder "200"        //This race"s Race Order on changerace menu
         war3 human_flags ""               //This race"s flags, ie "hidden,etc
         war3 human_restrict_items ""      //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 human_team1_limit "99"       //How many people can play this race on team 1 (RED/T)
         war3 human_team2_limit "99"       //How many people can play this race on team 2 (BLU/CT)
         war3 orc_minlevel "0"             //Minimum level for race
         war3 orc_accessflag "0"           //Admin access flag required for race
         war3 orc_raceorder "300"          //This race"s Race Order on changerace menu
         war3 orc_flags ""                 //This race"s flags, ie "hidden,etc
         war3 orc_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 orc_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 orc_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
         war3 nightelf_minlevel "0"        //Minimum level for race
         war3 nightelf_accessflag "0"      //Admin access flag required for race
         war3 nightelf_raceorder "400"     //This race"s Race Order on changerace menu
         war3 nightelf_flags ""            //This race"s flags, ie "hidden,etc
         war3 nightelf_restrict_items ""   //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 nightelf_team1_limit "99"    //How many people can play this race on team 1 (RED/T)
         war3 nightelf_team2_limit "99"    //How many people can play this race on team 2 (BLU/CT)
         war3 mage_minlevel "40"           //Minimum level for race
         war3 mage_accessflag "0"          //Admin access flag required for race
         war3 mage_raceorder "500"         //This race"s Race Order on changerace menu
         war3 mage_flags ""                //This race"s flags, ie "hidden,etc
         war3 mage_restrict_items ""       //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 mage_team1_limit "99"        //How many people can play this race on team 1 (RED/T)
         war3 mage_team2_limit "99"        //How many people can play this race on team 2 (BLU/CT)
         war3 hunter_minlevel "60"         //Minimum level for race
         war3 hunter_accessflag "0"        //Admin access flag required for race
         war3 hunter_raceorder "600"       //This race"s Race Order on changerace menu
         war3 hunter_flags ""              //This race"s flags, ie "hidden,etc
         war3 hunter_restrict_items ""     //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 hunter_team1_limit "99"      //How many people can play this race on team 1 (RED/T)
         war3 hunter_team2_limit "99"      //How many people can play this race on team 2 (BLU/CT)
         war3 warden_minlevel "70"         //Minimum level for race
         war3 warden_accessflag "0"        //Admin access flag required for race
         war3 warden_raceorder "700"       //This race"s Race Order on changerace menu
         war3 warden_flags ""              //This race"s flags, ie "hidden,etc
         war3 warden_restrict_items ""     //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 warden_team1_limit "99"      //How many people can play this race on team 1 (RED/T)
         war3 warden_team2_limit "99"      //How many people can play this race on team 2 (BLU/CT)
         war3 crypt_minlevel "80"          //Minimum level for race
         war3 crypt_accessflag "0"         //Admin access flag required for race
         war3 crypt_raceorder "800"        //This race"s Race Order on changerace menu
         war3 crypt_flags ""               //This race"s flags, ie "hidden,etc
         war3 crypt_restrict_items ""      //Which items to restrict for people on this race. Separate by comma, ie "claw,orb"
         war3 crypt_team1_limit "99"       //How many people can play this race on team 1 (RED/T)
         war3 crypt_team2_limit "99"       //How many people can play this race on team 2 (BLU/CT)
         war3 archm_team2_limit "99"       //How many people can play this race on team 2 (BLU/CT)
         war3 succubus_minlevel "80"            //Minimum level for race
         war3 succubus_accessflag "0"           //Admin access flag required for race
         war3 succubus_raceorder "1400"         //This race's Race Order on changerace menu
         war3 succubus_flags ""                 //This race's flags, ie 'hidden,etc
         war3 succubus_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 succubus_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 succubus_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
         war3 archm_minlevel "50"               //Minimum level for race
         war3 archm_accessflag "0"              //Admin access flag required for race
         war3 archm_raceorder "900"             //This race's Race Order on changerace menu
         war3 archm_flags ""                    //This race's flags, ie 'hidden,etc
         war3 archm_restrict_items ""           //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 archm_team1_limit "99"            //How many people can play this race on team 1 (RED/T)
         war3 archm_team2_limit "99"            //How many people can play this race on team 2 (BLU/CT)
         war3 flamepredator_minlevel "80"       //Minimum level for race
         war3 flamepredator_accessflag "0"      //Admin access flag required for race
         war3 flamepredator_raceorder "1000"    //This race's Race Order on changerace menu
         war3 flamepredator_flags ""            //This race's flags, ie 'hidden,etc
         war3 flamepredator_restrict_items ""   //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 flamepredator_team1_limit "99"    //How many people can play this race on team 1 (RED/T)
         war3 flamepredator_team2_limit "99"    //How many people can play this race on team 2 (BLU/CT)
         war3 genocide_minlevel "220"           //Minimum level for race
         war3 genocide_accessflag "0"           //Admin access flag required for race
         war3 genocide_raceorder "1200"         //This race's Race Order on changerace menu
         war3 genocide_flags ""                 //This race's flags, ie 'hidden,etc
         war3 genocide_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 genocide_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 genocide_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
         war3 molecule_minlevel "160"           //Minimum level for race
         war3 molecule_accessflag "0"           //Admin access flag required for race
         war3 molecule_raceorder "1100"         //This race's Race Order on changerace menu
         war3 molecule_flags ""                 //This race's flags, ie 'hidden,etc
         war3 molecule_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 molecule_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 molecule_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
         war3 panorama_minlevel "280"           //Minimum level for race
         war3 panorama_accessflag "0"           //Admin access flag required for race
         war3 panorama_raceorder "1500"         //This race's Race Order on changerace menu
         war3 panorama_flags ""                 //This race's flags, ie 'hidden,etc
         war3 panorama_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 panorama_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 panorama_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
         war3 spider_minlevel "250"             //Minimum level for race
         war3 spider_accessflag "0"             //Admin access flag required for race
         war3 spider_raceorder "1300"           //This race's Race Order on changerace menu
         war3 spider_flags ""                   //This race's flags, ie 'hidden,etc
         war3 spider_restrict_items ""          //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 spider_team1_limit "99"           //How many people can play this race on team 1 (RED/T)
         war3 spider_team2_limit "99"           //How many people can play this race on team 2 (BLU/CT)
         war3 vagabond_minlevel "310"           //Minimum level for race
         war3 vagabond_accessflag "0"           //Admin access flag required for race
         war3 vagabond_raceorder "1600"         //This race's Race Order on changerace menu
         war3 vagabond_flags ""                 //This race's flags, ie 'hidden,etc
         war3 vagabond_restrict_items ""        //Which items to restrict for people on this race. Separate by comma, ie 'claw,orb'
         war3 vagabond_team1_limit "99"         //How many people can play this race on team 1 (RED/T)
         war3 vagabond_team2_limit "99"         //How many people can play this race on team 2 (BLU/CT)
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #3 on: December 15, 2010, 05:51:52 PM »

war3_racelimit_enable "0" //Should race limit restrictions per team be enabled
war3_savexp "1" //
war3_set_race_on_join "1" //
Logged

DarkEnergy
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #4 on: December 15, 2010, 06:54:36 PM »

Ah I see, I need to totally disable the race limiter for all races. While I do not limit any races now I do plan to in the future so I guess I will just leave it alone for now.

Is there any way you could make it in the future so that your race is automatically set to your last used race and then just prompt the menu if that race has already reached its limit.

For example here is how it could process:

User joins game
Check for users last used race
if(users last race=<max allowed) {set user to that race}
else{do not set user race and prompt user for race}
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!