Skip to content

restore item_buff_speed and item_buff_invisibility spawnfuncs

Dr. Jaska requested to merge drjaska/spawnfunc-item_buff_name into master

As speed and invisibility buffs were made into powerups in !916 (merged) they lost their item_buff_name spawnfunctions from this macro:

	#define BUFF_SPAWNFUNC(e, b, t) spawnfunc(item_buff_##e) { \
		this.buffs = b.m_itemid; \
		this.team = t; \
		buff_Init(this); \
	}

I'm uncertain if this is enough to restore all of their lost properties but at least they spawn now.

Speed and invisibility were the only moved buffs from qcsrc/common/mutators/mutator/buffs/all.inc to qcsrc/common/mutators/mutator/powerups/powerup/{speed,invisibility}.{qc,qh} and be the only buffs powerups which need these spawnfuncs back.

Test map ez2 which spawns item_buff_speed right at the spawn

Merge request reports