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

FF2 [Subplugin] War3 Ability Pack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Otokiru
Senior Member
Join Date: Apr 2012
Old 06-22-2012 , 01:58   [Subplugin] War3 Ability Pack
Reply With Quote #1

FF2 War3 Ability Pack. (Latest Version: v1.1)
Original idea & credits, War3Source Team. Teleport particle effects credits, FuncommandsX. Re-coded by Otokiru.

YouTube Preview:


Installation:
  • ff2_otokiru_wc3.ff2 -> addons/sourcemod/plugins/freaks/
  • ff2_otokiru_wc3.sp -> addons/sourcemod/scripting/
  • ALL sound files -> sound/war3source/
  • bZip sound files -> Your downloadURL server (Optional)

Ability Pack consist of:
  • <rage_name> <preferred hale class>
    • <ability details; where X = configurable>
  • Charge_OnWeightDown_Fix (Any)
    • Required if using this Ability Pack. More details below.
  • Entangle_Config (Any)
    • Gives hale X no. of Entangle Skills which allows the Hale to Entangle a player where he aiming at.
    • Entangled players cannot move for X no. of seconds.
  • Entangle_Activator (Any)
    • Required if using the Entangle Skill.
  • Teleport_Config (Any)
    • Gives hale X no. of Teleport Skills which allows the Hale to Teleport itself to the location he aiming at
    • within X distance.
  • Teleport_Activator (Any)
    • Required if using the Teleport Skill.
  • ChainLightning_Config (Any)
    • Gives hale X no. of ChainLightning Skills which allows the Hale to cast ChainLightning at the player he aiming
    • for X amount of damage and
    • within X UNKNOWN distance.
    • ChainLightning will continue to bounce on any nearby players.
  • ChainLightning_Activator (Any)
    • Required if using the ChainLightning Skill.
  • More coming, if I got the time. Sorry! > w <

Charge_OnWeightDown_Fix
  • Incase you did not notice, Demopan cannot use Weightdown because he have another "custom" button ability which is the Charge ability.
  • So this re-code is to allow multiple "custom" button executed on hale.
  • Improve WeightDown so hale will drop down faster.
  • Remove annoying Used WeightDown chat message.
  • Remove cooldown. So weightdown can be instantly used as long as the hale is above ground.

CFG Configs:
Replace ? with your last ability number. DUH!

Charge_OnWeightDown_Fix
PHP Code:
    "ability?" //Make sure you remove the previous weightdown ability.
    

        
"name" "charge_weightdown_fix" 
        "arg0"         "3"    
// Do not Change! (Activate when button is pressed.)
        
"plugin_name"    "ff2_otokiru_wc3" 
    

Entangle_Config
PHP Code:
    "ability?" 
    

        
"name" "entangle_config" 
        "arg1"         "3"    
// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton.)
        
"arg2"        "3"    // No. of Skills     (No. of skill to be given per rage. Will reset to this amount on every rage.)
        
"arg3"        "5.0"    // Entangle Time        (No. of seconds that will Entangle the entangled player.)
        
"plugin_name"    "ff2_otokiru_wc3" 
    

Entangle_Activator
PHP Code:
    "ability?" 
    

        
"name" "entangle_activator" 
        "arg0"    "3"    
// Do not Change! (Activate when button is pressed.)
        
"buttonmode" "2" // Do not Change! (Custom button is being used.)
        
"plugin_name"    "ff2_otokiru_wc3" 
    

Teleport_Config
PHP Code:
    "ability?" 
    

        
"name" "teleport_config" 
        "arg1"         "3"    
// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton.)
        
"arg2"        "5"    // No. of Skills     (No. of skill to be given per rage. Will reset to this amount on every rage.)
        
"arg3"        "9999.0"    // Teleport Distance    (No. of max distance that the hale can teleport to.)       
        
"plugin_name"    "ff2_otokiru_wc3" 
    

Teleport_Activator
PHP Code:
    "ability?" 
    

        
"name" "teleport_activator" 
        "arg0"    "3"    
// Do not Change! (Activate when button is pressed.)
        
"buttonmode" "2" // Do not Change! (Custom button is being used.)
        
"plugin_name"    "ff2_otokiru_wc3"
    

ChainLightning_Config
PHP Code:
    "ability?" 
    

        
"name" "chainlightning_config" 
        "arg1"         "3"    
// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton.)
        
"arg2"        "1"    // No. of Skills     (No. of skill to be given per rage. Will reset to this amount on every rage.)
        
"arg3"        "9999.0"    // UNKNOWN Distance    (No. of max UNKNOWN distance that either the hale can cast or the lightning can be bounce.)       
        
"arg4"        "100" // No. of damage that will be dealt on players. Damage is UNSTABLE, if you set 100, it could damage user around 50~150 and sometimes instant-kill. LOL!)
        
"plugin_name"    "ff2_otokiru_wc3" 
    

ChainLightning_Activator
PHP Code:
    "ability?" 
    

        
"name"         "chainlightning_activator" 
        "arg0"    "3"    
// Do not Change! (Activate when button is pressed.)
        
"buttonmode" "2" // Do not Change! (Custom button is being used.)
        
"plugin_name"    "ff2_otokiru_wc3"
    

Notes:
Quote:
  • You don't have to declare any sound files in your cfg file as this plugin will automatically do it for you.
ChangeLog:
Quote:
v1.1:
  • Fix Soundfiles not downloading.
  • No other major changes. Replace .ff2 will do in this update.
v1.0:
  • Initial Release.
Tell me if there's any problem. Enjoy!
Attached Files
File Type: zip ff2_otokiru_wc3_v1.1.zip (252.4 KB, 1755 views)

Last edited by VoiDeD; 09-25-2012 at 19:47. Reason: Moving to own thread
Otokiru is offline
Research
SourceMod Donor
Join Date: Nov 2011
Old 11-10-2012 , 12:25   Re: [Subplugin] War3 Ability Pack
Reply With Quote #2

any updates?
I expect your new ability pack

Last edited by Research; 11-10-2012 at 12:50.
Research is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-10-2012 , 22:57   Re: [Subplugin] War3 Ability Pack
Reply With Quote #3

I modified this some while ago.
- All abilities used shared variable for buttons, had to make more so that bosses could have multiple abilities.
- Point hurt was destroying players, used sdkhooks instead for predictable damage. If you get engine time you can calculate death by ability and assign a weapon death string and damage icon.
- Abilities were too spammy, had to add cooldown timer so players wouldn't use all their abilities in 1 second.
- Chain lightning var was counting hits in the loop. Can change this or add another var so that chain lightening has max targets it can hit per cast, and also grant the players X skills to cast.
- Vars can also be passed for CL range and damage falloff (say .6 and .3) for 60% range and 30% damage per hit, or whatever.
friagram is offline
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 08-19-2015 , 11:14   Re: [Subplugin] War3 Ability Pack
Reply With Quote #4

REQUIRES ff2_ams.inc TO COMPILE!

v1.3:
  • Rewritten in modern syntax

v1.2.4:
Spoiler


v1.2.3:
Spoiler


Older:
Spoiler


To use it with the Ability Management System, it requires Epic Scout's subplugin:
Spoiler


So here are the new additional args for teleport_config, chainlightning_config, and entangle_config:

entangle_config:

Code:
	"abilityX"  
	{  
		"name" "entangle_config"  
		"arg1"	"1"		// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton. 4 = Special, 5 = Use) 
		"arg2"	"3"		// No. of Skills     (No. of skill to be given per rage) 
		"arg3"	"5.0"	// Entangle Time        (No. of seconds that will Entangle the entangled player.) 
		"arg4"	"1"		// Should skills stack? 1 - yes, 0 - no

		"arg6"	"0"		// Entangle prevents player from firing weapon? 1: yes, 0: no

		// args 7-10 are for entangle beam color
		"arg7"	"0"		// RED value (0-255)
		"arg8"	"0"		// GREEN value (0-255)				
		"arg9"	"0"		// BLUE value (0-255)
		"arg10"	"0"		// ALPHA value (0-255)

		// args reserved for the ability management system 
		"arg1001"    "0.0" // delay before first use 
		"arg1002"    "30.0" // cooldown 
		"arg1003"    "Entangle" // name 
		"arg1004"    "Entangle Players" // description 
		"arg1005"    "50" // rage cost 
		"arg1006"    "0" // index for ability in the AMS menu 
      
		"plugin_name"    "ff2_otokiru_wc3"  
 	}
teleport_config:

Code:
    "abilityX"  
    {  
		"name" "teleport_config"  
		"arg1"	"2"		// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton. 4 = Special, 5 = Use) 
		"arg2"	"2"		// No. of Skills     (No. of skill to be given per rage) 
		"arg3"	"9999.0"	// Teleport Distance    (No. of max distance that the hale can teleport to.)        
		"arg4"	"1"		// Should skills stack? 1 - yes, 0 - no
		
		// args reserved for the ability management system 
		"arg1001"    "0.0" // delay before first use 
		"arg1002"    "30.0" // cooldown 
		"arg1003"    "Teleport" // name 
		"arg1004"    "Teleport where you are aiming at" // description 
		"arg1005"    "25" // rage cost 
		"arg1006"    "1" // index for ability in the AMS menu 
      
		"plugin_name"    "ff2_otokiru_wc3"  
    }
chainlightning_config:

Code:
    "abilityX"  
    {  
		"name" "chainlightning_config"  
		"arg1"	"4"		// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton. 4 = Special, 5 = Use) 
		"arg2"	"1"		// No. of Skills     (No. of skill to be given per rage) 
		"arg3"	"9999.0"	// UNKNOWN Distance    (No. of max UNKNOWN distance that either the hale can cast or the lightning can be bounce.)                
		"arg4"  "100" // No. of damage that will be dealt on players. Damage is UNSTABLE, if you set 100, it could damage user around 50~150 and sometimes instant-kill. LOL!) 
		"arg5"	"1"		// Should skills stack? 1 - yes, 0 - no
		
		// args reserved for the ability management system 
		"arg1001"    "0.0" // delay before first use 
		"arg1002"    "30.0" // cooldown 
		"arg1003"    "Chain Lightning" // name 
		"arg1004"    "Summon Lightning" // description 
		"arg1005"    "10" // rage cost 
		"arg1006"    "2" // index for ability in the AMS menu 
      
		"plugin_name"    "ff2_otokiru_wc3"  
    }

The other config settings have remained unchanged.

TO-DO:
  • Fix the unstable chain lightning damage
  • Port sarysa's safer method for teleport skills
  • Add a cooldown timer between uses
Attached Files
File Type: zip ff2_otokiru_wc3_v1.3.zip (257.8 KB, 548 views)
__________________

Last edited by 93SHADoW; 09-07-2020 at 19:50. Reason: Updated plugin
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 08-22-2015 , 13:13   Re: [Subplugin] War3 Ability Pack
Reply With Quote #5

v1.2.1:
  • Hopefully fixed frogs errors related to initializing AMS_InitSubAbility()

v1.2.2
  • Fixed AMS errors (thanks sarysa)

For some reason, some people would say it would fail to initialize if using with AMS, yet on my test environment, it was working fine.
__________________

Last edited by 93SHADoW; 08-22-2015 at 20:19.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 12-22-2015 , 23:37   Re: [Subplugin] War3 Ability Pack
Reply With Quote #6

Changes for v1.2.3:
  • Added arg to determine if entangle also blocks victim's weapon from firing
    Code:
    		"arg6"	"0"		// Entangle prevents player from firing weapon? 1: yes, 0: no
  • Allowed entangle beam color to be customized
    Code:
    		// args 7-10 are for entangle beam color
    		"arg7"	"0"		// RED value (0-255)
    		"arg8"	"255"		// GREEN value (0-255)				
    		"arg9"	"0"		// BLUE value (0-255)
    		"arg10"	"255"		// ALPHA value (0-255)
__________________

Last edited by 93SHADoW; 12-22-2015 at 23:38.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 01-22-2016 , 13:44   Re: [Subplugin] War3 Ability Pack
Reply With Quote #7

v1.2.4:
  • AMS-enabled abilities now use autodetection.
__________________
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
zyox123cc
Senior Member
Join Date: Jul 2016
Location: spycrab
Old 08-22-2016 , 06:20   Re: [Subplugin] War3 Ability Pack
Reply With Quote #8

If I want to set it to the big move
Use according to E
How do I set up?
lightning

Last edited by zyox123cc; 08-22-2016 at 15:07.
zyox123cc is offline
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 09-07-2020 , 19:53   Re: [Subplugin] War3 Ability Pack
Reply With Quote #9

v1.3:
  • Rewritten in modern syntax

Download: https://forums.alliedmods.net/showpo...52&postcount=4
__________________

Last edited by 93SHADoW; 09-07-2020 at 19:54.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
hkkelvin1995
Senior Member
Join Date: Jun 2009
Location: Hong Kong
Old 10-24-2023 , 18:54   Re: [Subplugin] War3 Ability Pack
Reply With Quote #10

The chain lightning is causing client timeout in the latest version of TF2. Anyone has any clue why?
__________________
Founder of Reachhl2.com from Hong Kong 🇭🇰
10+ years experience in hosting SCRDS
Best known for our VSH/FF2 server with self-made Bosses, Features, Maps
hkkelvin1995 is offline
Reply


Thread Tools
Display Modes

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:53.


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