Raised This Month: $51 Target: $400
 12% 

[L4D2] Spitter Projectile Include


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 08-25-2014 , 04:11   [L4D2] Spitter Projectile Include
Reply With Quote #1

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.
Attached Files
File Type: zip spitterprojectile_release.zip (22.9 KB, 136 views)

Last edited by Mr. Zero; 08-25-2014 at 08:11.
Mr. Zero is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:44.


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