Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_damage_hook.c File Reference
#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>
Include dependency graph for sf_damage_hook.c:

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