View Single Post
jasonfrog
Senior Member
Join Date: Mar 2008
Old 05-05-2013 , 07:44   [Subplugin] Replace Projectile v1.0.2 (2013/05/08)
Reply With Quote

Replace Projectile (Latest Version: v1.0.2)

This plugin allows the replacement and scaling of Boss projectiles.

Installation:
  • ff2_replaceprojectile.ff2 -> plugins/freaks/
  • ff2_replaceprojectile.sp -> scripting/

Replace Projectile
PHP Code:
    "abilityX"
    
{
        
"name"         "replace_projectile"
        "arg1"         "tf_projectile_rocket"   
//name of the projectile to replace the model of
        
"arg2"         "models/props_halloween/eyeball_projectile.mdl"   //replacement model
        
"arg3"         "2.0"  //model scale
        
"plugin_name"  "ff2_replaceprojectile"
    

  • arg1 is the name of the projectile entity to be replaced, e.g. tf_projectile_rocket, tf_projectile_pipe, tf_projectile_stun_ball see https://developer.valvesoftware.com/...ess_2_Entities for a full list.
  • All custom models and materials need to be added to the mod_download, mat_download and download tables, where applicable, in the Boss config.
  • If arg3 is not present, then default size is used.
In the example above, rockets are replaced with Monoculus eyeballs scaled to twice normal size.


ChangeLog:
v1.0.2: Added timer before changing projectile model values. (Thanks again friagram)
v1.0.1: Improved the collision of projectiles. Block negative scale values. (Thanks friagram!)
v1.0: Initial release.
Attached Files
File Type: sp Get Plugin or Get Source (ff2_replaceprojectile.sp - 894 views - 2.4 KB)
File Type: smx ff2_replaceprojectile.smx (5.2 KB, 1099 views)

Last edited by jasonfrog; 05-08-2013 at 08:49. Reason: Updated to v1.0.2
jasonfrog is offline