Fallout 2 mod hs_calcapcost

Discussion in 'Fallout General Modding' started by Nirran, Oct 13, 2018 at 12:51 AM.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    hello i want to alter ap costs for reload and burst when dude is using small guns

    i assunme that reload isnt present in this hook script,or am i wrong?

    and hook readme says :
    Code:
    You can get the weapon object by checking item slot based on attack type (ATKTYPE_LWEP1, ATKTYPE_LWEP2, etc) and then calling critter_inven_obj().
    can someone post an example? i need the pid_obj for the weapon used

    have this for starters
    Code:
              if (attack_type == ATKMODE_PRI_BURST) then begin
                 weapon_used := obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_RIGHT_HAND);
              end else if(attack_type == ATKMODE_SEC_BURST) then begin
                 weapon_used := obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_LEFT_HAND);
              end
    is that correct?
     
    Last edited: Oct 13, 2018 at 1:17 AM
  2. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    "Reload" is also considered as one of the attack types.
    I posted an example based on F2WR's hs_calcapcost in the past.
     
  3. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    thnx nova