1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Allow modifying movement speed, jump height and gravity per-player via the Lua API.

This commit is contained in:
MirceaKitsune
2013-04-05 01:03:28 -10:00
committed by PilzAdam
parent 2a0badf2d5
commit c5a8448c41
14 changed files with 97 additions and 10 deletions

View File

@@ -101,7 +101,7 @@ private:
float m_last_sent_position_timer;
float m_last_sent_move_precision;
bool m_armor_groups_sent;
v2f m_animation_range;
float m_animation_speed;
float m_animation_blend;
@@ -257,8 +257,6 @@ private:
ItemGroupList m_armor_groups;
bool m_armor_groups_sent;
bool m_properties_sent;
struct ObjectProperties m_prop;
// Cached privileges for enforcement
@@ -285,6 +283,11 @@ public:
bool m_inventory_not_sent;
bool m_hp_not_sent;
bool m_wielded_item_not_sent;
float m_physics_override_speed;
float m_physics_override_jump;
float m_physics_override_gravity;
bool m_physics_override_sent;
};
#endif