This commit is contained in:
github-actions[bot]
2023-09-30 09:20:33 +00:00
parent 0bbf229b98
commit 58a8e70fad
63 changed files with 69 additions and 81 deletions
+1 -1
View File
@@ -372,7 +372,7 @@
},"53": {
"doc": "Hook types",
"title": "CalcAPCost",
"content": "HOOK_CALCAPCOST (hs_calcapcost.int) . Runs whenever Fallout is calculating the AP cost of using the weapon (or unarmed attack). Doesnt run for using other item types or moving. Note that the first time a game is loaded, this script doesnt run before the initial interface is drawn, so if the script effects the AP cost of whatever is in the players hands at the time the wrong AP cost will be shown. It will be fixed the next time the interface is redrawn. 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. Critter arg0 - The critter performing the action int arg1 - Attack Type (see ATKTYPE_* constants) int arg2 - Is aimed attack (1 or 0) int arg3 - The default AP cost Item arg4 - The weapon for which the cost is calculated. If it is 0, the pointer to the weapon can still be obtained by the aforementioned method int ret0 - The new AP cost . ",
"content": "HOOK_CALCAPCOST (hs_calcapcost.int) . Runs whenever Fallout calculates the AP cost of using an active item in hand (or unarmed attack). Doesnt run for moving. Note that the first time a game is loaded, this script doesnt run before the initial interface is drawn, so if the script effects the AP cost of whatever is in the players hands at the time the wrong AP cost will be shown. It will be fixed the next time the interface is redrawn. 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. Critter arg0 - The critter performing the action int arg1 - Attack Type (see ATKTYPE_* constants) int arg2 - Is aimed attack (1 or 0) int arg3 - The default AP cost Item arg4 - The weapon for which the cost is calculated. If it is 0, the pointer to the weapon can still be obtained by the aforementioned method int ret0 - The new AP cost . ",
"url": "/sfall/hook-types/#calcapcost",
"relUrl": "/hook-types/#calcapcost"