Hi, I was looking for a subplugin for a reverse grapping hook, moving the victim rather than the attacker, but I didn’t find it.
Well, first of all, I’m bad in English, and second I’m new in "coding", I don't know how create a plugin but I modify those of others so that they are more customizable.
So this is my first post, I’m also thinking about modifying the ff2_grab plugin ( by SHADOW93 and Waka Flocka Flame) so that the boss can’t attack when he’s holding someone.
So I tweaked the ff2_grip code of Blinx a little so that it could attract mercenaries longer, and thus simulate a harpoon (arg4).
I also add customization effects to pass the attribute in passive and be able to use it at any time, a reload time can also be added but will not be visible in game.
Thanks to 93SHADoW for his ff2_cond plugin code, which I stole some code...
WARNING
: I use FF2 Unofficial version 1.19.9 because 1.20.1 bug in my test server.
Code:
"abilityX"
{
"name" "ability_pull"
"arg0" "2" //Use sounds in 2nd slot
"arg1" "1.5" //Pull speed
"arg2" "300.0" //Upwards force
"arg3" "materials/swamp/cable/rope_swamp.vmt" //Material to use for the "rope". DO NOT USE BACKSPACES.
"arg4" "1.5" //Time when mercs are pull by the hook, enable to move without the rope velocity
"arg5" "1" // 0 = gain amount of "arg3" when boss use his rage 1 = passive ability and disabled "arg3" of ability_pull_charges
"arg6" "0" // 0 = turn off hud notify 1 = Turn on
"arg7" "1.0" // cooldown to throw the hook
"arg8" "" // Condition to applicate to the boss (cond ; time)
"arg9" "" // Condition to applicate to the player (cond ; time)
"buttonmode" "2" //Wouldn't change this either no sir
"plugin_name" "ff2_grip"
}
"abilityX+1"
{
"name" "ability_pull_charges"
"arg1" "3" //amount of grip charges to grant per rage (this is additive to previous charges, not set)
"plugin_name" "ff2_grip"
}
Feel free to make any comments and if you download it to test it, thank you.
Credit :
Thanks to:
Blinx for ff2_grip original work: https://forums.alliedmods.net/showthread.php?t=282473
93SHADoW for ff2_cond : https://forums.alliedmods.net/showthread.php?t=263598