Reverted some changes in previous commit.

* Now weapons with knockback modifiers applied still stack with others
in the inventory.

Rewrote the code of set/remove_*_knockback functions in C++.
This commit is contained in:
NovaRain
2019-04-17 10:28:14 +08:00
parent 4cdc028cb7
commit 69e3faeb7d
7 changed files with 74 additions and 171 deletions
+6 -6
View File
@@ -122,9 +122,9 @@
0x8193 - int active_hand()
0x8194 - void toggle_active_hand()
0x8195 - void set_weapon_knockback(object weapon, int type, float value)
0x8196 - void set_target_knockback(object critter, int type, float value)
0x8197 - void set_attacker_knockback(object critter, int type, float value)
0x8195 - void set_weapon_knockback(object weapon, int type, int/float value)
0x8196 - void set_target_knockback(object critter, int type, int/float value)
0x8197 - void set_attacker_knockback(object critter, int type, int/float value)
0x8198 - void remove_weapon_knockback(object weapon)
0x8199 - void remove_target_knockback(object critter)
0x819a - void remove_attacker_knockback(object critter)
@@ -132,13 +132,13 @@
0x819d - void set_sfall_global(string/int varname, int/float value)
0x819e - int get_sfall_global_int(string/int varname)
0x819f - float get_sfall_global_float(string/int varname)
0x822d - int create_array(int elementcount, int flags)
0x822d - int create_array(int element_count, int flags)
0x822e - void set_array(int array, any element, any value)
0x822f - any get_array(int array, any element)
0x8230 - void free_array(int array)
0x8231 - int len_array(int array)
0x8232 - void resize_array(int array, int newelementcount)
0x8233 - int temp_array(int elementcount, int flags)
0x8232 - void resize_array(int array, int new_element_count)
0x8233 - int temp_array(int element_count, int flags)
0x8234 - void fix_array(int array)
0x8239 - int scan_array(int array, int/float var)
0x8256 - int array_key(int array, int index)