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

[L4D1 & L4D2] Tank on Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-25-2022 , 07:36   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #51

No, it's coop only.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
gongo
Junior Member
Join Date: May 2022
Old 06-30-2022 , 11:43   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #52

Unfortunately this doesn't work well for me in L4D2.

With default settings sometimes it spawns 3 and even 4 tanks, even on first map. Should be 1 tank on first map and 2 on second map if I understood the setting well.

Used without Left 4 DHooks at first, but it does the same with Left 4 DHooks.
Tested on No Mercy, Expert

Also: It would be cool if you could make the tanks attack survivors as soon as the tanks spawn, so they all attack you at the same time. It would be much cooler than having one or more of them IDLE.

Last edited by gongo; 06-30-2022 at 12:06.
gongo is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-30-2022 , 12:16   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #53

gongo, this is what's happening when people don't stop asking more features, then other people don't read a description and think that there is a bug.
There are lot of settings which affect the number of tanks, e.g. difficulty settings, number of players, counting mode selected.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
gongo
Junior Member
Join Date: May 2022
Old 06-30-2022 , 14:36   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #54

I always read everything, even went through all the settings.

Doesn't change the fact that the plugin sometimes spawns 3 or even 4 tanks at once when it's told to spawn only 2. But as I've said, maybe there's something I'm missing.

l4d_tank_on_spawn_countlimit shouldn't play a role in this from my understanding, when I have:

l4d_tank_on_spawn_count "2"

Auto balancer is off.

l4d_tank_on_spawn_add_tanks_expert "0"

I had 4 tanks waiting for me in No Mercy map 1.

It's uncommon, but it happens. Normally I have 2 tanks.

Last edited by gongo; 06-30-2022 at 14:37.
gongo is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-01-2022 , 06:36   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #55

Can you show chat message when he start to spawn tanks?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Profanuch
Junior Member
Join Date: Jun 2020
Old 07-24-2022 , 06:45   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #56

Версия плагина 1.30, на первых картах перестали спавниться танки, до этого стояла версия 1.22, там всё работало как надо.
Настройки следующие, тут 95% по дефолту
Code:
	CreateConVar("l4d_tank_on_spawn_version", PLUGIN_VERSION, "Plugin version", FCVAR_DONTRECORD | FCVAR_NOTIFY);
	
	g_ConVarEnable = 				CreateConVar("l4d_tank_on_spawn_enabled", 			"1", 		"Enable plugin (1 - On / 0 - Off)", CVAR_FLAGS);
	g_ConVarEnableDuplicate = 		CreateConVar("l4d_tank_on_spawn_enable_duplicate", 	"1", 		"Enable tanks duplication (1 - On / 0 - Off, in this case plugin will only control tank's hp)", CVAR_FLAGS);
	g_ConVarChanceFM = 				CreateConVar("l4d_tank_on_spawn_fm_chance", 		"50", 		"Chance the tank is appear on first map (1 to 100), 0 - to disable.", CVAR_FLAGS);
	g_ConVarMinDelay = 				CreateConVar("l4d_tank_on_spawn_delay_min", 		"30.0", 	"Minimum delay tank spawn on first map after survivors left safe area", CVAR_FLAGS);
	g_ConVarMaxDelay = 				CreateConVar("l4d_tank_on_spawn_delay_max", 		"80.0", 	"Maximum delay tank spawn on first map after survivors left safe area", CVAR_FLAGS);
	g_ConVarSpawnInterval = 		CreateConVar("l4d_tank_on_spawn_interval", 			"5.0", 		"Number of seconds between each new tank spawn", CVAR_FLAGS);
	g_ConVarCountMode = 			CreateConVar("l4d_tank_on_spawn_countmode", 		"2", 		"1 - set tank count based on convar + menu / 2 - set tank count based on number of players (auto-balancer)", CVAR_FLAGS);
	g_ConVarCount = 				CreateConVar("l4d_tank_on_spawn_count", 			"2", 		"Number of tanks to spawn (for mode = 1)", CVAR_FLAGS);
	g_ConVarCountLimit = 			CreateConVar("l4d_tank_on_spawn_countlimit", 		"16", 		"Maximum number of tanks allowed simultaneously exist on the map (other will be moved in spawn queue)", CVAR_FLAGS);
	g_ConVarControlHP = 			CreateConVar("l4d_tank_on_spawn_control_hp", 		"2", 		"Do we need to control tank HP ? ( 0 - No / 1 - Fixed hp / 2 - Auto-balancer hp, based on players count)", CVAR_FLAGS);
	g_ConVarHP = 					CreateConVar("l4d_tank_on_spawn_hp", 				"28500", 	"HP of tank to set", CVAR_FLAGS);
	g_ConVarVoteAccess =			CreateConVar("l4d_tank_on_spawn_voteaccess", 		"a", 		"Flag(s) required to start the vote (leave empty to allow vote access for everybody)", CVAR_FLAGS);
	g_hCvarAnnounceDelay = 			CreateConVar("l4d_tank_on_spawn_announcedelay",		"3.0",		"Delay (in sec.) between announce and vote menu appearing", CVAR_FLAGS );
	g_hCvarTimeout = 				CreateConVar("l4d_tank_on_spawn_vote_timeout",		"10",		"How long (in sec.) does the vote last", CVAR_FLAGS );
	g_hCvarVoteDelay = 				CreateConVar("l4d_tank_on_spawn_vote_delay",		"60",		"Minimum delay (in sec.) allowed between identical vote types", CVAR_FLAGS );
	g_hCvarVoteMaxCount = 			CreateConVar("l4d_tank_on_spawn_vote_maxcount",		"4",		"Maximum count of votes allowed to do for each player per 1 round", CVAR_FLAGS );
	g_hCvarLog = 					CreateConVar("l4d_tank_on_spawn_log",				"1",		"Use logging? (1 - Yes / 0 - No)", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[1] = 		CreateConVar("l4d_tank_on_spawn_players_1",			"1",		"How many tanks should be in wave when count of players is: 1", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[2] = 		CreateConVar("l4d_tank_on_spawn_players_2",			"1",		"How many tanks should be in wave when count of players is: 2", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[3] = 		CreateConVar("l4d_tank_on_spawn_players_3",			"2",		"How many tanks should be in wave when count of players is: 3", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[4] = 		CreateConVar("l4d_tank_on_spawn_players_4",			"2",		"How many tanks should be in wave when count of players is: 4", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[5] = 		CreateConVar("l4d_tank_on_spawn_players_5",			"3",		"How many tanks should be in wave when count of players is: 5", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[6] = 		CreateConVar("l4d_tank_on_spawn_players_6",			"3",		"How many tanks should be in wave when count of players is: 6", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[7] = 		CreateConVar("l4d_tank_on_spawn_players_7",			"4",		"How many tanks should be in wave when count of players is: 7", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[8] = 		CreateConVar("l4d_tank_on_spawn_players_8",			"4",		"How many tanks should be in wave when count of players is: 8", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[9] = 		CreateConVar("l4d_tank_on_spawn_players_9",			"5",		"How many tanks should be in wave when count of players is: 9", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[10] = 	CreateConVar("l4d_tank_on_spawn_players_10",		"5",		"How many tanks should be in wave when count of players is: 10", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[11] = 	CreateConVar("l4d_tank_on_spawn_players_11",		"5",		"How many tanks should be in wave when count of players is: 11", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[12] = 	CreateConVar("l4d_tank_on_spawn_players_12",		"5",		"How many tanks should be in wave when count of players is: 12", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[13] = 	CreateConVar("l4d_tank_on_spawn_players_13",		"5",		"How many tanks should be in wave when count of players is: 13", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[14] = 	CreateConVar("l4d_tank_on_spawn_players_14",		"5",		"How many tanks should be in wave when count of players is: 14", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[15] = 	CreateConVar("l4d_tank_on_spawn_players_15",		"5",		"How many tanks should be in wave when count of players is: 15", CVAR_FLAGS );
	g_hCvarTanksOnPlayers[16] = 	CreateConVar("l4d_tank_on_spawn_players_16",		"5",		"How many tanks should be in wave when count of players is: 16 and more", CVAR_FLAGS );
	g_hCvarHpMultiplier[1] =		CreateConVar("l4d_tank_on_spawn_hpfactor_1",		"1.0",		"Multiplier of HP when count of players is: 1", CVAR_FLAGS );
	g_hCvarHpMultiplier[2] =		CreateConVar("l4d_tank_on_spawn_hpfactor_2",		"1.2",		"Multiplier of HP when count of players is: 2", CVAR_FLAGS );
	g_hCvarHpMultiplier[3] =		CreateConVar("l4d_tank_on_spawn_hpfactor_3",		"1.3",		"Multiplier of HP when count of players is: 3", CVAR_FLAGS );
	g_hCvarHpMultiplier[4] =		CreateConVar("l4d_tank_on_spawn_hpfactor_4",		"1.4",		"Multiplier of HP when count of players is: 4", CVAR_FLAGS );
	g_hCvarHpMultiplier[5] =		CreateConVar("l4d_tank_on_spawn_hpfactor_5",		"1.5",		"Multiplier of HP when count of players is: 5", CVAR_FLAGS );
	g_hCvarHpMultiplier[6] =		CreateConVar("l4d_tank_on_spawn_hpfactor_6",		"1.7",		"Multiplier of HP when count of players is: 6", CVAR_FLAGS );
	g_hCvarHpMultiplier[7] =		CreateConVar("l4d_tank_on_spawn_hpfactor_7",		"2.0",		"Multiplier of HP when count of players is: 7", CVAR_FLAGS );
	g_hCvarHpMultiplier[8] =		CreateConVar("l4d_tank_on_spawn_hpfactor_8",		"2.2",		"Multiplier of HP when count of players is: 8", CVAR_FLAGS );
	g_hCvarHpMultiplier[9] =		CreateConVar("l4d_tank_on_spawn_hpfactor_9",		"2.5",		"Multiplier of HP when count of players is: 9", CVAR_FLAGS );
	g_hCvarHpMultiplier[10] =		CreateConVar("l4d_tank_on_spawn_hpfactor_10",		"2.8",		"Multiplier of HP when count of players is: 10", CVAR_FLAGS );
	g_hCvarHpMultiplier[11] =		CreateConVar("l4d_tank_on_spawn_hpfactor_11",		"4.5",		"Multiplier of HP when count of players is: 11", CVAR_FLAGS );
	g_hCvarHpMultiplier[12] =		CreateConVar("l4d_tank_on_spawn_hpfactor_12",		"5.0",		"Multiplier of HP when count of players is: 12", CVAR_FLAGS );
	g_hCvarHpMultiplier[13] =		CreateConVar("l4d_tank_on_spawn_hpfactor_13",		"5.0",		"Multiplier of HP when count of players is: 13", CVAR_FLAGS );
	g_hCvarHpMultiplier[14] =		CreateConVar("l4d_tank_on_spawn_hpfactor_14",		"5.0",		"Multiplier of HP when count of players is: 14", CVAR_FLAGS );
	g_hCvarHpMultiplier[15] =		CreateConVar("l4d_tank_on_spawn_hpfactor_15",		"5.0",		"Multiplier of HP when count of players is: 15", CVAR_FLAGS );
	g_hCvarHpMultiplier[16] =		CreateConVar("l4d_tank_on_spawn_hpfactor_16",		"5.0",		"Multiplier of HP when count of players is: 16 and more", CVAR_FLAGS );
	g_hCvarHpFactorEasy =			CreateConVar("l4d_tank_on_spawn_hpfactor_easy",		"1.0",		"Additional multiplier of HP on difficulty: easy", CVAR_FLAGS );
	g_hCvarHpFactorNormal =			CreateConVar("l4d_tank_on_spawn_hpfactor_normal",	"1.2",		"Additional multiplier of HP on difficulty: normal", CVAR_FLAGS );
	g_hCvarHpFactorHard =			CreateConVar("l4d_tank_on_spawn_hpfactor_hard",		"1.4",		"Additional multiplier of HP on difficulty: hard", CVAR_FLAGS );
	g_hCvarHpFactorExpert =			CreateConVar("l4d_tank_on_spawn_hpfactor_expert",	"2.5",		"Additional multiplier of HP on difficulty: impossible", CVAR_FLAGS );
	g_hCvarAddTanksOnEasy =			CreateConVar("l4d_tank_on_spawn_add_tanks_easy",	"-1",		"How many tanks should be added on difficulty: easy (negative values are allowed)", CVAR_FLAGS );
	g_hCvarAddTanksOnNormal =		CreateConVar("l4d_tank_on_spawn_add_tanks_normal",	"0",		"How many tanks should be added on difficulty: normal (negative values are allowed)", CVAR_FLAGS );
	g_hCvarAddTanksOnHard =			CreateConVar("l4d_tank_on_spawn_add_tanks_hard",	"0",		"How many tanks should be added on difficulty: hard (negative values are allowed)", CVAR_FLAGS );
	g_hCvarAddTanksOnExpert =		CreateConVar("l4d_tank_on_spawn_add_tanks_expert",	"1",		"How many tanks should be added on difficulty: impossible (negative values are allowed)", CVAR_FLAGS );
	g_hCvarAddTanksOnFirstMap =		CreateConVar("l4d_tank_on_spawn_add_tanks_firstmap","-2",		"How many tanks should be added on first map (negative values are allowed)", CVAR_FLAGS );
	g_hCvarAddFinaleTanks =			CreateConVar("l4d_tank_on_spawn_add_finale_tanks",	"0",		"How many tanks should be added on finale (negative values are allowed)", CVAR_FLAGS );
	g_hCvarIngoneRush =				CreateConVar("l4d_tank_on_spawn_ignore_rush",		"1",		"Do not double tanks if somebody rushed when previous tank wave is not yet killed? (1 - Yes / 0 - No)", CVAR_FLAGS );
	g_ConVarAnnouncement =			CreateConVar("l4d_tank_on_spawn_announcement",		"1",		"Make announcement in chat when the tank is about to appear? (1 - Yes / 0 - No)", CVAR_FLAGS );
	//g_ConVarFailSpawnMode =			CreateConVar("l4d_tank_on_spawn_fail_spawn_mode",	"3",		"When game failed to spawn tank, what to do? (0 - Nothing, spawn with next delay; 1 - Try to spawn next to every player; 2 - manually and guarantee spawn next to player). You can combine flags.", CVAR_FLAGS );
	//g_ConVarFailSpawnDistanceMin =	CreateConVar("l4d_tank_on_spawn_fail_spawn_mindist","50",		"Minimum distance to player allowed to spawn tank (for fail_spawn_mode == 2)", CVAR_FLAGS);
	g_hCvarCreateTankAccessFlag = 	CreateConVar("l4d_tank_on_spawn_create_tank_flag",	"s",		"Admin flag required to spawn a tank via the menu", CVAR_FLAGS );
	g_hCvarDirectorWavesInterval_Fin = 	CreateConVar("l4d_tank_on_spawn_director_waves_interval_fin",	"0",	"(for finale) Minimum time (in sec.) required before allowing director to spawn a new tank wave after the last tank died", CVAR_FLAGS );
	g_hCvarDirectorWavesInterval_Min = 	CreateConVar("l4d_tank_on_spawn_director_waves_interval_min",	"0",	"(before finale) Minimum random start time (in sec.) required before allowing director to spawn a new tank wave after the last tank died", CVAR_FLAGS );
	g_hCvarDirectorWavesInterval_Max = 	CreateConVar("l4d_tank_on_spawn_director_waves_interval_max",	"0",	"(before finale) Minimum random end time (in sec.) required before allowing director to spawn a new tank wave after the last tank died", CVAR_FLAGS );
	g_hCvarMapStartRelax = 				CreateConVar("l4d_tank_on_spawn_mapstart_relax_time",			"0",	"Prevent director from spawning tanks within this number of seconds after map started", CVAR_FLAGS );
	g_hCvarInfoLevel = 				CreateConVar("l4d_tank_on_spawn_info_level",		"3",	"Duplicate service (vote) information? 0 - No, 1 - In console, 2 - In server. (Can be combined)", CVAR_FLAGS );
Profanuch is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-24-2022 , 09:25   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #57

А в конфиге какие настройки?

L4d2?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Profanuch
Junior Member
Join Date: Jun 2020
Old 07-27-2022 , 00:42   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #58

L4d1
Конфиг я вообще не трогаю, всегда все изменения в скрипте происходят.
Хочу уточнить, т.к вчера танк один раз на карте появился, значит функция всё таки работает. Но появился танк на карте после рестарта, не смогли пройти уровень сначала.
Я сегодня ещё поэкспериментирую с этим.
Месяца 3-4 стоит эта версия, сколько играю, ни разу танки не появлялись на первом уровне.
Profanuch is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-27-2022 , 06:19   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #59

Profanuch, изменения в скрипте не имеют приоритета. Если ты изменяешь в нём, то нужно убедиться, что при этом удаляешь файл конфига .cfg.

Вот этот параметр l4d_tank_on_spawn_fm_chance 50 - ты в курсе что он означает появление с шансом 1 к 2?
Также: l4d_tank_on_spawn_add_tanks_easy -1: у тебя на сложности "Легко" сразу отминусовывается 1 танк.
Также: l4d_tank_on_spawn_add_tanks_firstmap -2: на всех первых картах отминусовывается 2 танка. В итоге 1 танк на 1-й карте у тебя выйдет в лучшем случае в кол-ве 1 шт. с шансом 50% при минимум 5 игроках на норме+.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Profanuch
Junior Member
Join Date: Jun 2020
Old 07-27-2022 , 13:06   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #60

Это всё я знаю, cfg файл всегда удаляю, потом уже плагин загружаю на сервак.
Странно конечно, на сервере стоит всегда мастер, игроков +5 часто бывает. Попробую старую версию поставить, посмотрю на результат.
Спасибо
Profanuch 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 14:29.


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