Spellforce-Spell-framework
|
#include "sf_damage_hook.h"
#include "../sf_wrappers.h"
#include "../sf_hooks.h"
#include "../../registry/spell_data_registries/sf_spelldamage_registry.h"
#include "../../../api/sf_general_structures.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Functions | |
uint32_t | sf_deal_damage (SF_CGdFigureToolbox *figureToolbox, uint16_t dmg_source, uint16_t dmg_target, uint32_t damage_amount, uint32_t is_spell_damage, uint32_t is_ranged_damage, uint32_t vry_unknown_6) |
void | sf_damage_hook () |
Hook function for damage handling in the game. This function intercepts the call to deal damage and redirects it to a custom implementation while preserving the original behavior. | |
Variables | |
uint32_t | g_damage_return_addr |