20 lines
437 B
C++
20 lines
437 B
C++
#include "backend/looped_command.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) [[likely]]
|
|
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);
|
|
}
|