Difference between revisions of "Modding"
Splittingred (Talk | contribs) (→Files) |
Splittingred (Talk | contribs) (→Files) |
||
Line 5: | Line 5: | ||
== Files == | == Files == | ||
* Base/Rules/MODE/[[gamemode.cfg]] | * Base/Rules/MODE/[[gamemode.cfg]] | ||
+ | * Base/Rules/MODE/[[MapCycle.cfg]] | ||
== gamemode.cfg == | == gamemode.cfg == |
Revision as of 06:24, 8 January 2013
Additional content needs to be added.
Modding in KAG currently takes the form of editing many text files and changing the variables to your liking, as such, it is sort of limited. The main files you will be editing are called Config files(.cfg).
Files
- Base/Rules/MODE/gamemode.cfg
- Base/Rules/MODE/MapCycle.cfg
gamemode.cfg
break_time & break_time_static These are used to control the build phase, regular break time varies based on how many people are in the server at map start, and break time static is a fixed non-changing amount.
minimum_players_inteam This controls the amount of players needed to start the game, if not reached it will say
autoassign_teams Auto assigning teams mean that it will force the player onto the team with fewer players on connect, turning it off will let the player choose.
autoassign_classes Forces the default class (class 0) on the player at respawn.
playerrespawn_seconds Determines how long it takes to respawn after a death, lower respawn times tend to cause stalemates in CTF.
nearspawn_multiplier Multiplies the respawn timer if close to the tent or outpost on death, helps to ends stalemates in unlimited unit count servers.
death_points Points gained on death, use negative values for subtracting points.
kill_points Points gained on killing another player.
selfkill_points Points gained on killing yourself, falling into a bottomless pit, using cyanide, or jumping on spikes fall under this category.
attackdamage_modifier Changes how much damage all of the classes do.
falldamage_modifier Determines fall damage, setting to 0 will disable it.
falldamage_threshold & falldamage_constant changes the distance needed to enter stun, and then damaging states while falling.
friendlydamage_modifier Modifies the amount of damage that bombs and arrows do to team mates.
itempick_mode Enables picking up of objects like the flag.
Auto-Update
It is very important that you remember to create new folders for your mods, or else all your hard work will be overwritten when the game is automatically updated. This process checks for any files that are different from the update server and updates them to match the update server, including your mods.
Making_a_Gamemode
Depending on the type of gamemode you want to make the amount of skills in coding can range from Beginner to Expert. You would want to start off working with the rules a bit so you can get the hang of it. Then you could move to making rooms and functions. There are various guides on modding in the forum. One link to all of the guides is here: [1].
Dedicated_autostart
Say you wanted to create your own gamemode, and going by the above, you make a new folder for it so auto-update doesn't write over your settings. Now you're wondering how to make the server load it right?
Let's say the new folder you made is named Zombie_Hardmode, go into your scripts folder, and look for the file named dedicated_autostart.gm. Once you open it look for a line similar to this "LoadRules("Rules/Zombie_Survival/gamemode.cfg");" You're going to want to change the filepath so that it matches your new folder: "LoadRules("Rules/Zombie_Hardmode/gamemode.cfg");".
If you're using a custom mapcycle as well, you should do the same for it in this line "LoadMapCycle( "Scripts/ZombieMapCycle.cfg" );"