themrdemonized / STALKER-Anomaly-modded-exes

STALKER Anomaly exe edits with patches by community
125 stars 26 forks source link

actor_on_weapon_fired #5

Open GhenTuong opened 2 years ago

GhenTuong commented 2 years ago

src\xrGame\WeaponMagazinedWGrenade.cpp

ifndef EXTENDED_WEAPON_CALLBACKS

    CGameObject* object = smart_cast<CGameObject*>(H_Parent());
    if (object)
        object->callback(GameObject::eOnWeaponFired)(object->lua_game_object(), this->lua_game_object(), iAmmoElapsed);

endif

Change #ifndef to #ifdef