Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
Conflicts: mods/other/random_messages/init.lua
This commit is contained in:
commit
b05cad5633
5 changed files with 19 additions and 9 deletions
|
@ -52,11 +52,11 @@ function random_messages.read_messages()
|
|||
"Use medkits to gradually restore your health.",
|
||||
"Moving or fighting while using medkits will interrupt the healing process.",
|
||||
"Knights have a slight damage bonus (up to 1.5 hp) when attacking with swords.",
|
||||
"Gain more score by killing more than you die, by healing teammates as a medic, or by capturing the flag.",
|
||||
"Gain more score by killing enemies, healing teammates as a medic, or by capturing the flag.",
|
||||
"You gain more score the better the opponent you defeat.",
|
||||
"Find weapons in chests or mine and use furnaces to make stronger swords.",
|
||||
"Players are immune to attack for 5 seconds after they respawn.",
|
||||
"Access the pro section of the chest by achieving a 10k+ score and either killing 3 people for every 2 deaths and capture the flag 10 times or killing as many people as you die, capturing the flag on every 3rd attempt and at least 30 times.",
|
||||
"Access the pro section of the chest by achieving a 10k+ score and either killing 3 people for every 2 deaths and capturing the flag 10 times or killing as many people as you die, capturing the flag on every 3rd attempt and at least 30 times.",
|
||||
"Use team doors (steel) to stop the enemy walking into your base.",
|
||||
"Craft 6 cobbles and 1 steel ingot together to make reinforced cobble.",
|
||||
"Sprint by pressing the fast key (E) when you have stamina.",
|
||||
|
@ -80,6 +80,7 @@ function random_messages.read_messages()
|
|||
"Hitting your enemy does more damage than not hitting them.",
|
||||
"Press right mouse button or double-tap the screen to activate scope while wielding a sniper rifle.",
|
||||
"Medics can dig pillars by right clicking the base of one with their paxel.",
|
||||
"Use `/help all` to see all available commands.",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -36,6 +36,13 @@ local function setSprinting(player, info, sprinting)
|
|||
end
|
||||
end
|
||||
|
||||
ctf_match.register_on_new_match(function()
|
||||
for pname in pairs(players) do
|
||||
local player = minetest.get_player_by_name(pname)
|
||||
players[player:get_player_name()].stamina = STAMINA_MAX
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_globalstep(function(dtime)
|
||||
for name, info in pairs(players) do
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = sprint
|
||||
depends = medkits, physics
|
||||
depends = medkits, physics, ctf_match
|
||||
optional_depends = hudbars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue