create fx component
This commit is contained in:
parent
6088963fbd
commit
b795ad3a75
22
src/client/component/fx.cpp
Normal file
22
src/client/component/fx.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include <std_include.hpp>
|
||||
#include "loader/component_loader.hpp"
|
||||
|
||||
#include "game/game.hpp"
|
||||
|
||||
#include <utils/hook.hpp>
|
||||
|
||||
namespace fx
|
||||
{
|
||||
class component final : public component_interface
|
||||
{
|
||||
public:
|
||||
void post_unpack() override
|
||||
{
|
||||
// skip "fx/" and "vfx/" name prefix checks
|
||||
utils::hook::set<uint8_t>(0xB34889_b, 0xEB); // Scr_LoadFx
|
||||
utils::hook::nop(0xD0FBFD_b, 2); // ParticleSystem_Register
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
REGISTER_COMPONENT(fx::component)
|
@ -312,9 +312,6 @@ namespace patches
|
||||
utils::hook::set<uint8_t>(0xC5A200_b, 0xC3);
|
||||
|
||||
utils::hook::set(0x6D5280_b, 0xC301B0); // NetConstStrings_IsPrecacheAllowed
|
||||
|
||||
// skip "fx/" and "vfx/" name prefix checks (move this to map_patches)
|
||||
utils::hook::set<uint8_t>(0xB34889_b, 0xEB); // Scr_LoadFx
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user