View Single Post
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 01-18-2016 , 12:26   Re: [BOSS] Epic Scout (update v1.0.1, critical fix!)
Reply With Quote

Here's a debug version of the Epic Scout subplugin, so you can check if any AMS-supported abilities are initializing properly, especially if you're making any new AMS-supported abilities. This is only actually useful if you're developing AMS-supported abilities.

You'll also want to modify your freak_fortress_2.inc file if you want the debug to output to a separate logfile:
Spoiler


Files attached:
  • ff2_sarysapub3.smx & ff2_sarysapub3.sp:
    • Debug-enabled build of the AMS_InitSubability stock
    • Requires 'ff2_debug' to be set to 1 to view debug output
  • ff2_ams.inc:
    • Include file containing the 2 important stocks for initializing an AMS-supported or AMS-only ability.
    • Be sure to add #include <ff2_ams> for subplugins that will have AMS support.
    • List of stocks:
      Spoiler
  • ff2_ams_sample.smx & ff2_ams_sample.sp:
    • Sample sub-plugin with a single AMS-supported ability.
    Code:
    "abilityX"
    {
    	"name"	"rage_text"
    	"arg1" "1" // 0 - Triggered normally, 1 - Triggered by AMS
    	"arg2" "{red}RUUUUUUUUUUUUUN, {blue}COWARDS!"
    		
    	// args reserved for the ability management system
    	"arg1001"	"0.0" // delay before first use
    	"arg1002"	"10.0" // cooldown
    	"arg1003"	"Text Taunt" // name
    	"arg1004"	"Prints a message to all clients" // description
    	"arg1005"	"0" // rage cost
    	"arg1006"	"0" // index for ability in the AMS menu
    	
    	"plugin_name"	"ff2_ams_sample"
    }
Attached Files
File Type: sp Get Plugin or Get Source (ff2_sarysapub3.sp - 430 views - 99.5 KB)
File Type: smx ff2_sarysapub3.smx (43.8 KB, 635 views)
File Type: sp Get Plugin or Get Source (ff2_ams_sample.sp - 869 views - 4.4 KB)
File Type: smx ff2_ams_sample.smx (12.8 KB, 1295 views)
File Type: inc ff2_ams.inc (3.2 KB, 533 views)
__________________

Last edited by 93SHADoW; 09-08-2020 at 00:44. Reason: v1.1, this fixes compile errors.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW