15 Commits

Author SHA1 Message Date
1F616EMO~nya
2482e08065
Various fixes: ... (#7)
Some checks failed
luacheck / build (push) Has been cancelled
* `eye_offset` is redundant since Minetest Game PR#2745
* Translations are now using `@1` syntax instead of `%s` + `string.format`.
* Replaced some deprecated calls.
* Fixed reference to `emote.util.facedir_to_look_horizontal`.
2024-04-28 18:44:05 +02:00
fluxionary
7bdc2fa907
Add eye offset to emote (#6) 2022-11-06 11:21:17 +01:00
flux
402a6f07f5 automated luacheck 2022-06-19 16:28:06 +02:00
flux
39bbc7c3ad update mod for player_api 2022-06-19 16:28:06 +02:00
Auke Kok
3c39a8cded Default: writable interface used. 2017-03-08 21:22:40 -08:00
Auke Kok
4733a915ad Fix attempt to concatenate nil value for /stand animation.
Fixes an error attempting to send a chat msg to all players when
a player /stand's (which had no chat string).
2017-01-09 12:00:49 -08:00
Auke Kok
cd0fab6d54 Use chat when issuing an /emote.
This informs everyone in chat that you've /sit etc.
2016-12-16 21:56:26 -08:00
Auke Kok
0c3b1c9a89 Courtesy screenshot. 2016-12-16 21:48:38 -08:00
Auke Kok
a8029f8a7d Add example code for sitting on stairs. 2016-12-16 21:43:58 -08:00
Auke Kok
f6c6a9d4b9 Add node attachment locking.
Uses an entity to prevent player from moving away. Only `space` will
allow the player to move again. The player is put on top of the node
when detaching. While attached, the player can't move and the player
model can not rotate.
2016-12-16 21:40:05 -08:00
Auke Kok
268f53e826 Add API doc for node attachment. 2016-12-16 00:07:30 -08:00
Auke Kok
b5c750109a Create API for attaching to nodes and entities.
This allows easy attaching to nodes with an nodedef table `emote`
that provides the basic params for the attachment.

In the current form, the player can move away still without
restraint. I intend to add more code later that allows one to prevent
moving away.
2016-12-16 00:01:22 -08:00
Auke Kok
25d80f000e Follow the API spec and return true here. 2016-12-15 22:02:45 -08:00
Auke Kok
0b78cb5c54 Add luacheckrc 2016-12-15 17:08:16 -08:00
Auke Kok
80af2c68f9 Initial Checkin. 2016-12-15 16:41:24 -08:00