Compare commits

..

9 commits

Author SHA1 Message Date
philipmi
ed65ddb6d0 Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
 Conflicts:
	mods/other/random_messages/init.lua
2021-03-22 11:25:11 +01:00
LoneWolfHT
1568de3449
Fix crash 2021-03-19 08:31:52 -07:00
dependabot-preview[bot]
9e844d8d71
Update Maps Submodule (#836)
Bumps [mods/ctf/ctf_map/ctf_map_core/maps](https://github.com/MT-CTF/maps) from `eb88118` to `bbf6007`.
- [Release notes](https://github.com/MT-CTF/maps/releases)
- [Commits](eb881181cc...bbf6007785)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-19 08:30:47 -07:00
LoneWolfHT
96147c7b97
Log /me command when used and fix bug 2021-03-18 19:03:07 -07:00
LoneWolfHT
ebd332a3c6
Appease luacheck 2021-03-18 17:48:21 -07:00
LoneWolfHT
e9f09c3587
Send /me output to IRC 2021-03-18 17:45:11 -07:00
_Lucy
92104db90f
Update random_messages (#833)
* Update init.lua

* Update init.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-03-17 08:34:32 -07:00
WINNIE
05fdcaa31e
Lower Paxel Cooldown (#832) 2021-03-17 08:26:58 -07:00
LoneWolfHT
36a6f4117a
Fix crash fix not fixing crash 2021-03-16 16:41:34 -07:00
5 changed files with 23 additions and 7 deletions

View file

@ -272,6 +272,8 @@ minetest.register_chatcommand("t", {
end
})
local function me_func() end
if minetest.global_exists("irc") then
function irc.playerMessage(name, message)
local color = ctf_colors.get_irc_color(ctf.player(name))
@ -286,6 +288,14 @@ if minetest.global_exists("irc") then
local bbrace = color .. ">" .. clear
return ("%s%s%s %s"):format(abrace, name, bbrace, message)
end
me_func = function(...)
local message = irc.playerMessage(...)
message = "*" .. message:sub(message:find(" "))
irc.say(message)
end
end
local handler
@ -313,6 +323,8 @@ end
table.insert(minetest.registered_on_chat_messages, 1, handler)
minetest.registered_chatcommands["me"].func = function(name, param)
me_func(name, param)
if ctf.player(name).team then
local tcolor = ctf_colors.get_color(ctf.player(name))
name = minetest.colorize(tcolor.css, "* " .. name)
@ -320,5 +332,7 @@ minetest.registered_chatcommands["me"].func = function(name, param)
name = "* ".. name
end
minetest.log("action", "[CHAT] "..name.." "..param)
minetest.chat_send_all(name .. " " .. param)
end

View file

@ -133,7 +133,7 @@ minetest.override_item("ctf_bandages:bandage", {
})
local diggers = {}
local DIG_COOLDOWN = 45
local DIG_COOLDOWN = 30
local DIG_DIST_LIMIT = 30
local DIG_SPEED = 0.1

View file

@ -74,8 +74,9 @@ check_grapple("shooter_hook:grapple_hook")
local old_grapple_step = minetest.registered_entities["shooter_hook:hook"].on_step
minetest.registered_entities["shooter_hook:hook"].on_step = function(self, dtime, ...)
-- User left the game. Life is no longer worth living for this poor hook
if not self.user then
if not self.user or not minetest.get_player_by_name(self.user) then
self.object:remove()
return
end
-- Remove entity if player has flag

@ -1 +1 @@
Subproject commit eb881181cc54c3dac444cfa91fa63baf1557d02f
Subproject commit bbf60077855ee90b95ca68f1b9bc853f7d53ecf2

View file

@ -60,7 +60,7 @@ function random_messages.read_messages()
"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.",
"Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate",
"Like CTF? Give feedback using /report, and consider joining the Discord",
"Want to submit your own map? Visit ctf.rubenwardy.com to get involved.",
"Using limited resources for building structures that don't strengthen your base's defences is discouraged.",
"To report misbehaving players to moderators, please use /report <name> <action>",
@ -72,13 +72,14 @@ function random_messages.read_messages()
"Use /r <number> or /rn <number> to check the rankings of the player in the given rank.",
"Use bandages on team-mates to heal them by 3-4 HP if their health is below 15 HP.",
"Use /m to add a team marker at pointed location, that's visible only to team-mates.",
"Use /summary to check scores of the current match and the previous match.",
"Use /mr to remove your marker.",
"Use /summary or /s to check scores of the current match and the previous match.",
"Use /maps to view the maps catalog. It also contains license info and attribution details.",
"Change your class in your base by right clicking the home flag or typing /class.",
"Medics cause troops within 10 metres to regenerate health faster.",
"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 or a rocket gun.",
"The 'Updates' tab in your inventory will show some of the latest updates to CTF",
"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.",
}
end