View Single Post
Blinx
Senior Member
Join Date: Oct 2013
Old 04-15-2016 , 09:05   [Subplugin] Temp Melee Weapon
Reply With Quote

Freak Subplugin: Temp Melee Weapon

A plugin to temporarily grant the boss a different melee weapon, and then give them back a different one at the end of the duration.

PHP Code:
    "abilityX"
    
{
        
"name"            "rage_tempMelee"

        "arg1"            "2 ; 3.0 ; 68 ; 2 ; 6 ; 0.5" 
//Temp melee attributes
        
"arg2"            "saxxy" //Temp melee classname
        
"arg3"            "1071" //Temp melee index

        
"arg4"            "10.0" //Duration

        
"arg5"            "2 ; 3.0 ; 68 ; 2" //Return melee attributes
        
"arg6"            "tf_weapon_fists" //Return melee classname
        
"arg7"            "5" //Return melee index

        
"plugin_name"     "ff2_tempMelee"
    

Installation:
  • Place ff2_tempMelee.smx in sourcemod\plugins\freaks and change the extension to .ff2
  • Place ff2_tempMelee.sp in sourcemod\scripting
Attached Files
File Type: smx ff2_tempMelee.smx (8.0 KB, 575 views)
File Type: sp Get Plugin or Get Source (ff2_tempMelee.sp - 470 views - 3.0 KB)
Blinx is offline