Raised This Month: $32 Target: $400
 8% 

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 , 20: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 - 94 views - 11.1 KB)
File Type: smx aoe_stunhit.smx (10.6 KB, 113 views)
__________________
Samuwu is offline
GANGST
Member
Join Date: Oct 2019
Old 06-15-2023 , 18:03   Re: [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!
Reply With Quote #2

Hello there Samuwu how are you doing? So I have been trying to use this ability for my Bonk Girl boss but for some reason it doesn’t seem to work. I don’t know if it’s something with my server (which uses the unofficial ff2 from batfoxkid) or if I’m just doing something wrong. The way I am trying to use it is via a menu ability but whenever I hit the menu button to try to activate the temporary melee weapons nothing happens. I believe I’m having a similar issue when the ability is used on rage. However though, I did see that the plugin seemed to work on a friends server but I don’t know how. Respond when you get the chance.
__________________
Come visit my YouTube Channel
https://www.youtube.com/channel/UCkK...6Am4AtIzXB0bMQ

Come visit my Second/Professional YouTube Channel https://www.youtube.com/channel/UCe1...VYNnRZxTWyIVjg

Last edited by GANGST; 06-15-2023 at 18:05.
GANGST is offline
Samuwu
Member
Join Date: Nov 2021
Location: In a house
Old 06-16-2023 , 05:43   Re: [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!
Reply With Quote #3

Quote:
Originally Posted by GANGST View Post
Hello there Samuwu how are you doing? So I have been trying to use this ability for my Bonk Girl boss but for some reason it doesn’t seem to work. I don’t know if it’s something with my server (which uses the unofficial ff2 from batfoxkid) or if I’m just doing something wrong. The way I am trying to use it is via a menu ability but whenever I hit the menu button to try to activate the temporary melee weapons nothing happens. I believe I’m having a similar issue when the ability is used on rage. However though, I did see that the plugin seemed to work on a friends server but I don’t know how. Respond when you get the chance.
Can you show me how you put the ability in the cfg?

Also most probably this broke so i'll fix it in some hours probably :b
__________________
Samuwu is offline
Frixu
Senior Member
Join Date: Mar 2021
Location: Poland
Old 06-24-2023 , 06:48   Re: [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!
Reply With Quote #4

"aoe_stunhit"
{
"arg0" "0"

"arg1" ""
"arg2" ""
"arg3" ""

"arg4" ""
"arg5" ""
"arg6" ""

"arg7" "1.5"
"arg8" "5.0"
"arg9" "1.0"

"arg10" "1"
"arg11" "500"
"arg12" "750"
"arg13" "1000"
"arg14" "150"

"plugin_name" "aoe_stunhit"
}
Frixu is offline
Frixu
Senior Member
Join Date: Mar 2021
Location: Poland
Old 06-24-2023 , 06:49   Re: [Subplugin] aoe_stunhit - Temporary melee that disappears on hit + more!
Reply With Quote #5

should works now, cuz works fine on my server.
Frixu is offline
Reply



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


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