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