Author Topic: Map Specifications  (Read 3962 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Map Specifications
« on: January 04, 2008, 10:08:56 pm »
Script Name:Map Specifications
Script Description:Quick and "easy" way to mod your server with a bunch of mini modifications... A list is available below..
Original Author:Curt
Core Version:2.6.3
This is a remake of my Weapons Limiter.

There are these "groups". Each group gets settings, and a list of maps to run the settings on. Group 0 is for any unlisted maps, so DO NOT add any maps to group 0.

Quote from: Contents
Enable/Disable flags (ability to pickup flags)
Active/Inactive/Ignore Weapons allowed for each team (0-4)
Allow/Disallow people to pickup disallowed weapons (goes with above)
Team balancer (*look below) (0-5)
Damage hit/deal multipliers for each team (0-4)
Startup commands when the map first starts
Welcoming messages for people who join

Quote from: *
-1 = Players are not allowed on this team
0 = No balancing, but allowed on this team
1+ = Ratio to other teams
Ex: from teams 0 to 5, balance numbers being -1, 2, 3, -1, -1, 0 means nobody can join dm team, charlie, nor delta; anybody can join spectator; and the ratio of people in alpha to bravo team is 2:3 (so when there are 6 alphas, there should be 9 bravos)

Quote from: Example: Zombie
[Groups]
GHigh=1

G0DisableFlags=false
G0IgnoreWeapons=true
G0T0Weapons=11111111111111
G0T0AllowPickup=true
G0T0Balance=-1
G0T0DealDmgMtp=1
G0T0RecvDmgMtp=1
G0T1Weapons=11111111111111
G0T1AllowPickup=true
G0T1Balance=1
G0T1DealDmgMtp=1
G0T1RecvDmgMtp=1
G0T2Weapons=11111111111111
G0T2AllowPickup=true
G0T2Balance=1
G0T2DealDmgMtp=1
G0T2RecvDmgMtp=1
G0T3Weapons=11111111111111
G0T3AllowPickup=true
G0T3Balance=-1
G0T3DealDmgMtp=1
G0T3RecvDmgMtp=1
G0T4Weapons=11111111111111
G0T4AllowPickup=true
G0T4Balance=-1
G0T4DealDmgMtp=1
G0T4RecvDmgMtp=1
G0T5Balance=0
G0CHigh=2
G0C1=loadwep weapons
G0C2=say No mod available on this map
G0WHigh=1
G0W1=Welcome! No mod on this map.

G1MHigh=1
G1M1=ctf_*
G1M1Style=mask
G1DisableFlags=true
G1IgnoreWeapons=false
G1T0Weapons=00000000001000
G1T0AllowPickup=false
G1T0Balance=-1
G1T0DealDmgMtp=0
G1T0RecvDmgMtp=10
G1T1Weapons=11111101101100
G1T1AllowPickup=false
G1T1Balance=0
G1T1DealDmgMtp=1
G1T1RecvDmgMtp=10
G1T2Weapons=00000000000010
G1T2AllowPickup=false
G1T2Balance=0
G1T2DealDmgMtp=10
G1T2RecvDmgMtp=0.25
G1T3Weapons=00000000001000
G1T3AllowPickup=false
G1T3Balance=-1
G1T3DealDmgMtp=0
G1T3RecvDmgMtp=10
G1T4Weapons=00000000001000
G1T4AllowPickup=false
G1T4Balance=-1
G1T4DealDmgMtp=0
G1T4RecvDmgMtp=10
G1T5Balance=0
G1CHigh=2
G1C1=loadwep zombies
G1C2=say Zombies! Alpha for humans; Bravo for zombies
G1WHigh=1
G1W1=Welcome to ZOMBIES! Alpha=humans; Bravo=zombies

Quote from: Creating your own data
[Groups]
GHigh=1 ;the number of groups there are (excluding 0)

G1MHigh=1 ;number of maps to check for show as G#M#=...
G1M1=ctf_* ;the map's name; when G#M#Style=exact, it checks for the exact name; =mask, * and ? wildcards added; and =regexp, for those who know regular expressions (you should have it starting and ending characters, i forget what they are atm though)
G1M1Style=mask ;used to determine what type of check to check G#M# for; possible values: exact, mask, regexp
G1DisableFlags=false ;when false, doesn't allow flags to be grabbed
G1IgnoreWeapons=true ;basically ignores G#T#Weapons=... (in case you have another script which uses SetWeaponActive)
G1T0Weapons=11111111111111 ;allows for all 14 menu weapons to be used (in order, left to right, item numbers, 1-14; )
G1T0AllowPickup=true ;lets people pickup not-allowed weapons as shown in G#T#Weapons=... being 1=allowed, 0=not allowed
G1T0Balance=-1 ;balance number, *look above
G1T0DealDmgMtp=1 ;multiplier of damage the enemy receives
G1T0RecvDmgMtp=1 ;multiplier of damage you receive
G1T1Weapons=11111111111111
G1T1AllowPickup=true
G1T1Balance=1
G1T1DealDmgMtp=1
G1T1RecvDmgMtp=1
G1T2Weapons=11111111111111
G1T2AllowPickup=true
G1T2Balance=1
G1T2DealDmgMtp=1
G1T2RecvDmgMtp=1
G1T3Weapons=11111111111111
G1T3AllowPickup=true
G1T3Balance=-1
G1T3DealDmgMtp=1
G1T3RecvDmgMtp=1
G1T4Weapons=11111111111111
G1T4AllowPickup=true
G1T4Balance=-1
G1T4DealDmgMtp=1
G1T4RecvDmgMtp=1
G1T5Balance=0 ;only balance is available for spec team
G1CHigh=2 ;number of commands to look for when the map first starts (listed below as G#C#=...)
G1C1=loadwep weapons ;the command to run when the map first starts
G1C2=say No mod available on this map
G1WHigh=1 ;number of welcome messages to look for when a player joins
G1W1=Welcome! No mod on this map. ;the message to send to the player when they first join

Note: Do not set G#T#Weapons=00000000000000; will cause the players to have an empty weapons menu and not be able to get out of it.

Note: Bots may not always follow the balancer's "needs"

When it comes to the format of the data, it will probably change in the future... I may implement in the future the ability to run a function/procedure in a specified script when the map changed/some1 joined (good for running custom commands...)

When it comes to errors, if it didn't load the data properly, the script won't work properly..

Please note of any bugs found, and if possible, what caused them, or what was happening when it happened

version 2 is in construction, with new features, and better ease of use:
-mapconfig.ini to specify which maps read from what file
-autoloads correct file specified in mapconfig.ini according to the map
-balancer supporting priorities and maxplayers (main reason for v2, made me realize that the ini file was messy)
-Ummm, everything else I included before
-Anything else I think of along the way

Have too many things to do.
« Last Edit: May 01, 2008, 05:17:59 am by DorkeyDear »

Offline miketh2005

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 668
  • What's the URL for www.microsoft.com?
Re: Map Specifications
« Reply #1 on: January 04, 2008, 11:12:33 pm »
thank you  even tho i wont be using it

Date Posted: January 04, 2008, 11:11:59 pm
hmmmmmm.... on second thought i can use this for my new gamemode.....
Quote from: 'Ando.' pid='12999178' dateline='1309046898'
My new password is secure as shit :)
Mate, I am not sure Shit is even secured nowadays.

Offline Chuck

  • Soldier
  • **
  • Posts: 121
  • Chuck P.
Re: Map Specifications
« Reply #2 on: January 05, 2008, 09:05:48 am »
thank you even tho i wont be using it

Date Posted: January 04, 2008, 11:11:59 pm
hmmmmmm.... on second thought i can use this for my new gamemode.....
Whats your gamemode gonna be?
And this looks nice, but i could never even THINK of using this 100% right, it looks SO complicated.

Good Job :D
Are you 9 years old? Or is that just your mental age.
Favorite Wepons:
Ruger, Spas, M79, Barret, Steyr, Chainsaw, LAW, and Knife.

Offline `FOX

  • Major(1)
  • Posts: 5
Re: Map Specifications
« Reply #3 on: January 05, 2008, 09:07:20 am »
thank you  even tho i wont be using it

Date Posted: January 04, 2008, 11:11:59 pm
hmmmmmm.... on second thought i can use this for my new gamemode.....
+1 !
Good job :]

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Map Specifications
« Reply #4 on: January 05, 2008, 12:28:07 pm »
yea, this is awesome, thanks a lot, ill be sure to use it :)

Offline Eclipse

  • Soldier
  • **
  • Posts: 210
  • :D
Re: Map Specifications
« Reply #5 on: January 05, 2008, 05:04:00 pm »
Awesome, Ty.
All teh Piezors Shall beh Minezors!

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Map Specifications
« Reply #6 on: March 24, 2008, 10:29:01 pm »
Fixed a major bug relating to the balancer.. you were forced to the fullest team instead of the smallest :P

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Map Specifications
« Reply #7 on: March 25, 2008, 07:12:09 am »
ahh nice :>
does the ratio balancing (2:1) also work now?
ill have to go through the entire config again so i didnt test it yet

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Map Specifications
« Reply #8 on: April 05, 2008, 08:35:41 am »
Due to not testing it other than the numbers being 1:1, it didn't work properly. I think I fixed it; post if you find an error.

Date Posted: March 25, 2008, 04:38:38 pm
I believe I finally fixed the balancer completely. Post if you find a bug.