mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Joint positioning and rotation code, and fix a problem related to their lua API
Attempt to move the animation system to a more correct implementation, rather than using object properties. Incomplete and breaks functionality
This commit is contained in:
committed by
Perttu Ahola
parent
fb0c431864
commit
ba4d93027f
@@ -92,6 +92,19 @@ std::string gob_cmd_set_sprite(
|
||||
return os.str();
|
||||
}
|
||||
|
||||
std::string gob_cmd_set_animations(int frame_start, int frame_end, float frame_speed, float frame_blend)
|
||||
{
|
||||
std::ostringstream os(std::ios::binary);
|
||||
// command
|
||||
writeU8(os, GENERIC_CMD_SET_ANIMATIONS);
|
||||
// parameters
|
||||
writeU16(os, frame_start);
|
||||
writeU16(os, frame_end);
|
||||
writeF1000(os, frame_speed);
|
||||
writeF1000(os, frame_blend);
|
||||
return os.str();
|
||||
}
|
||||
|
||||
std::string gob_cmd_punched(s16 damage, s16 result_hp)
|
||||
{
|
||||
std::ostringstream os(std::ios::binary);
|
||||
|
Reference in New Issue
Block a user