mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user