Skip to content
Permalink
Browse files

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
  • Loading branch information...
isRyven authored and rmarquis committed Apr 8, 2019
1 parent 4855464 commit e9e3364033a82360caa134389286b5e22c86962c
Showing with 471 additions and 151 deletions.
  1. +1 −1 src/game/g_local.h
  2. +453 −90 src/game/g_lua.c
  3. +3 −1 src/game/g_lua.h
  4. +14 −59 src/game/g_weapon.c
@@ -2705,7 +2705,7 @@ void G_MapVoteInfoRead(void);

// g_misc flags
#define G_MISC_SHOVE_NOZ BIT(0)
#define G_MISC_MEDIC_SYRINGE_HEAL BIT(1)
// BIT(1) unused
#define G_MISC_ARTY_STRIKE_COMBINE BIT(2)
#define G_MISC_CROSSHAIR_DYNAMITE BIT(3)
#define G_MISC_CROSSHAIR_LANDMINE BIT(4)
Oops, something went wrong.

0 comments on commit e9e3364

Please sign in to comment.
You can’t perform that action at this time.