Topic: [MOD] TeeKing
Hello tees.
I want to present you a small mod TeeKing for teeworlds 0.6.1:
Description
One player is chosen to be a king. Only king can kill other players and get for this frags, but if the king was killed his killer will be a new king. Tee king is more powerful than other players, he shoots faster and has a multi jump. In addition, king has a different color of body, other tees is white.
Objects do not appear on the map. All players can use rifle or grenade or rifle and grenade. Weapons works like they works in insta.
For each murder player gets a one point (armor), after player collected ten point he becomes immortal for a few seconds - armor bar shows remaining time and color of his body shows that he is too dangerous for other tees.
If king committed suicide or for some other reason tees don't have a King, every tee will become a king. But there can be only one! Or the number that you wrote in cfg-file (teeking_king_number).
If you wrote a zero the LastKing mode will enable: all tees is starting as a kings, but they can only lose his crown. The last living king receives a prize.
I think that the mods with the same idea has already appeared, but i did not seeing they in current version of teeworlds.
More about gameplay (of old version of mode) in video by HeroiAmarelo
Server Variables
sv_gametype teeking
teeking_start_weaponts 1 - 0 for grenades, 1 for rifle, 2 for grenades and rifle
teeking_king_mj 8 - max number of jumps for king, between 0 and 50, -1 for unlimit
teeking_king_fs 1500 - firespeed, between 500 and 5000
teeking_tee_fs 1000 - firespeed, between 500 and 5000
teeking_king_im 10 - time of immortality for player, who collected a ten armor
teeking_king_number 1 - number of kings, -1 for everybody, 0 for mode LastKing
teeking_lastking_prize 5 - prize for last king, only if teeking_king_number = 0
teeking_KingKillKing_prize 5 - prize for king, who killed a king, work only if number of King players =< teeking_king_number
Source
I changed:
src/game/server/player.h
src/game/server/player.cpp - color of players and new variables
src/game/server/gamecontext.cpp - /info, /help and select gametype
src/game/server/gamecontroller.cpp - respawn of items and start weaponts
src/game/server/gamemodes/teeking.h
src/game/server/gamemodes/teeking.cpp - transform all players into kings and all king into regular tee
src/game/engine/shared/config_variables.h - config variables
src/game/server/entities/character.cpp - everything else
Downloads
I tried to write clear:
(new) Source + Linux x86 server + .cfg
(old) Source + Linux x86 server + Win32 server + .cfg
(old**2) Source + Linux x86 server + Win32 server
Thanks for some advice and compiling old version server for windows, KillaBilla.
If you find a bug, please, tell me.
I'm still working on grammar and punctuation in this post!