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

[L4D1 & L4D2] Tank on Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
ChadMaestro
Junior Member
Join Date: Dec 2009
Old 10-15-2021 , 03:09   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #41

Quote:
Originally Posted by rtokuda View Post
The l4d cvar "tank_on_spawn_hp" does not work, the tank always has HP 20,000, even changing the value.
Also experiencing this issue - but also noting that the plugin doesn't load properly.

It looks fine when listing plugins, but when trying to reload it, console says it's not loaded. And when trying to load it, console says there is an error.

Code:
sm plugins load tankonspawn
[SM] Plugin tankonspawn.smx failed to load: Unable to open file.
sm_tanks
L 10/15/2021 - 20:06:24: [SM] Exception reported: Client index 0 is invalid
L 10/15/2021 - 20:06:24: [SM] Blaming: l4d_TankOnSpawn.smx
L 10/15/2021 - 20:06:24: [SM] Call stack trace:
L 10/15/2021 - 20:06:24: [SM]   [0] GetUserFlagBits
L 10/15/2021 - 20:06:24: [SM]   [1] Line 1126, H:\_To_games\Left4Dead_2\My_mods\Tank\TankOnSpawn\scripting\l4d_TankOnSpawn.sp::IsClientRootAdmin
L 10/15/2021 - 20:06:24: [SM]   [2] Line 368, H:\_To_games\Left4Dead_2\My_mods\Tank\TankOnSpawn\scripting\l4d_TankOnSpawn.sp::vMenuTankSpawn
L 10/15/2021 - 20:06:24: [SM]   [3] Line 343, H:\_To_games\Left4Dead_2\My_mods\Tank\TankOnSpawn\scripting\l4d_TankOnSpawn.sp::Command_MenuTankSpawn
Windows Server.
Latest SourceMod and MetaMod.

I've been searching for a way to ensure a tank on first map for months, just seems it's basically not possible.
ChadMaestro is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-15-2021 , 10:00   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #42

Listen servers are not suppoted. Download normal dedicated server. Instruction here (section 2).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-15-2021 , 10:15   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #43

Usually, you can't use commands on Listen Servers from console.

Instead, you have to type in chat "!sm_tanks" and it probably will work.

Anyway as Dragokas said, is not recommended, neither supported to use Listen Servers for "live" servers.

If you can't, for some reason, try installing this plugin.
__________________
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-06-2022 , 15:12   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #44

Updated.

Quote:
1.23 (31-Oct-2020)
- Added ConVar "l4d_tank_on_spawn_create_tank_flag" - Admin flag required to spawn a tank via the menu

1.24 (29-May-2021)
- Prevented tank duplication on vehicle leaving.

1.25 (05-Jun-2021)
- Some ConVars are added to help combatting with weird director behaviour when tank waves spawns too often:
* l4d_tank_on_spawn_director_waves_interval_fin - def.: 0 - (for finale) Minimum time (in sec.) required before allowing director to spawn a new tank wave after the last tank died
* l4d_tank_on_spawn_director_waves_interval_min - def.: 0 - (before finale) Minimum random start time (in sec.) required before allowing director to spawn a new tank wave after the last tank died
* l4d_tank_on_spawn_director_waves_interval_max - def.: 0 - (before finale) Minimum random end time (in sec.) required before allowing director to spawn a new tank wave after the last tank died
Default: disabled. (optionally) Recommended values to fix problems (when only they take place): 30 / 60 / 180 respectively.

- Added ConVar "l4d_tank_on_spawn_enable_duplicate" - Enable tanks duplication (1 - On / 0 - Off, in this case plugin will only control tank's hp)
- Made ConVar "l4d_tank_on_spawn_enabled" to be dynamically tracked.
- Tank spawn check (and hp assigning) is 0.1 sec. delayed now to give more flexibility for 3rd party plugins.

1.28 (06-Feb-2022)
- Changed many ConVar's default values to prevent misunderstanding like "why the number of tanks spawned is different to the one I voted":
* Autobalancer is disabled by default. Read "Settings" section carefully to understand how to enable.
- Added ConVar "l4d_tank_on_spawn_mapstart_relax_time" - Prevent director from spawning tanks within this number of seconds after map started
- Added ConVar "l4d_tank_on_spawn_info_level" - Duplicate service (vote) information? 0 - No, 1 - In console, 2 - In server. (Can be combined)
- Added compatiblity with listen servers (thanks to @Marttt).
- Added translation into Hungarian (thanks to @KasperH).
- Corrected some translation colors.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-21-2022 , 12:22   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #45

Updated.

Quote:
1.30 (21-Feb-2022)
- Removed privately hardcoded decreasing tank count on 2 maps of L4D1.
- Fixed menu selected values aren't preserved for the next campaign (conflicting with ConVars Anomaly Fixer's "Round Start" enforcer).
- Make "left4dhooks" to be really optional.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Neshta
New Member
Join Date: Apr 2022
Old 04-06-2022 , 12:48   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #46

Доброго времени. При компиляции возникли следующие ошибки:

l4d_TankOnSpawn.sp(199) : error 139: could not find type "GameData"
l4d_TankOnSpawn.sp(199) : error 116: no methodmap or class was found for GameData
l4d_TankOnSpawn.sp(200) : error 148: cannot assign null to a non-nullable type
l4d_TankOnSpawn.sp(203) : warning 213: tag mismatch
l4d_TankOnSpawn.sp(208 : error 167: cannot use delete, integers do not have destructors


заранее спасибо за помощь

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

Minimum required version is SourceMod 1.10.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 05-07-2022 , 10:17   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #48

Why does my tank always only show 19
HTML Code:
Tank 19/50 Health: 10000
How to increase the maximum number of tanks
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

Last edited by ZBzibing; 05-07-2022 at 10:19.
ZBzibing is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-07-2022 , 11:44   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #49

The max number of tank entities in L4D engine is limited by the MaxClient constant which is 32 and also includes all players and bots (survivors and infected).
So actual max tank number = 32 - players - bots (from all teams).
Also, max simultaneous tanks are hard limited in ConVar:

Code:
- l4d_tank_on_spawn_countlimit - def.: 16 - Maximum number of tanks allowed simultaneously exist on the map (other will be moved in spawn queue)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 06-24-2022 , 23:40   Re: [L4D1 & L4D2] Tank on Spawn
Reply With Quote #50

Hi, add versus support
tank won't spawn after changing teams

Last edited by Voevoda; 06-24-2022 at 23:40.
Voevoda 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 05:12.


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