This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/backend/looped/self/part_water.cpp
maybegreat48 9ccb77e8eb
Add more spoofing options and added clang-format (#1020)
* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-03-01 21:27:15 +00:00

35 lines
679 B
C++

#include "backend/looped/looped.hpp"
#include "backend/looped_command.hpp"
#include "natives.hpp"
namespace big
{
class partwater : looped_command
{
using looped_command::looped_command;
virtual void on_tick() override
{
WATER::RESET_DEEP_OCEAN_SCALER();
Vector3 coords = self::pos;
float offset[] = {-4, 4};
for (int i = 0; i < 5; i++)
{
if (i < 2)
{
coords.x += offset[(i % 2 == 0)];
}
else if (i < 4)
{
coords.y += offset[(i % 2 == 0)];
}
WATER::MODIFY_WATER(coords.x, coords.y, 0.0f, 300.0f);
}
}
};
partwater g_partwater("partwater", "Part Water", "Makes you like Moses", g.world.water.part_water);
}