Bug #1246

Syringue looses ammo in some cases

Added by Spyhawk about 1 month ago. Updated about 1 month ago.

Status:Fixed% Done:

100%

Priority:UrgentSpent time:-
Assignee:-
Category:Mod generic
Target version:2.77
OS: Arch:

Description

After fixing the related #1202 issue, it seems syringe loses "ammo" when used:
  • on teammate that don’t need it;
  • on downed enemies.
  • maybe others?

Check that these cases are handled correctly. The ammo count shouldn’t decrease here.


Related issues

Related to ET: Legacy Development - Bug #1202: Ammo sharing of medic and adrenaline syringe Fixed 12.02.2019

Associated revisions

Revision e9e33640
Added by ryven about 1 month ago

game: fixed syringe ammo lost and expanded Lua API, refs #1246 #1238

  • externalized medic syringe healing feature to be implemented in Lua
    instead of C code
  • extended Lua API with new constants, and auxiliary functions
  • fixed bug when 1 syringe ammo was lost on failed healing/reviving
    attempt
  • fixed bug when Lua vm stack was uncontrollably growing after each hook
    callback call

History

#1 Updated by Spyhawk about 1 month ago

  • Related to Bug #1202: Ammo sharing of medic and adrenaline syringe added

#2 Updated by Spyhawk about 1 month ago

This is actually a very old issue, also present in 2.75.

#3 Updated by Spyhawk about 1 month ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF