Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ------------------ C_game Hooks ------------------ */
- MafiaSDK::C_game_Hooks::Hook_Init([&](MafiaSDK::C_game* game) {
- printf("Game init\n");
- });
- MafiaSDK::C_game_Hooks::Hook_Tick([&](MafiaSDK::C_game* game, float dt) {
- printf("Game tick: %f\n", dt);
- });
- MafiaSDK::C_game_Hooks::Hook_Done([&](MafiaSDK::C_game* game) {
- printf("Game done\n");
- });
- /* ------------------ C_human Hooks ------------------ */
- MafiaSDK::C_human_Hooks::Hook_Do_Reload([](MafiaSDK::C_human* human) {
- printf("Human: [0x%X] reloaded weapon !\n", (DWORD)human);
- });
- MafiaSDK::C_human_Hooks::Hook_Do_Holster([](MafiaSDK::C_human* human) {
- printf("Human: [0x%X] holstered weapon !\n", (DWORD)human);
- });
- MafiaSDK::C_human_Hooks::Hook_Do_Shoot([](MafiaSDK::C_human* human, BOOL shooting, S_vector* screenSpace) {
- if(screenSpace != nullptr)
- printf("Human: [0x%X] shooting %d, %X !\n", (DWORD)human, shooting, (DWORD)screenSpace);
- });
- MafiaSDK::C_human_Hooks::Hook_Do_ThrowGrenade([](MafiaSDK::C_human* human, S_vector pos) {
- printf("Human: [0x%X] throw grenade at: %f %f %f\n", (DWORD)human, pos.x, pos.y, pos.z);
- });
- MafiaSDK::C_human_Hooks::Hook_Hit([](MafiaSDK::C_human* human, int hitType, const S_vector& unk1, const S_vector& unk2, const S_vector& unk3, float damage, MafiaSDK::C_actor* atacker, DWORD hittedPart, MafiaSDK::I3D_frame* targetFrame) -> int {
- printf("Human: [0x%X] got hit by %X, ang got %f damage!\n", (DWORD)human, (DWORD)atacker, damage);
- return 0;
- });
- MafiaSDK::C_human_Hooks::Hook_Use_Actor([](MafiaSDK::C_human* human, MafiaSDK::C_actor* actor, int arg1, int arg2, int arg3) {
- printf("Human: [0x%X] used actor: %X (%d, %d, %d)\n", (DWORD)human, (DWORD)actor, arg1, arg2, arg3);
- });
- MafiaSDK::C_human_Hooks::Hook_Do_ThrowCocotFromCar([](MafiaSDK::C_human* human, MafiaSDK::C_car* car, int seatId) {
- printf("Human: [0x%X] is throwing fagot from %X at seat %d\n", (DWORD)human, (DWORD)car, seatId);
- });
- MafiaSDK::C_human_Hooks::Hook_SetPoseNormal([](MafiaSDK::C_human* human, S_vector pose) {
- auto localPlayer = MafiaSDK::GetMission()->GetGame()->GetLocalPlayer();
- if (localPlayer == human)
- {
- printf("Your pose is: %f %f %f\n", pose.x, pose.y, pose.z);
- }
- });
- MafiaSDK::C_human_Hooks::Hook_SetPoseAimed([](MafiaSDK::C_human* human, S_vector pose) {
- auto localPlayer = MafiaSDK::GetMission()->GetGame()->GetLocalPlayer();
- if (localPlayer == human)
- {
- printf("Your aim pose is: %f %f %f\n", pose.x, pose.y, pose.z);
- }
- });
- /* ------------------ C_human Hooks ------------------ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement