Commit Graph

330 Commits

Author SHA1 Message Date
Lizzy Fleckenstein 697a37c266
Make it look like the player is holding the map in their hand 2022-02-20 10:12:34 +01:00
cora 5deaabdb47
Fix player bone positions and properties setting
The comparison and setting logic in the previous patch that set player
bone positions and properties conditionally incorrectly did not update
some values (like player eye level position) when they changed. This
patch fixes it and adds asserts to ensure the code works as intended.
2021-12-09 04:53:45 +01:00
cora d77f31eab8
Only set/send player properties if necessary
Before this patch, Mineclonia set (and therefore sent) player bone
positions and player properties in every globalstep. This results in
about 30 TOCLIENT_ACTIVE_OBJECT_MESSAGE per second per player. This
patch adds conditional functions to set bone positions and properties.
The functions set values only when they have changed, reducing traffic.
2021-12-09 04:26:22 +01:00
Nils Dagsson Moskopp 10ce37d887
Fix server crash by client leaving after joining
When a player joins and immediately leaves the game before a function is
called by minetest.after() in mods/PLAYER/wieldview/init.lua, it gets an
invalidated player object. This results in the player methods returning
nil (since Minetest 5.2); perhaps surprisingly, the player is not nil.

Not checking that the result of player:get_pos() is not nil could lead
to a server crash if a client crashed when joining. It has been reported
that a syntax error in a client side mod was enough to trigger that.
2021-08-22 04:21:35 +02:00
Nils Dagsson Moskopp 275f0826ed
Send FOV packets only when necessary
Before this change, about 10 to 30 FOV packets were sent from the server
to each connected client each second. This patch only sends FOV packets
when the FOV actually needs to be changed, i.e. when the player starts
or stops sprinting.
2021-07-04 03:25:05 +02:00
Elias Åström 5d3514880a Move data from deprecated files to mod.conf
Move data from deprecated files (depends.txt and description.txt) into
fields in mod.conf for all mods.
2021-05-16 13:44:04 +02:00
Code-Sploit 83ade6fadd Merge branch 'master' into master 2021-02-28 14:04:10 +00:00
Code-Sploit 6ab0e0fa86 Do some calculating 2021-02-28 14:02:48 +00:00
epCode 9f66238aaa Transform mcl_meshhand_female.b3d to correct rotation 2021-02-27 11:36:18 -08:00
Code-Sploit 99b5dff849 Fix another bug 2021-02-27 16:13:05 +00:00
Code-Sploit de9d838642 Fix a bug and improve some things
Bugs:
1) When player is in liquid and takes off his/her boots, he/her still has increased speed.

Improve:
1) Check for liquid group instead of node names
2021-02-27 16:10:11 +00:00
Code-Sploit 828c1110b1 Implement Depth Strider enchantment 2021-02-27 15:37:25 +00:00
Lizzy Fleckenstein e5263d854e Localize player_vel_yaw 2021-02-27 15:10:25 +01:00
Lizzy Fleckenstein 5a0b7bc131 Fix usages of player:get_velocity(), closes #1203 2021-02-27 15:07:10 +01:00
Lizzy Fleckenstein ba1e42a638 Remove debug chat_send_all xD 2021-02-27 14:42:39 +01:00
epCode 2b513aa592 Change mcl_meshand depending on skin metadata 2021-02-26 15:01:30 -08:00
epCode 73616453a4 Fix #1188 2021-02-25 19:01:22 -08:00
epCode 3406342ed0 remove unessesary Message every time skin is changed 2021-02-25 13:38:02 -08:00
epCode 8f2a588059 Fix #1156 2021-02-25 12:27:14 -08:00
epCode fb5f86d829 Fix #1196 2021-02-25 12:07:25 -08:00
epCode 8c1444a1a8 Fix Swim toggling 2021-02-25 12:06:24 -08:00
Lizzy Fleckenstein d4401a6c3e Simplify 3D wielded nodes (improves performance + possibly fixes a crash) 2021-02-25 17:35:44 +01:00
epCode fbb79635eb Fix player body rotation glitch 2021-02-24 17:11:00 -08:00
kay27 3ceb2b0a4d Fix MineClone2/MineClone2#1160 2021-02-25 03:30:34 +04:00
epCode c1c3dbfaec Fix #1184 2021-02-24 15:21:05 -08:00
epCode d1fd3cc827 Add 3D wieldveiw for non-item objects 2021-02-24 13:20:31 -08:00
Lizzy Fleckenstein da606fa9d2 Add 3d wielded nodes (not functional until Right_Hand bone is added) 2021-02-24 12:58:30 +01:00
epCode 4334339ba3 Fix player head bone in while attached 2021-02-23 14:18:52 -08:00
epCode 9caf6f2904 Add more MC-like player body bone positioning 2021-02-22 18:48:09 -08:00
Lizzy Fleckenstein 152d49ef20 Fix #1167 2021-02-22 10:41:44 +01:00
epCode d8b5620115 Make head block detection more stable 2021-02-21 04:11:20 +00:00
epCode 38cb2fdeec Fix swimming crash (sorry) 2021-02-20 19:19:59 -08:00
epCode 98f6e05cdc Make swimming a bit smoother 2021-02-20 16:21:09 -08:00
epCode ecb70aaf55 Make player head anim while attached more flexible 2021-02-19 14:07:36 -08:00
AFCMS 4c3954959c replace pairs() by ipairs() in mcl_player 2021-02-18 15:32:15 +00:00
AFCMS 25653e6178 replace pairs() by ipairs() in mcl_playerinfo 2021-02-18 15:31:13 +00:00
AFCMS 0531aae687 replace pairs() by ipairs() in mcl_playerplus 2021-02-18 15:27:50 +00:00
AFCMS 2e2d0b49ea performance fix in mcl_skins 2021-02-18 15:07:37 +00:00
Lizzy Fleckenstein aeb7078c05 Update use_texture_alpha to the minetest 5.4 conventions 2021-02-18 14:00:17 +01:00
epCode 18a8d011a2 Sprinting anim, MC-like Player anims, Swimming detection 2021-02-17 15:17:12 -08:00
epCode a49e144911 Localize a couple variables 2021-02-17 02:51:33 +00:00
epCode c238fd9ba7 Set swiming detection to "node_feet" 2021-02-16 14:18:06 -08:00
epCode 24c14e7f15 Fix bow having weird hand placements while hitting and loading 2021-02-16 20:13:12 +00:00
Elias Fleckenstein 98b00898a5 Merge pull request 'Make player wield switch instant' (#1129) from Code-Sploit/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#1129
2021-02-16 12:40:55 +00:00
Code-Sploit 9cbfaf012e Make player wield switch instant 2021-02-16 12:34:26 +00:00
epCode 3b775c38cd Fix wrong numbers (Swaped)
My bad
2021-02-15 23:46:27 +00:00
epCode 164aad4ff9 Fix player glitches when standing by the water
Instead of making the player collisionbox smaller from the ground, I made it smaller from the top.
2021-02-15 16:59:24 +00:00
epCode 52c36d45da Remove Buggy Crawling for Fixing 2021-02-14 11:18:46 -08:00
epCode ba86cf1d8b Impliment crawling 2021-02-13 16:09:00 -08:00
epCode a9fe8d58e5 Add bow aiming animations 2021-02-12 09:16:08 -08:00