AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [L4D2] Spitter Projectile Include (https://forums.alliedmods.net/showthread.php?t=246931)

Mr. Zero 08-25-2014 04:11

[L4D2] Spitter Projectile Include
 
1 Attachment(s)
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(throwerFloat: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.


All times are GMT -4. The time now is 18:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.