Ares
Defines | Functions

Hooks.Verses.cpp File Reference

#include "Body.h"

Defines

#define GET_VERSES(reg_wh, reg_armor)
#define FLD_VERSES(reg_wh, reg_armor)
#define FMUL_VERSES(reg_wh, reg_armor)

Functions

 DEFINE_HOOK (75DDCC, Verses_OrigParser, 7)

Define Documentation

#define FLD_VERSES (   reg_wh,
  reg_armor 
)
Value:
GET_VERSES(reg_wh, reg_armor) \
        __asm{ fld VS }; \
        return R->get_Origin() + 7;
#define FMUL_VERSES (   reg_wh,
  reg_armor 
)
Value:
GET_VERSES(reg_wh, reg_armor) \
        __asm{ fmul VS }; \
        return R->get_Origin() + 7;
#define GET_VERSES (   reg_wh,
  reg_armor 
)
Value:
GET(WarheadTypeClass *, WH, reg_wh); \
        GET(int, Armor, reg_armor); \
        WarheadTypeExt::ExtData *pData = WarheadTypeExt::ExtMap.Find(WH); \
        WarheadTypeExt::VersesData *vsData = &pData->Verses[Armor]; \
        double VS = vsData->Verses;

Function Documentation

DEFINE_HOOK ( 75DDCC  ,
Verses_OrigParser  ,
 
)
{
        // should really be doing something smarter due to westwood's weirdass code, but cannot be bothered atm
        // will fix if it is reported to actually break things
        // this breaks 51E33D which stops infantry with verses (heavy=0 & steel=0) from targeting non-infantry at all
        // (whoever wrote that code must have quite a few gears missing in his head)
        return 0x75DE98;
}
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines