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

Help with partner bosses


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 06-21-2019 , 06:22   Help with partner bosses
Reply With Quote #1

Players are complaining about partner Boss because they cannot play the boss they chose. Is there any way to allow the partner player get points after being the partner boss?

Last edited by Hoto Cocoa; 06-22-2019 at 05:41.
Hoto Cocoa is offline
Batfoxkid
Senior Member
Join Date: Nov 2018
Location: ''On the map''
Old 06-21-2019 , 13:54   Re: Help with partner bosses
Reply With Quote #2

In Boss Preferences: ff2_bossprefs_restore_companion_queuepoints
In Unofficial Freak Fortress: ff2_companion_restore
__________________
Batfoxkid is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 06-21-2019 , 22:12   Re: Help with partner bosses
Reply With Quote #3

Quote:
Originally Posted by Batfoxkid View Post
In Boss Preferences: ff2_bossprefs_restore_companion_queuepoints
In Unofficial Freak Fortress: ff2_companion_restore

that doesn't help.

Last edited by Hoto Cocoa; 06-22-2019 at 05:46.
Hoto Cocoa is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 06-22-2019 , 03:43   Re: Help with partner bosses
Reply With Quote #4

Quote:
Originally Posted by Batfoxkid View Post
In Boss Preferences: ff2_bossprefs_restore_companion_queuepoints
In Unofficial Freak Fortress: ff2_companion_restore
I got another question about Respawn Tickets.
https://forums.alliedmods.net/showpo...1&postcount=10
Hoto Cocoa is offline
Hoto Cocoa
Senior Member
Join Date: Jun 2018
Location: Somewhere
Old 06-22-2019 , 06:02   Re: Help with partner bosses
Reply With Quote #5

Code:
public void Event_RoundEnd(Event event, const char[] name, bool dontBroadcast)
{
	for(int client=0;client<=MaxClients;client++)
	{	
		if(!IsValidClient(client))
			continue;
		
		if(BossSetting[client]!=FF2Bosses_Off)
		{
			if(cvarRestoreCompanionQueuePoints.BoolValue)
			{
				if(FF2_GetBossIndex(client)==-1) // save queue points in case they become a companion boss
				{
					clientQueuePoints[client]=FF2_GetQueuePoints(client);
				}
				else if(FF2_GetBossIndex(client)>0) // restores queue points
				{
					FF2_SetQueuePoints(client, clientQueuePoints[client]);
				}
			}
		}	
		else
		{
			if(FF2_GetQueuePoints(client)>=0)
			{
				FF2_SetQueuePoints(client,-15);
			}
			char nick[64]; 
			GetClientName(client, nick, sizeof(nick));
		}
	}
}
I think I get something. Player's points are set to 0 when they become a companion boss. But in ff2_boss_prefs.sp you can find it saves player's point when player has already become a companion, which mean 0 point. And FF2_GetQueuePoints(client) has become 0. Then the plugin return 0 to the client.
Yet I don't know how to fix it.
edit: I am wrong about coding. but this is not working well though

Last edited by Hoto Cocoa; 06-22-2019 at 06:28.
Hoto Cocoa is offline
Batfoxkid
Senior Member
Join Date: Nov 2018
Location: ''On the map''
Old 06-22-2019 , 12:49   Re: Help with partner bosses
Reply With Quote #6

Freak Fortress removes boss queue points at the start of the round and at the end which I don't think Boss Preferences restores.
__________________
Batfoxkid 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 19:24.


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