mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Decoupled hook type 2 of HOOK_AMMOCOST from CheckWeaponAmmoCost
Edits to documents to reflect the hook change. Changed CheckWeaponAmmoCost to be enabled by default. Updated version number.
This commit is contained in:
@@ -297,7 +297,7 @@
|
||||
doc: |
|
||||
Runs when calculating ammo cost for a weapon. Doesn't affect damage, only how much ammo is spent.<br>
|
||||
By default, a weapon can perform an attack with at least one ammo, regardless of ammo cost calculation.<br>
|
||||
To add proper check for ammo before attacking and proper calculation of the number of burst rounds (hook type 1 and 2 in `arg3`), set **CheckWeaponAmmoCost=1** in **Misc** section of ddraw.ini.
|
||||
To add proper checks for ammo before attacking (hook type 1 `arg3`), set **CheckWeaponAmmoCost=1** in **Misc** section of ddraw.ini.
|
||||
|
||||
__NOTE:__ The return value must be greater than or equal to 0 to be valid.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user