Raised This Month: $7 Target: $400
 1% 

FF2 [Subplugin] New grip and "hook" ability


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LeAlex14
Member
Join Date: Jun 2020
Location: La France
Old 09-11-2020 , 16:22   [Subplugin] New grip and "hook" ability
Reply With Quote #1

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
Attached Files
File Type: sp Get Plugin or Get Source (ff2_grip.sp - 121 views - 8.4 KB)
File Type: smx ff2_grip.smx (10.1 KB, 135 views)
LeAlex14 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 22:41.


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