Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_onhit_hook.c File Reference
#include "sf_onhit_hook.h"
#include "../sf_wrappers.h"
#include "../sf_hooks.h"
#include "../sf_modloader.h"
#include "../../registry/spell_data_registries/sf_onhit_registry.h"
#include "../../registry/sf_mod_registry.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <list>
#include <utility>
Include dependency graph for sf_onhit_hook.c:

Go to the source code of this file.

Typedefs

typedef uint16_t(__thiscall * get_reduced_damage_ptr) (void *AutoClass34, uint16_t source_index, uint16_t target_index, uint16_t unkn)
 
typedef uint16_t(__thiscall * get_reduced_building_damage_ptr) (void *AutoClass32, uint16_t source_index, uint16_t target_index, uint16_t damage)
 
typedef uint16_t(__thiscall * get_hit_chance_ptr) (void *AutoClass34, uint16_t source_index, uint16_t target_index)
 
typedef void(__thiscall * FUN_006c3a60_ptr) (void *AutoClass30, uint16_t source_index, uint16_t target_index, uint8_t unkn, uint32_t unkn2)
 
typedef uint32_t(__thiscall * FUN_0071d7b0_ptr) (void *CGdObject, uint16_t object_index)
 
typedef uint32_t(__thiscall * FUN_00755180_ptr) (uint32_t param1)
 
typedef uint32_t(__thiscall * objectDealDamage_ptr) (void *CGdObjectToolBox, uint16_t source_index, uint16_t target_index, uint16_t damage, uint32_t unknown)
 
typedef uint32_t(__thiscall * getWeaponEffects_ptr) (void *CGdResource, uint32_t *param1, uint16_t weapon_id)
 

Functions

uint16_t __thiscall getCurrentDex (SF_CGdFigure *_this, uint16_t figure_index)
 
uint16_t __thiscall getCurrentInt (SF_CGdFigure *_this, uint16_t figure_index)
 
uint16_t get_effect_chance (uint16_t dex_val, uint16_t int_val, uint16_t spell_line)
 
void initialize_onhit_data_hooks ()
 
void __thiscall getTargetData (AutoClass24 *_this, SF_CGdTargetData *target)
 
bool isJobDoNothing (uint16_t job_id)
 
bool __thiscall isFigureJobSpell (SF_CGdFigureJobs *_this, uint16_t figure_id)
 
bool __thiscall canJobBeInterrupted (FigureJobs job_id)
 
uint16_t __thiscall getAttackInterruptionChance (SF_CGdFigure *_this, uint16_t source_index, uint16_t target_index)
 
uint16_t __thiscall handle_riposte_set (SF_CGdFigureJobs *_this, uint16_t source_index, uint16_t target_index, uint16_t weapon_damage)
 
uint16_t __thiscall handle_berserk_set (SF_CGdFigureJobs *_this, uint16_t source_index, uint16_t target_index, uint16_t weapon_damage)
 
uint16_t __thiscall handle_trueshot_set (SF_CGdFigureJobs *_this, uint16_t source_index, uint16_t target_index, uint16_t weapon_damage)
 
void __thiscall sf_onhit_hook (SF_CGdFigureJobs *_this, uint16_t source_index, uint32_t param_2, uint8_t param_3)
 

Variables

get_reduced_damage_ptr g_get_reduced_damage
 
get_hit_chance_ptr g_get_hit_chance
 
FUN_006c3a60_ptr g_FUN_006c3a60
 
get_reduced_building_damage_ptr g_get_reduced_building_damage
 
FUN_0071d7b0_ptr g_FUN_0071d7b0
 
FUN_00755180_ptr g_FUN_00755180
 
objectDealDamage_ptr g_objectDealDamage
 
getWeaponEffects_ptr g_getWeaponEffects