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

Solved [L4D/L4D2] Block buy / points reset in SPEC mode?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JustNO
Member
Join Date: Jul 2020
Old 01-06-2024 , 21:14   [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #1

Hi all,

I use the purchase system/points system for my versus servers. Players can, if they play in special infected team, buy a character of their choice. A few years ago I discovered that there were players who were abusing the option of free roaming. In this way, in spec mode, they could simply fly to a victim and then use the purchase menu to place themselves exactly next to the survivor. I blocked that by turning off free roaming. Everything fine, but. Players can use a simple trick to go into AFK mode, and then, as a spectator, still look for a goal. Once they have found a target, using spec mode, they still use the purchasing system and attack immediately.

I am looking for a way to prevent this. I don't mind players being in AFK status, so I don't think the AFK manager is an option. Although?, would it be possible to reset all players points if they go AFK? Or maybe block buying when you're in spectator mode? Does anyone have a good idea?

Last edited by JustNO; 01-17-2024 at 01:45.
JustNO is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-07-2024 , 13:24   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #2

Check team with GetClientTeam, if != than 2 (survivor) or 3 (infected) then block the command.
(I don't remember if AFK players keep in the same team)

or try checking with Left 4 DHooks Direct using the L4D_IsPlayerIdle stock and block the command.
__________________

Last edited by Marttt; 01-07-2024 at 13:27.
Marttt is offline
JustNO
Member
Join Date: Jul 2020
Old 01-07-2024 , 19:54   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
or try checking with Left 4 DHooks Direct using the L4D_IsPlayerIdle stock and block the command.
I think it would indeed be best to block the !buy and /buy command as soon as someone goes into AFK / spectate mode.

It would be even better, and also fairer, if players who go AFK or in spectate mode immediately lose all points. So AFK or spec means, reset points.
JustNO is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-07-2024 , 20:18   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #4

Just block the command then? Seems like you have a pretty good idea of what to do.
__________________
Spirit_12 is offline
JustNO
Member
Join Date: Jul 2020
Old 01-07-2024 , 20:41   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #5

Ideas, yes, but they also have to be implemented. So that's the problem. Where and how are we going to do that? As I said, the best solution is to reset the points, but that will have to be achieved somewhere in the plugins
JustNO is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-07-2024 , 21:29   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #6

Commands
__________________

Last edited by Marttt; 01-07-2024 at 21:29.
Marttt is offline
JustNO
Member
Join Date: Jul 2020
Old 01-09-2024 , 23:58   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #7

Unfortunately, this doesn't make me any wiser, blocking the commands is not a good idea. I've figured out that it's better to immediately reset the points players have collected as soon as someone goes AFK. The problem is that I don't know how I'm going to do that. Maybe adjust the AFKmanager? Does anyone have a good idea and would you like to help me solve it?
JustNO is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-10-2024 , 00:55   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #8

looks like a https://xyproblem.info/ to me,
I hope someone else can help you
__________________
Marttt is offline
JustNO
Member
Join Date: Jul 2020
Old 01-10-2024 , 03:05   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #9

Quote:
Originally Posted by Marttt View Post
I hope someone else can help you
It's okay if you can't help me. There is probably someone who can deal with complicated issues, but thank you for your response.
JustNO is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-10-2024 , 11:28   Re: [L4D/L4D2] Block buy / points reset in SPEC mode?
Reply With Quote #10

You are asking for a custom solution and the best way to achieve those are by learning to code. Start small by just trying to alter who can access the command.

Like Martt suggested you need to find "RegServerCmd" instance and then see what is being done with it.
__________________
Spirit_12 is offline
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 09:55.


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