Backported a new mode of metarule2_explosions from 4.0.

This commit is contained in:
NovaRain
2018-10-17 22:30:07 +08:00
parent c05babeda7
commit 5eda8dd7a0
7 changed files with 52 additions and 22 deletions
@@ -231,6 +231,10 @@ was made as a dirty easy hack to allow dynamically change some explosion paramet
> void set_attack_is_explosion_fire
- if you call this right before using a weapon with fire damage type, it will produce explosion effects (and radius damage) just like "explosion" type, but all targets will still receive fire damage.
> void set_explosion_radius(grenade, rocket)
- sets a permanent radius of the explosion for grenades and/or rockets. Passing 0 means not changing the corresponding radius.
- changed radius will be reset each time the player reloads the game.
Some utility/math functions are available: