Raised This Month: $12 Target: $400
 3% 

Any way to make boss appear only on certain amount of players?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
medic917
Senior Member
Join Date: Aug 2014
Old 07-13-2015 , 22:52   Any way to make boss appear only on certain amount of players?
Reply With Quote #1

Is there any way I can make it so bosses appear on certain amount of players in the server?
So if there are 10 people the boss will not spawn. If there is 20 players or more, then boss will spawn.

Also in the characters.cfg file, what are the chances configs? How do they work?
medic917 is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 07-14-2015 , 19:54   Re: Any way to make boss appear only on certain amount of players?
Reply With Quote #2

There's no cvar in FF2 to control how many players are needed in order for FF2 to start - it's currently hardcoded at 2 (though it should be easy to change in event_round_start).

Chances allow you to define the chance for a certain boss to get picked. For example, let's say you have three bosses: Saxton Hale, CBS, and Easter Bunny (in that order). Then a chances string of "chances" "1 ; 10 ; 2 ; 4 ; 3 ; 1" will give Saxton Hale a 10/15 chance of being picked each round, CBS a 4/15 chance, and Easter Bunny 1/15.
__________________
~Wliu

Last edited by Wliu; 07-14-2015 at 19:54.
Wliu is offline
medic917
Senior Member
Join Date: Aug 2014
Old 07-14-2015 , 21:33   Re: Any way to make boss appear only on certain amount of players?
Reply With Quote #3

Quote:
Originally Posted by Wliu View Post
There's no cvar in FF2 to control how many players are needed in order for FF2 to start - it's currently hardcoded at 2 (though it should be easy to change in event_round_start).

Chances allow you to define the chance for a certain boss to get picked. For example, let's say you have three bosses: Saxton Hale, CBS, and Easter Bunny (in that order). Then a chances string of "chances" "1 ; 10 ; 2 ; 4 ; 3 ; 1" will give Saxton Hale a 10/15 chance of being picked each round, CBS a 4/15 chance, and Easter Bunny 1/15.
When you say 4/15 do you mean 26 percent chance (four divided by fifteen)?
Where does the 15 come from?
medic917 is offline
uNg0veRNab1e
Member
Join Date: Jan 2013
Location: Russia, Siberia
Old 07-15-2015 , 08:33   Re: Any way to make boss appear only on certain amount of players?
Reply With Quote #4

Quote:
Originally Posted by medic917 View Post
When you say 4/15 do you mean 26 percent chance (four divided by fifteen)?
Where does the 15 come from?
10+4+1=15
Sum of chances. 15=100%.
__________________

Last edited by uNg0veRNab1e; 07-15-2015 at 08:40.
uNg0veRNab1e is offline
Send a message via Skype™ to uNg0veRNab1e
Akuba
Senior Member
Join Date: Oct 2013
Old 07-15-2015 , 11:19   Re: Any way to make boss appear only on certain amount of players?
Reply With Quote #5

Can Freak Fortress 2 handle custom KeyValues?

For example:

you add to the BossCFG something like "minplayers" "15"

after that you edit the Bossselection Plugin to read that value out when selecting the boss.

I was planning to do something like that, would be interresting if that would work that way
Akuba is offline
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 07-15-2015 , 15:31   Re: Any way to make boss appear only on certain amount of players?
Reply With Quote #6

Quote:
Originally Posted by Akuba View Post
Can Freak Fortress 2 handle custom KeyValues?

For example:

you add to the BossCFG something like "minplayers" "15"

after that you edit the Bossselection Plugin to read that value out when selecting the boss.

I was planning to do something like that, would be interresting if that would work that way
FF2 can handle custom keyvalues.

However, it would requiring editing FF2 if you want it to do a specific function. But in your case, just editing boss selection is enough.

Some of the things i've done with my FF2:
Code:
	"subversion"			"31" // FF2 v1.31 - enables new-style HP formula calculations & disables low damage tripling
	"bossteam"				"0"	// 0 - cvar "ff2_force_team" determines bossteam | 1 - Random | 2 - RED |  3 - BLU
__________________

Last edited by 93SHADoW; 07-15-2015 at 15:33.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
Reply



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 08:29.


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