Skip to content

Commit

Permalink
DAM_HIT and DAM_CRITICAL are source only flags
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Dec 14, 2023
1 parent eaa3f62 commit 0755740
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### Version 12.15

- Really ensured that instant death criticals inflict at least 1 point of damage.

### Version 12.14

- Ensured that instant death criticals inflict at least 1 point of damage.
Expand Down
4 changes: 1 addition & 3 deletions source/gl_g_damage_mod.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
#define sec_damage_mod_ammo_dr "damage_mod_ammo_dr"
#define sec_damage_mod_ammo_type "damage_mod_ammo_type"

#define is_critical_hit(flags) ((flags bwand DAM_CRITICAL) != 0)
#define is_bypassing_armor(flags) ((flags bwand DAM_BYPASS) != 0)
#define flag_instadeath (DAM_HIT bwor DAM_CRITICAL bwor DAM_DEAD)
#define is_instadeath_hit(flags) ((flags bwand flag_instadeath) == flag_instadeath)
#define is_instadeath_hit(flags) ((flags bwand DAM_DEAD) != 0)

variable begin
old_total = 0, new_total = 0;
Expand Down

0 comments on commit 0755740

Please sign in to comment.