mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Implement spawning particles with node texture appearance
This commit is contained in:
parent
15ba75e4cf
commit
9d6e7e48d6
10 changed files with 145 additions and 20 deletions
|
@ -1003,6 +1003,16 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt)
|
|||
p.glow = readU8(is);
|
||||
p.object_collision = readU8(is);
|
||||
|
||||
// This is kinda awful
|
||||
do {
|
||||
u16 tmp_param0 = readU16(is);
|
||||
if (is.eof())
|
||||
break;
|
||||
p.node.param0 = tmp_param0;
|
||||
p.node.param2 = readU8(is);
|
||||
p.node_tile = readU8(is);
|
||||
} while (0);
|
||||
|
||||
auto event = new ClientEvent();
|
||||
event->type = CE_ADD_PARTICLESPAWNER;
|
||||
event->add_particlespawner.p = new ParticleSpawnerParameters(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue