View Single Post
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 06-05-2015 , 03:00   [Subplugin] Overlay-on-Kill
Reply With Quote

Here's an overlay-on-kill ability that someone was requesting:

PHP Code:
    "abilityX"
    
{
        
"name"            "overlay_on_kill"
        "arg0"            "4" 
// Slot. DO NOT CHANGE.
        
"arg1"            "freak_fortress_2/fazbear/puppetdeath" // path to overlay
        
"arg2"            "1" // Duration (0 to show overlay until round end)
        
"plugin_name"    "overlay_on_kill"
    

Installation:
  • overlay_on_kill.smx: rename to overlay_on_kill.ff2, then place in plugins>freaks folder
  • overlay_on_kill.sp: place in scripting>freaks folder

Changes
v1.1: Fixes "Client index 0 is invalid" errors.
v1.2: Fixed timer not firing for timed overlays
v1.3: Don't fire if victim has feigned death
v1.4: OnGameFrame -> PreThink
Attached Files
File Type: sp Get Plugin or Get Source (overlay_on_kill.sp - 752 views - 3.2 KB)
File Type: smx overlay_on_kill.smx (7.1 KB, 1002 views)
__________________

Last edited by 93SHADoW; 10-13-2015 at 15:03.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW