Updated gl_compute_damage example script from 4.x

* with script-based YAAM implementation.

Sync header changes with develop branch.

Changed AttackSubType enum "GUNS" to "RANGED".
(to be in line with define_extra.h, the naming is from RE/CE.)
This commit is contained in:
NovaRain
2023-05-15 12:16:23 +08:00
parent 66c0ed8cb2
commit ff1c87f0c5
9 changed files with 199 additions and 62 deletions
+1
View File
@@ -267,6 +267,7 @@
#define weapon_attack_mode1(pid) (get_proto_data(pid, PROTO_FLAG_EXT) bwand 0x0000000F)
#define weapon_attack_mode2(pid) ((get_proto_data(pid, PROTO_FLAG_EXT) bwand 0x000000F0) / 0x10)
#define weapon_attack_mode(pid, attackType) (weapon_attack_mode1(pid) if (attackType == ATKTYPE_LWEP1 or attackType == ATKTYPE_RWEP1) else weapon_attack_mode2(pid))
/* SFALL_FUNCX MACROS */