This was a request by
darktemplarr over in
[L4D2] Spit glob spawner plugin request thread.
An easy include file and some required gamedata. Provides 2 stock functions.
PHP Code:
/**
* Throws a spitter projectile as if a Spitter were using their ability.
*
* @param thrower Who is throwing the spitter projectile.
* @param initialVelocity Speed of the thrown spitter projectile.
* @return True if spitter projectile was thrown, false otherwise.
*/
stock bool:L4D2_ThrowSpitterProjectile(thrower, Float:initialVelocity = 900.0)
/**
* Creates a spitter projectile that will detonate upon hitting an entity.
*
* @param origin Origin of spitter projectile.
* @param angles Angles of spitter projectile.
* @param velocity Velocity of spitter projectile.
* @param thrower Who is throwing the spitter projectile.
* @return True if spitter projectile was created, false otherwise.
*/
stock bool:L4D2_CreateSpitterProjectile(Float:origin[3], Float:angles[3], Float:velocity[3], thrower)
Edit: Thanks to darktemplarr, we quickly got the Windows signature edited and fixed so it is confirmed to be working.