Commit Graph

17 Commits

Author SHA1 Message Date
luk3yx cd8e3f52da Don't show join message with chat3 2018-04-03 09:00:27 +12:00
luk3yx 72463866b3 Fake the leaveplayer and joinplayer events
Sends leaveplayer and joinplayer when players cloak/uncloak.
2018-04-03 08:28:09 +12:00
luk3yx 8adde253fa Override the on-join status
Overrides the status message on join and adds a . to the end of the fake join/part messages.
2018-04-02 14:32:32 +12:00
luk3yx 514fcdcfaa Override minetest.get_objects_inside_radius()
Overrides minetest.get_objects_inside_radius(), meaning meseconds player detectors and mesecons pressure plates do not activate on cloaked players.
2018-04-02 12:00:02 +12:00
luk3yx 46f70ce01e Disable chat while cloaked and allow some commands
Disables cloaked users sending chat messages and allows some commands to be run while cloaked. Sending chat messages will not be disabled with chat3 installed.
2018-04-02 11:30:47 +12:00
luk3yx 38552b207a Allow /me while cloaked
Adds the allow_while_cloaked parameter to /me.
2018-04-02 08:47:36 +12:00
luk3yx b5012c39b2 Add areas support
Change the areas HUD to "Cloaked" while cloaked if it exists.
2018-04-02 08:38:36 +12:00
luk3yx b91825abd1 Prevent chatcommands being executed while cloaked
Prevents chatcommands being executed while cloaked. Currently the best way of doing it is iterating over every command and modifying it. Mods may prevent this from happening by setting allow_while_cloaked in the chatcommand definition.
2018-04-02 08:01:04 +12:00
luk3yx 3df9c5cdd7 Override minetest.get_server_status()
Override minetest.get_server_status() instead of /status in a futile attempt to get the initial status message hiding cloaked players.
2018-04-02 06:57:11 +12:00
luk3yx e90e1d7583 More chat3 support
Adds auto-uncloak on message and /me and exposes cloaking.auto_uncloak().
2018-04-01 19:03:13 +12:00
luk3yx dc5cce34fb Add chat3 support
Override minetest.get_connected_players() and minetest.get_player_by_name() to return the real value when called from chat3.send(), so cloaked players can still use chat.
2018-04-01 18:40:31 +12:00
luk3yx e52a34b98a Change file structure
Split the main code and the chatcommands out into separate files.
2018-04-01 18:31:55 +12:00
luk3yx fa8a51b693 Override /status, formatting changes
Make /status hide cloaked players. However, when a player joins, they are still sent a list of players including cloaked players.
2018-04-01 16:14:29 +12:00
luk3yx 1008d05e94 Override minetest.get_player_by_name()
This makes the cloaking more effective by throwing player does not exist errors when you try and message/teleport to a cloaked player.
2018-04-01 15:51:30 +12:00
luk3yx 65e61441af Automatically uncloak on message
When a cloaked player says something, they are automatically uncloaked to avoid confusion. Players can now uncloak themselves without permissions.
2018-04-01 15:40:31 +12:00
luk3yx 2ee722d591 Add mod 2018-04-01 15:11:07 +12:00
luk3yx b79fbca296 Initial commit 2018-04-01 15:10:22 +12:00