Raised This Month: $535 Target: $400
 133% 

FF2 [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Samuwu
Member
Join Date: Nov 2021
Location: In a house
Old 12-02-2022 , 21:44   [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!
Reply With Quote #1

This works both on FF2 Rewrite and Unofficial FF2!
This has a similar function to ff2_tempMelee, BUT:
- The temporary melee disappears upon hitting someone
+ You can make it so the temporary melee stuns the target for X seconds!
+ You can make it so the temporary melee deals AoE knockback and/or damage!
+ You can set a delay before giving out the melee, to combine with other AoE abilities! (rage_shockwave from ff2_gravity, or the standalone sentry buster rage)
You can use this ability to make strong "single-punch" abilities, and combine it with other abilities for combos!

The original stunhit ability was made by UberMedicFully (from the forgotten private public version of the Pootis Engage duo boss)
But i re-wrote most of it due to some buggy behaviours on both unofficial and rewrite.
It is also red-team friendly! (ability works on red team)

If using Unofficial FF2:
Code:
	"abilityX"
	{
		"name" "aoe_stunhit"
		"arg0" "0"
		
		// temp melee
		"arg1" "" // attr
		"arg2" "" // classname
		"arg3" "" // index
		
		// return melee
		"arg4" "" // attr
		"arg5" "" // classname
		"arg6" "" // index
		
		"arg7"  "1.5"  // hard-stun duration (can be applied to AoE too)
		"arg8"  "5.0"  // melee duration, ends upon hitting someone
		"arg9" "1.0"   // delay before giving out the melee
		
		// aoe settings
		"arg10" "1" // 1 = enable knockback | 0 = don't
		"arg11" "500" // aoe distance
		"arg12" "750" // aoe knockback force
		"arg13" "1000" // aoe minimum z elevation
		"arg14" "150" // aoe damage (has falloff)
		
		"plugin_name" "aoe_stunhit"
	}
	
	// Sound to play on hit while aoe_stunhit is active
	"sound_stunhitaoe"
	{
		"1" "freak_fortress_2/boss/sound.mp3"
	}
If using FF2 Rewrite:
Code:
	"aoe_stunhit"
	{
		"slot" "0"
		
		// temp melee
		"arg1" "" // attr
		"arg2" "" // classname
		"arg3" "" // index
		
		// return melee
		"arg4" "" // attr
		"arg5" "" // classname
		"arg6" "" // index
		
		"arg7"  "1.5"  // hard-stun duration (can be applied to AoE too)
		"arg8"  "5.0"  // melee duration, ends upon hitting someone
		"arg9" "1.0"   // delay before giving out the melee
		
		// aoe settings
		"arg10" "1" // 1 = enable knockback | 0 = don't
		"arg11" "500" // aoe distance
		"arg12" "750" // aoe knockback force
		"arg13" "1000" // aoe minimum z elevation
		"arg14" "150" // aoe damage (has falloff)
		
		"plugin_name" "aoe_stunhit"
	}
	
	// Sound to play on hit while aoe_stunhit is active
	"sound_stunhitaoe"
	{
		"freak_fortress_2/boss/sound.mp3" ""
	}
Note: Ignore the warnings upon compiling, it works fine even with those (for some reason when i remove it, the ability breaks completely)
Place the .smx on sourcemod/plugins if using FF2 Rewrite.
Otherwise rename the extension to .ff2 and place it in plugins/freaks if using Unofficial FF2.
If you find any bug with it, let me know so i can fix it ASAP!
(although it will probably have one due to the recent vscript update lol)

Credits:
UberMedicFully - Made the original Stunhit ability
Blinx - ff2_tempMelee
Attached Files
File Type: sp Get Plugin or Get Source (aoe_stunhit.sp - 24 views - 11.1 KB)
File Type: smx aoe_stunhit.smx (10.6 KB, 15 views)
__________________
Samuwu 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 09:23.


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