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

[L4D(2)] AFK and Join Team Commands (1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-22-2020 , 02:52   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #31

Quote:
Originally Posted by Darkwob View Post
added a new cmd.
Vague.. What command? No changing version or adding to notes... Trying to help others or what?
__________________
Silvers is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-30-2020 , 12:53   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #32

[L4D(2)] AFK and Join Team Commands Improved Version (2023/5/22 )
Add more commands to let the player spectate and join team. (!afk, !survivors, !infected, etc.), but no changing team abuse.

-New Feature-
  • Convert All codes to new syntax.
  • Translation support.
  • Update L4D2 "The Last Stand" gamedata. Credit to Lux's work
  • Add more commands to change team.
  • Add some limits to prevent players from changing team abuse. (see detail below)
  • Player can go idle even if he is alone in server.
  • Blocks player from going idle with 'esc->take a break'
  • Blocks player from switching team by choosing team menu in versus.
  • Allow alive survivor player suicides.
  • Adm can force player to swap team.
  • Compatible with r2comp_unscramble
  • Remove gamedata

-Detail-
Spoiler


-Edit Github-
Latest version always here
__________________

Last edited by HarryPotter; 05-21-2023 at 13:36.
HarryPotter is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-03-2020 , 09:50   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #33

Quote:
Originally Posted by fbef0102 View Post
[L4D(2)] AFK and Join Team Commands Improved Version 3.2 (2020/10/1)
Add more commands to let the player spectate and join team. (!afk, !survivors, !infected, etc.), but no changing team abuse.

-New Feature-
  • Convert All codes to new syntax.
  • Translation support.
  • Update L4D2 "The Last Stand" gamedata. Credit to Lux's work
  • Add more commands to change team.
  • Add some limits to prevent players from changing team abuse. (see detail below)
  • Player can go idle even if he is alone in server.
  • Blocks player from going idle with 'esc->take a break'
  • Blocks player from switching team by choosing team menu in versus.
  • Allow alive survivor player suicides.
  • Adm can force player to swap team.

-Detail-
Spoiler


Apply to:
l4d1/2 both

-Require-Updating cfg:
  • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
Updating gamedata:
  • New signature have been added: redownload and replace gamedata/l4d_afk_commands.txt

-Convar-
Spoiler


-Command-
Spoiler


Related plugin:
[L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]: Fixes survivor going AFK game function.

-Edit Github-
Latest version always here

Hello fbef0102,

I wasn't sure where to report the problem, so I found the best place to post what's going on. (I use ABM for slots)

I'm having a problem with players who sometimes become a "spectator", and are unable to return to the game with any command.
!join for example

When I use this LUX plugin [L4D1 & L4D2] Survivor_AFK_Fix [Left 4 Fix]: (https://forums.alliedmods.net/showthread.php?t=326742).

Causes the l4dinfectedbots plugin to stop working: (https://forums.alliedmods.net/showpo...postcount=1369).

I did a test giving a reload command for the plugin (l4dinfectedbots), and it failed to load. But when I removed the LUX plugin, it loaded again.

I ask you if I need to use another plugin besides the one in the post [L4D (2)] AFK and Join Team Commands Improved Version 3.2 ???

Do I need to use this too: [L4D1 & L4D2] Survivor_AFK_Fix [Left 4 Fix]?


Because the two do not work well together, as the LUX plugin causes conflict with l4dinfectedbots.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 10-05-2020 , 08:23   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #34

Quote:
Originally Posted by Mi.Cura View Post
When I use this LUX plugin [L4D1 & L4D2] Survivor_AFK_Fix [Left 4 Fix]: (https://forums.alliedmods.net/showthread.php?t=326742).

Causes the l4dinfectedbots plugin to stop working: (https://forums.alliedmods.net/showpo...postcount=1369).

I did a test giving a reload command for the plugin (l4dinfectedbots), and it failed to load. But when I removed the LUX plugin, it loaded again.

Because the two do not work well together, as the LUX plugin causes conflict with l4dinfectedbots.
Replace the SetHumanSpec signiture with my one.
https://github.com/LuxLuma/Left-4-fi...fk_fix.txt#L45

https://github.com/fbef0102/L4D1_2-P...edbots.txt#L19

I mostly provide a compatible windows signiture for everyone to use if a plugin I detour a function with does so.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-05-2020 , 21:45   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #35

Quote:
Originally Posted by Lux View Post
I mostly provide a compatible windows signiture for everyone to use if a plugin I detour a function with does so.
Mi.Cura is not the first guy reporting this bug.
Do I need to modify every gamedata and replace windows signiture of "SetHumanSpec" with your one?

l4dinfectedbots.txt#L67

l4dmultislots.txt#L33

l4d_afk_commands.txt#L36
__________________

Last edited by HarryPotter; 10-05-2020 at 21:50.
HarryPotter is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 10-06-2020 , 11:36   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #36

Quote:
Originally Posted by HarryPotter View Post
Mi.Cura is not the first guy reporting this bug.
Do I need to modify every gamedata and replace windows signiture of "SetHumanSpec" with your one?

l4dinfectedbots.txt#L67

l4dmultislots.txt#L33

l4d_afk_commands.txt#L36
Yes, or pray to the sourcemod plugin load order god that your stuff loads first.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-07-2020 , 10:07   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #37

Hi Harry Potter and LUX,
I inform you that after updating the gamedata files the plugins work together correctly.
There are no more conflicts.

Will it be necessary to update the Gamedata of the Multislots plugin as well?
https://forums.alliedmods.net/showpo...&postcount=249
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 10-07-2020 at 10:10.
Mi.Cura is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-07-2020 , 11:28   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #38

Quote:
Originally Posted by KasperH View Post
Added Hungarian.
Thanks, Updated.

Quote:
Originally Posted by Lux View Post
Yes, or pray to the sourcemod plugin load order god that your stuff loads first.
Oh right, Updated everything again.

Quote:
Originally Posted by Mi.Cura View Post
Will it be necessary to update the Gamedata of the Multislots plugin as well?
https://forums.alliedmods.net/showpo...&postcount=249
Yes, thanks, already updated.

AFK and Join Team Commands Improved Version 3.3 (2020/10/7)
- Updated gamedata, credit to Lux's work, now it won't conflict with Survivor_AFK_Fix[Left 4 Fix]
__________________

Last edited by HarryPotter; 10-07-2020 at 11:28.
HarryPotter is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 11-15-2020 , 10:39   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #39

Quote:
Originally Posted by HarryPotter View Post
[L4D(2)] AFK and Join Team Commands Improved Version 3.4 (2020/11/11)
Add more commands to let the player spectate and join team. (!afk, !survivors, !infected, etc.), but no changing team abuse.

-New Feature-
  • Convert All codes to new syntax.
  • Translation support.
  • Update L4D2 "The Last Stand" gamedata. Credit to Lux's work
  • Add more commands to change team.
  • Add some limits to prevent players from changing team abuse. (see detail below)
  • Player can go idle even if he is alone in server.
  • Blocks player from going idle with 'esc->take a break'
  • Blocks player from switching team by choosing team menu in versus.
  • Allow alive survivor player suicides.
  • Adm can force player to swap team.

-Detail-
Spoiler


Apply to:
l4d1/2 both

-Require-Updating cfg:
  • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
Updating gamedata:
  • New signature have been added: redownload and replace gamedata/l4d_afk_commands.txt
Updating translation:
Spoiler

-Convar-
Spoiler


-Command-
Spoiler


Related plugin:
-Edit Github-
Latest version always here
It will make more sense to block switch team when survivors are still in the saferoom, because this is at this moment that people are taking the place of slow loaders, please add it with some sort of timer liek for example if after 20 seconds in saferoom players can switch team.

Last edited by JLmelenchon; 11-15-2020 at 16:00.
JLmelenchon is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 11-15-2020 , 12:43   Re: [L4D(2)] AFK and Join Team Commands (1.1)
Reply With Quote #40

Also i translated sentences to french langage, except "suicide" ones because i removed it for myself.

Code:
"Phrases"
{
	"Usage: sm_swapto"
	{
		"en"			"Usage: sm_swapto <player1> [player2] ... [playerN] <teamnum> - swap all listed players to team <teamnum> (1: spec, 2: survivor, or 3: infected)"
                "fr"                    "Utilisation: sm_swapto <player1> [player2] ... [playerN] <teamnum> - change tous les joueurs listés <teamnum> (1: spec, 2: survivants, ou 3: infectés)"
	}
	"Invalid team Number"
	{
		"#format"		"{1:s}"
		"en"			"Invalid team {1} specified, needs to be 1, 2, or 3."
                "fr"                    "Equipe invalide {1} spécifiée, doit etre 1, 2, ou 3."
	}
	"ADM Swap Player Team"
	{
		"en"			"%N(ADM): %N has been swapped to the %s team."
                "fr"                    "%N(ADM): %N a changé d'équipe avec %s."
	}
	"Idle"
	{
		"en"			"You are already idle."
                "fr"                    "Vous etes déjà infactif."
	}
	"You don't have access to change team to spectator"
	{
		"en"			"You don't have access to change team to Spectator"
                "fr"                    "Vous n'avez pas l'autorisation d'etre spectateur."
	}
	"You are already in survivor team."
	{
		"en"			"You are already in survivor team."
                "fr"                    "Vous etes déjà dans l'équipe des survivants."
	}
	"You are in idle, Press Left Mouse to play"
	{
		"en"			"You are in idle mode, press left mouse to play"
                "fr"                    "Vous êtes inactif, appuez sur le bouton gauche de la souris pour jouer."
	}
	"You don't have access to change team to survivor"
	{
		"en"			"You don't have access to change team."
                "fr"                    "Vous n'avez pas l'autorisation de changer d'équipe."
	}
	"Survivor team is full now."
	{
		"en"			"Survivor team is full now."
                "fr"                    "L'équipe des survivants est déjà au complet."
	}
	"You are already in infected team."
	{
		"en"			"You are already in infected team."
                "fr"                    "Vous etes déjà dans l'équipe des infectés."
	}
	"You don't have access to change team to Infected"
	{
		"en"			"You don't have access to change team."
                "fr"                    "Vous n'avez pas l'autorisation de changer d'équipe."
	}
	"Infected team is full now."
	{
		"en"			"Infected team is full now."
                "fr"                    "L'équipe des infectés est déjà au complet."
	}
	"This function has been blocked!"
	{
		"en"			"This function has been blocked."
                "fr"                    "La fonctionnalité a été bloquée."
	}
	"Infected can't go idle"
	{
		"en"			"Infected can not AFK..."
                "fr"                    "Les infectés ne peuvent pas s'absenter..."
	}
	"Can not change team after ignite"
	{
		"en"			"Can not change team for a while after ignite fire or barrel fuel."
                "fr"                    "Impossible de changer d'équipe juste après avoir déclenché un incendie ou détruit un baril explosif."
	}
	"Can not change team after throw"
	{
		"en"			"Can not change team for a while after throwing a grenade."
                "fr"                    "Impossible de changer d'équipe juste après avoir lancé une grenade."
	}
	"Please wait"
	{
		"#format"		"{1:.0f}"
		"en"			"Please wait {1} second(s) to change team again."
                "fr"                    "Veuillez patienter {1} secondes pour rechanger d'équipe."
	}
	"Can not change team as dead survivor"
	{
		"en"			"Can not change team as dead survivor"
                "fr"                    "Vous êtes un survivant mort, changer d'équipe est interdit."
	}
	"Can not change team during the game!!"
	{
		"en"			"Impossible to change team until the round has started."
                "fr"                    "Impossible de changer d'équipe après que le round a commencé."
	}
	"You are a dead survivor"
	{
		"en"			"You are a dead survivor, switching team is prohibited."
                "fr"                    "Vous êtes un survivant mort, changer d'équipe est interdit."
	}
	"Go Back You Team"
	{
		"#format"		"{1:s}"
		"en"			"Go Back to {1} team, switching team is prohibited until the round has started."
                "fr"                    "Retournez dans l'équipe des {1}, il n'est pas autorisé de faire de changement après que le round a commencé."	
        }
	"You can change team now."
	{
		"en"			"You can change team now."
                "fr"                    "Vous pouvez maintenant changer d'équipe."
	}
	"Infected Attack Block"
	{
		"en"			"Can not change team when you are capped by a special infected."
                "fr"                    "Impossible de changer d'équipe quand vous etes pris pour cible par un infecté spécial."
	}
}

Last edited by DarkDeviL; 11-20-2020 at 04:11. Reason: Changed from QUOTE to CODE tags
JLmelenchon 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 21:42.


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