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/unlimited_oxygen.cpp

21 lines
449 B
C++
Raw Normal View History

#include "backend/looped_command.hpp"
#include "natives.hpp"
#include <ped/CPedIntelligence.hpp>
namespace big
{
class unlimited_oxygen : looped_command
{
using looped_command::looped_command;
virtual void on_tick() override
{
if (g_local_player)
g_local_player->m_ped_intelligence->m_oxygen_time = 0;
}
};
unlimited_oxygen g_unlimited_oxygen("infoxy", "UNLIMITED_OXYGEN", "UNLIMITED_OXYGEN_DESC", g.self.unlimited_oxygen);
}