summaryrefslogtreecommitdiff
path: root/src/genericobject.h
diff options
context:
space:
mode:
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>2013-04-05 01:03:28 -1000
committerPilzAdam <pilzadam@minetest.net>2013-04-05 02:00:59 +0200
commitc5a8448c41e4ea9d33a43cebef61425d4568a46d (patch)
treebd612dd0d2b8e7589f14a2c403b423480af5798d /src/genericobject.h
parent2a0badf2d565ce4bebe2910c88795c0fe51a0341 (diff)
downloadminetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.tar.gz
minetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.tar.bz2
minetest-c5a8448c41e4ea9d33a43cebef61425d4568a46d.zip
Allow modifying movement speed, jump height and gravity per-player via the Lua API.
Diffstat (limited to 'src/genericobject.h')
-rw-r--r--src/genericobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genericobject.h b/src/genericobject.h
index 9a21baa67..276865ab9 100644
--- a/src/genericobject.h
+++ b/src/genericobject.h
@@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define GENERIC_CMD_SET_ANIMATION 6
#define GENERIC_CMD_SET_BONE_POSITION 7
#define GENERIC_CMD_SET_ATTACHMENT 8
+#define GENERIC_CMD_SET_PHYSICS_OVERRIDE 9
#include "object_properties.h"
std::string gob_cmd_set_properties(const ObjectProperties &prop);
@@ -62,6 +63,8 @@ std::string gob_cmd_punched(s16 damage, s16 result_hp);
#include "itemgroup.h"
std::string gob_cmd_update_armor_groups(const ItemGroupList &armor_groups);
+std::string gob_cmd_update_physics_override(float physics_override_speed, float physics_override_jump, float physics_override_gravity);
+
std::string gob_cmd_update_animation(v2f frames, float frame_speed, float frame_blend);
std::string gob_cmd_update_bone_position(std::string bone, v3f position, v3f rotation);