FF2-Official
FF2-Official copied to clipboard
Allow choosing of bosses
Hello,
I feel that this feature could be added in 2.0 for FF2. If the player chooses the boss he/she wants, his/her boss will have lower HP (adjustable via ff2 .cfg file) than having a random boss.
Thank you.
Already available through /ff2_special <boss>
.
To expand on what crab is asking, see this plugin: https://forums.alliedmods.net/showthread.php?t=197273
I'm pretty sure that just invokes ff2_special.
@WildCard65, yeah, that's what I meant.
Right now only admins can choose the next boss. But if players are able to invoke the ff2_special, it would be a massive troll game whereby they keep spamming saxton hale. (because Saxton hale is the most unbuffed/weakest boss)
So, the improvised version would be only the true next hale is able to select the boss he/she wants.
I might change ff2_special to accept a client parameter in 2.0.0, eg ff2_special <name> <boss>
. That's the extent of what I'm doing though, since FF2 was created to have randomized bosses, and I intend to keep it that way.
Would tag this for 2.0.0 and "enhancement", but Chrome...
Wliu, the plugin I linked to works like this(also, no html tags for code or spoilers?):
public Command_SetMyBossH(Handle:menu, MenuAction:action, param1, param2)
{
if (action != MenuAction_Select) return;
decl String:Special_Name[64];
decl Handle:BossKV;
for (new i = 0; (BossKV=FF2_GetSpecialKV(i,true)) && i < param2; i++)
if (KvGetNum(BossKV, "blocked",0)) param2++;
KvGetString(BossKV, "name",Special_Name, 64);
Incoming[param1] = param2;
ReplyToCommand(param1, "[FF2] Set your boss to %s", Special_Name);
}
public Action:FF2_OnSpecialSelected( index, &SpecialNum, String:SpecialName[])
{
new client=GetClientOfUserId(FF2_GetBossUserId(index));
if (!index && Incoming[client] != -1)
{
strcopy(SpecialName,2,"");
SpecialNum = Incoming[client];
Incoming[client] = -1;
return Plugin_Changed;
}
return Plugin_Continue;
}
Mmm.
For large code blocks, use ```at the beginning and end of the code block. For inline code blocks, just useat the beginning and end. For quotes, use
>`. No spoilers.
Oh wonderful, Github screwed up the formatting.
What I meant:
```
for large code blocks and
` for inline ones. Hopefully this works...
OK, SERIOUSLY NOW.
and
`
I give up. I formally give up. Just use 3 for large ones and one
for small ones.
`
I found out it's ` * 3 for before and after, thx for trying to show it for me Wliu
After talking to Shadow about this, I've decided to do the following:
- Implement
/ff2boss <boss>
and/ff2_boss <boss>
- Create a cvar for this that will be disabled by default
Great