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

[L4D 2] tank on no mercy 1 and 4?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GanjaStar
Senior Member
Join Date: Jun 2009
Old 10-07-2010 , 11:47   [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #1

Anyone have tanks on those maps? srs mod doesnt do it for me anyomore.


talking about versus here.
GanjaStar is offline
GanjaStar
Senior Member
Join Date: Jun 2009
Old 10-07-2010 , 21:01   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #2

bump
GanjaStar is offline
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 10-07-2010 , 21:25   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #3

versus_boss_padding_min 0.0
versus_boss_padding_max 0.0

Try that, report back.
ProdigySim is offline
pta
New Member
Join Date: Oct 2010
Old 10-08-2010 , 04:17   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #4

In NoMercy(c8m1-m5), the command of sm_cvar versus_* (tank_chance, witch_chance, boss_flow, etc...) doesn't work.

this is c8m1_apartment console & command log:

] versus_boss_flow_min 0.2
] versus_boss_flow_max 0.7
] versus_boss_padding_min 0.0
] versus_boss_padding_max 0.0
] versus_boss_flow_test
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.50 - Team 1: Tank -1.00 Witch 0.50
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.55 - Team 1: Tank -1.00 Witch 0.55
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.80 - Team 1: Tank -1.00 Witch 0.80
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.48 - Team 1: Tank -1.00 Witch 0.48
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.67 - Team 1: Tank -1.00 Witch 0.67
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.79 - Team 1: Tank -1.00 Witch 0.79
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.87 - Team 1: Tank -1.00 Witch 0.87
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.72 - Team 1: Tank -1.00 Witch 0.72
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.47 - Team 1: Tank -1.00 Witch 0.47
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.64 - Team 1: Tank -1.00 Witch 0.64
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.68 - Team 1: Tank -1.00 Witch 0.68
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.37 - Team 1: Tank -1.00 Witch 0.37
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.68 - Team 1: Tank -1.00 Witch 0.68
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.43 - Team 1: Tank -1.00 Witch 0.43
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.57 - Team 1: Tank -1.00 Witch 0.57
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.33 - Team 1: Tank -1.00 Witch 0.33
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.69 - Team 1: Tank -1.00 Witch 0.69
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.70 - Team 1: Tank -1.00 Witch 0.70
Versus Boss: MinFlow 0.30 MaxFlow 0.90 - Team 0: Tank -1.00 Witch 0.43 - Team 1: Tank -1.00 Witch 0.43


-1.00 means tank doesn't spawn.
It resets to the default value even if boss_flow is set by sm_cvar command.
pta is offline
GanjaStar
Senior Member
Join Date: Jun 2009
Old 10-08-2010 , 06:33   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #5

yeah, i figured it overides the cvars because i have set for map 1 to have no witch, and yet there is ALWAYS a witch.


How are the comp modders going to get around this
GanjaStar is offline
pta
New Member
Join Date: Oct 2010
Old 10-11-2010 , 16:50   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #6

I solved this problem.
versus boss settings were overrided by mission script and vscript.

missionscript
extract "root/missions/campaing8.txt" from "srcds/left4dead2/update/pak01_dir.vpk"
VPK: http://developer.valvesoftware.com/wiki/VPK

This is part of a campaing8.txt
------------------------------------------
"versus"
{
"1"
{
"Map" "c8m1_apartment"
"DisplayName" "#L4D360UI_LevelName_VERSUS_C8M1"
"Image" "maps/l4d_hospital01_apartment"
"VersusCompletionScore" "400"
"versus_boss_spawning"
{
"spawn_pos_min" "0.30"
"spawn_pos_max" "0.90"
"tank_chance" "0.00"
"witch_chance" "0.00"
}
}
}
------------------------------------------
delete or comment out red text and repack to vpk.


vscript
extract "root/scripts/vscripts/c8m1_apartment.nuc" from "srcds/left4dead2/left4dead2_dlc2/pak01_dir.vpk"
and decrypt it with vice. key is SDhfi878.
VICE: http://developer.valvesoftware.com/wiki/VICE

This is part of a campaing8.txt
------------------------------------------
DirectorOptions <-
{
DisallowThreatType = ZOMBIE_TANK
}
------------------------------------------
delete or coment out it and repack after encrypts(if you need).


done.
you can control boss settings by sm_cvar versus_* commands.
The sacrifice can be solved in a similar way.
pta is offline
Exeter350
Junior Member
Join Date: Aug 2015
Old 10-23-2018 , 04:40   Re: [L4D 2] tank on no mercy 1 and 4?
Reply With Quote #7

Following on from pta's post:

I used gcfscape to unpack the .vpk (using the vpk.exe in the L4D2 game files won't work), and L4D2 Vscript Editor Beta by Cynick to decompile, modify and recompile the vscript files, which are in .nuc format.

Then I pack the files I modified into a .vpk file using the vpk.exe in the L4D2 game files, following their original directories, and put that into my addon folder.

Enable it in your Addons in-game, then host a server. The modified files work online, other players will be able to join your game. You will not be able to join other people's games unless you disable the Addon.

Using this method, I was able to unlock bosses and boss limits (and common limits) on intro and finale maps:
* Dead Center 1
* The Parish 1
* All the L4D1 intro and finale maps

There are other limits that Valve put in those vscripts which you can remove, such as the 20 Common Limit for L4D1 finale maps (compared to 25 on Dark Carnival finale, or 30 by default on most maps. So if you ever felt like, say, Death Toll's finale hordes are too damn small, now you can remove the limit or set it higher than default).

Thinking of uploading my files onto the Steam Workshop soon. Without any plugins, the files by themselves will:
* Enable tank spawns on all intro maps by removing the vscript that prohibited their spawning in the first place. This DOES NOT guarantee boss spawns, it simply removes the prohibition.
* Enable bigger hordes on finale maps by removing the vscript that limited mob sizes to less than default.

I normally use Multitanks v17 with two Tank spawns during the second Tank wave on finale maps, which works on L4D2 campaigns but not L4D1 due to vscripts. Now, FINALLY, I can have two Tanks at once on the L4D1 finale maps.

You can also modify the mission files as described by pta to remove the boss spawn limits in Versus mode.


UPDATE:
* When I modify and pack the mission files into the .vpk, some of the modified vscripts don't get overridden. Maybe there's a limit on how many files you can put in a .vpk? Not very sure about this. Without the mission files, the original vscripts are overridden by my modified vscripts flawlessly.

* In order to get a guaranteed Tank and multiple Witches on every map, I use Ja-Force's Witches Respawn Control v16 plugin to handle my Witch spawns and Timocop's VScript Director Options Unlocker to disable witch spawning by the Director (DisallowThreatType=7). Since the Director spawns a boss on every map, but is now prevented from spawning a Witch, it will spawn a Tank on every map.

You can probably use Tordecybombo's Auto Infected Spawner to handle Witch spawns too, as well as any other plugin that spawns Witches independently of the Director.


UPDATE 2:
Come to think of it, you can probably just use Timocop's VScript Director Options Unlocker to make all your vscript edits. It fires every 0.5 seconds, so it'll override all default vscripts.

But I'll leave this post here anyway in case people wonder how to act on pta's information.


UPDATE 3:
CONFIRMED: Overriding vscripts can be done with Timocop's plugin without extracting, decompiling, modifying, recompiling the game files etc.

Some of the syntax used is a bit different from those listed on the page he provided: https://developer.valvesoftware.com/...rector_Scripts

For instance, ProhibitBosses only works if it's "1" or "0" in the plugin's .cfg file, and not "true" or "false" like if you were editing the .nuc file directly. It doesn't return an error if you put "true" or "false", but it won't work.

For DisallowThreatType, "ZOMBIE_TANK" and "ZOMBIE_WITCH" won't work. Instead, scroll down to the bottom of the page where you'll see all the different Special Infected defined by respective numbers (ZOMBIE_WITCH = 7).

Modifying director scripts that use a numerical value should be fairly straightforward. Director scripts that use non-numerical values will probably need some experimenting. Bools are just "1" or "0" instead of "true" or "false".

If you want map-specific changes, you'll have to use a map-specific configs plugin. Personally, I use Chi_Nai's Map-based Configs plugin.


Back to thread topic:
You can enable Tanks on No Mercy 1 and 4 (and all other maps) by using plugins to modify vscripts and mission files. Modifying vscripts alone is enough for co-op, not sure if it's necessary for versus. For versus, you will have to modify mission scripts to adjust versus boss spawn rates.

Vscript:
VScript Director Options Unlocker by Timocop https://forums.alliedmods.net/showthread.php?p=2535972
List of L4D2 Director Scripts https://developer.valvesoftware.com/...rector_Scripts

Mission Script:
Mission and Weapons - Info Editor by Silvers https://forums.alliedmods.net/showthread.php?p=2614626
List of L4D2 Mission Files https://developer.valvesoftware.com/..._Mission_Files

Last edited by Exeter350; 10-23-2018 at 12:21.
Exeter350 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 00:54.


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