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

FF2 FF2 2 rage platforms


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
WhiteFalcon
Member
Join Date: Nov 2019
Old 06-06-2020 , 14:47   FF2 2 rage platforms
Reply With Quote #1

For a long time, FF2 had(and still do) many creators, one of them is sarysa, though her/his subplugins have some problem, or at least, in my opinion, ie: run medium~heavy checks every single server frame.
anyway, I've decided to make a new way of handing stuff independently/smoothly.
Unfortunately, it's not backward compatible, changes will be mentioned way below.
Since I gave up on the project, I may update it from time to time. So for now, this plugin will only work for VSH2
Secondly is RageMenu which allows you to use any rage as menu rage, FF2_DoAbility is not working as good as I wanted it to be so I've decided to precache ff2 plugins and manually trigger FF2_OnAbility2()

Download link and report bugs there, if any.

extras: i modified some(almost all) AMS plugins to be compatible with this new version of ams. you can find them here
mentions :
- took the idea from nergal, ConfigMap extremly useful
- menu rage inspired from Ness, in BatFoxKid server.
- credit to sarysa for the original AMS, that he/she used for epic scout.

AMS2 :
Templates :
Code:
"ams_sys"
	{
		"activation"	"0"		//0 : E rage, reload, mouse3 or mouse2
		"selection"		"reload"	//reload, mouse3 or mouse2
		"reverse"		"mouse3" //reload, mouse3 or mouse2
		
		"hud"
		{
			"cinactive"	"0xFF0000"
			"inactive"	"%s (%.2f rage) [RELOAD (R) to change]\n%s\nAbility is currently unavailable."
			
			"cactive"	"0x00FF00"
			"active"	"%s (%.2f rage) [RELOAD (R) to change]\n%s\nAbility is available. (press E)"
			
			"y"			"0.68"
		}
		
		"cast-particle"	"ghost_smoke"
	}
Code:
"ability: Template"
	{
		"name"		"ability_name"
		
		//rest of args
		
		"initial cd"		"5.0"
		"ability cd"		"10.0"
		"this_name"	"ability name here"
		"display_desc"	"ham ham ham"
		"cost"		"10.0"
		"can end"		 "false"
		
		"plugin_name"	"plugin_name"
	}
for devs :
- to dynamically access any ability use FF2AMS_GetAMSHashMap, or F2AMS_GetGlobalAMSHashMap to change the base. global membres can be accessed like by StringMap.GetString("hud->inactive") or StringMap.SetString("cast-particle")
- to have a small idea how to make an ams2 rage, refer to this sample.
- more you will find it in include/source code

alternatively, if you don't have a rage with AMS prebuilt in it, you can still use this ff2_fakeams, which is literary ff2_doability but uses FF2_ForceAbility instead of FF2_DoAbility, tested and should work. The template will be found there.


(UNUPDATED)
Menu rage:
unlike AMS(without ff2_fakeams), you don't need to hardcode a subplugin just to function with the menu
Templates :
Code:
"menu_base"
	{
		"button"			"reload" //0, reload, mouse3 or mouse2
		"menu name"		"Current [ENERGY] : %i\nSelect Your Powerup."
		"hud format"		"[ENERGY] : %i"	
		"damage taken"		"1000"
		"damage pts"		"45"
		"life loss"			"70"		// how many points to get per life loss
		"loss mult"		"3 - 5 - 10" // same above but multiply it by ..
		"max pts"			"9001"
		"gain per rage"		"60"
		"gain per kill"		"50" 
		
		"hook"
		{
			"num"		"3" // how many rages to use for menu
			"1"
			{
				"name"		"ability_name1"
				
				"rage title"		"fish"
				"rage info"		"ENERGY : 120 Stamina.\nCooldown : 20 sec"
				"rage cost"	"120"
				"rage cooldown"	"20.0"
			
				"plugin_name"	"plugin_name1"
			}
			"2"
			{
				"name"		"ability_name2"
				...
				..
				"plugin_name"	"plugin_name2"
			}
			"3"
			{
				"name"		"ability_name3"
				...
				..
				"plugin_name"	"plugin_name3"
			}
		}
	}
	"sound_draw_menu"
	{
		"1"	"..."
		"2"	"..."
		...
	}
	"sound_activate_menu"
	{
		"1"	"..."
		"2"	"..."
		...
	}
	"sound_exit_menu"
	{
		"1"	"..."
		"2"	"..."
		...
	}
for devs:
- FF2MenuRage_GetHashMap() will return to you the global menu base, which can be dynamically modified just like ams2.
- FF2MenuRage_PeekValue() and FF2MenuRage_SetValue() will let you change player's points/infos.
- again, more you will find it in include/source code.

change ff2_fakeams.smx to .ff2, but not the others.
includes can be found here.
Thanks for your time and feedbacks are greatly appreciated.


Updates:
-08/06/2020 : Added sounds keyvalues to emit during specific events, fixed all rage activation when boss uses normal E rage for menu.
-14/06/2020 : Migrated to github.

Last edited by WhiteFalcon; 06-08-2021 at 08:04. Reason: add tiny bit of format
WhiteFalcon is offline
 



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 05:48.


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