Skip to content

Minor improvements and optimizations to the Darkness nade effect

terencehill requested to merge terencehill/nades_stuff into master

Features:

  • Define a proper sound when the player enters the darkness field (plays on the Pain audio channel)
  • Fade the darkness effect in and out (triggered by simply being inside or outside of the darkness field)

Optimizations:

  • Simplify code
  • Avoid drawing another useless color flash together with the darkness effect
  • Optimize MUTATOR_HOOKFUNCTION(cl_nades, EditProjectile) when nades aren't enabled (saves a Nade_FromProjectile call for every projectile fired)
Edited by terencehill

Merge request reports