View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-29-2020 , 11:05   [L4D1 & L4D2] Tank on Spawn
Reply With Quote #1

Description
Written as more reliable replacement of MultiTanks with other set of features.

This plugin spawns tank:
  • on first map after delay specified in ConVar when the first player leave safe area (see ConVars: l4d_tank_on_spawn_fm_chance, l4d_tank_on_spawn_add_tanks_firstmap)
  • duplicate tanks on the next maps each time when director spawn the tank

Tanks count to spawn can be adjusted:
  • directly by ConVar
  • by vote menu in any time
  • using balancer (based on current players count + game difficulty: see l4d_tank_on_spawn_players_X and l4d_tank_on_spawn_add_tanks_X ConVars).

Tanks spawn one by one with an interval defined in l4d_tank_on_spawn_interval ConVar.

Tank HP can be adjusted by:
  • ConVar
  • vote menu
  • autobalancer (players count + game difficulty)
  • or disable controlling hp at all
(if l4d_tank_on_spawn_countmode == 1, vote menu hp is preserved for all maps, otherwise it is preserved for current map only)

All votes are logged to logs/vote_tanks.log
By default, vote can be started by admin with StartVote "k" flag (adjusted by ConVar)

Features:
- spawn tank next to director's tank
- spawn tank on the first map
- autobalancer of hp and count
- max tanks control
- menu
- vote
- access levels
Compitibility:
- L4D1
- L4D2
Languages:
- Russian
- English
Settings:
Spoiler

If you want to enable balancer, you must setup such values:
PHP Code:
l4d_tank_on_spawn_control_hp "2"
l4d_tank_on_spawn_countmode "2" 
Commands:
User commands (with flag "l4d_tank_on_spawn_voteaccess"):
- sm_tank - Show tank spawn menu
- sm_tanks - same

Admin root commands:
- sm_veto - Allow admin to veto current vote.
- sm_votepass - Allow admin to bypass current vote.
Requirements:
  • GeoIP extension (included in SourceMod)
  • (optional) Left4DHooks Direct
  • Game director should work properly - If it doesn't spawn tank, this plugin doesn't append tank as well (excepting first map if you set l4d_tank_on_spawn_fm_chance > 0).
  • SourceMod v1.10+
Credits:
- Joshe Gatito (Aya Supai) - for some requests and tests
Conflicts:
- Supertanks and any plugin that hooks "z_max_player_zombies" ConVar and reset (lock) it immediately on its own (LOL, ask their authors why they do it).
* Note: "Mutant tanks" are supported since v8.66
ChangeLog
Spoiler


Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money
Attached Files
File Type: zip TankOnSpawn.zip (43.6 KB, 903 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-06-2022 at 12:54.
Dragokas is offline