Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Game Mode Config Loader 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
sedano132
Member
Join Date: Mar 2013
Old 12-29-2013 , 04:42   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #121

Hi. Work only for the gamemode listed in the main page or it is possible to create a cfg specific for every gamemode? I need 1 for the mutation15 and i have not seen mentioned anywhere.

Update: edited by myself to add the mutation15

Last edited by sedano132; 01-13-2014 at 11:43.
sedano132 is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 01-11-2014 , 12:40   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #122

Been using this plugin on both L4D and L4D2 and it is very useful. Thanks Thraka

Just one question, is it possible to have (or add a feature) a way to have CFG files for a specific game mode to be triggered only based on the number on connected players? That would be extremely usefull since I want to load commands based on the mode and number of players.

Last edited by Ellie; 01-11-2014 at 12:44.
Ellie is offline
Serpentdipity
Member
Join Date: Oct 2012
Old 08-04-2014 , 20:44   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #123

Hello! I am attempting to raise versus into expert difficulty but I am having absolutely no luck whatsoever.
I created three different .cfg files in the /left4dead2/cfg/ directory, named coop.cfg, survival.cfg, and versus.cfg. Each one has these settings:
PHP Code:
sm_cvar z_difficulty impossible
z_difficulty impossible
sm_cvar gamemode_resetconvars 0 
Since that wasn't working, I decided to put the following in my server.cfg:
Spoiler

That wasn't working either, so I finally tried to put this in my autoexec.cfg:
Spoiler


As expected, this resulted in no changes. So I read each post in this thread, copied the code from #119, recompiled- that didn't work either. Lastly, I downloaded #115, and that didn't as well! Dmg stayed consistent at normal dif for all attempts at versus. I'm at my wits end, what am I doing wrong?

Last edited by Serpentdipity; 08-04-2014 at 20:45. Reason: edited for clarity
Serpentdipity is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 10-05-2014 , 15:30   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #124

@Thraka - Thank you for this plugin. May I make a suggestion? Please change OnMapStart to OnConfigsExecuted. If you use OnMapStart, then any plugin with AutoExecConfig will "win". If you use OnConfigsExecuted, then this plugin will "win" since that is called after all plugins have executed their auto configs.

Also, I can confirm that the plugin works just fine, I have no issues with it. It takes effect on the first map and every map thereafter, and it works immediately when I change gamemodes.

---

Quote:
Originally Posted by Serpentdipity View Post
Hello! I am attempting to raise versus into expert difficulty but I am having absolutely no luck whatsoever.
By default only certain game modes obey the z_difficulty cvar. You need Left4Downtown2 and the Difficulty Override plugin, which can be used to trick the game into thinking that every gamemode has a configurable difficulty. https://forums.alliedmods.net/showthread.php?p=1340484
__________________
dcx2 is offline
mdma
Junior Member
Join Date: Nov 2006
Old 10-21-2014 , 22:39   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #125

Quote:
Originally Posted by xioSlayer View Post
When i enabled this plugin, it makes the infected team have to be about 20 ft away from survivors to spawn. This is not right. When i disable the plugin, it goes away.

What could be causing this? I need the config loader D:
EDIT: Fixed it. I had to disable your "reset convars" convar. Why is that?
I have also experienced this weird behaviour.
1) Infected spawn distance is greatly increased (fixed with manually using convars in the config files)
2) Smoker tongue recharge on miss time greatly increased (fixed again with manual convars in configs)
3) Infected stumble is greatly increased to 3 seconds or so ( i am unable to fix this, all the infected stumble have a massive stumble duration, i cannot find convars to manually change them)
I am not sure if there are others there might be but it would be good to hear from others about this, please post and let us know
I also have had to edit the code to disable the reset convars cvar.
Does anyone else have any input on this, I would like to re enable this , and fix the problems manually with convars in the relevant cfg files.
Many thanks in advance
mdma.

Last edited by mdma; 10-21-2014 at 22:41.
mdma is offline
dcx2
Senior Member
Join Date: Sep 2011
Old 10-21-2014 , 23:46   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #126

This is purely speculation but I would imagine that any scripts that are executed by the engine when the gamemode is switched could be wiped out by the resetconvars.

For example, when mp_gamemode is changed to Realism, the engine executes a script that sets a few cvars, one of which is z_non_head_damage_factor_multiplier. Consider the sequence of events:

Gamemode is set to Realism
Engine executes Realism scripts, setting z_non_head_damage_factor_multiplier to 0.5
This plugin runs, calling resetconvars and restoring the default value of 1.0

EDIT: You should not have to edit the code. Just set gamemode_resetconvars to 0, which is the default. Make sure this is the value it is set to in ....\left4dead2\cfg\sourcemod\plugin_gamemode _script.cfg
__________________

Last edited by dcx2; 10-21-2014 at 23:49.
dcx2 is offline
Merudo
Senior Member
Join Date: Feb 2016
Old 02-13-2016 , 16:15   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #127

Does this support "Realism Versus" mode?
Merudo is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 12-17-2017 , 13:54   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #128

Doesn't gamemode_resetconvars 0 fuck up gamemode changes? Like the versus spawn si distance, respawn times etc?
kot4404 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 04-29-2018 , 02:06   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #129

This plugin would be very useful, but it is not working for me.

I created 4 .cfg files and put them in the (.CFG / sourcemod) folder, I made a test and checked that the HP of the Tanks does not change according to the configuration of the files I made, so I believe nothing works.

Below is the setting, did I forget to do something? Need some _cvar in sever.cfg ?


file coop_easy.cfg

sm_cvar z_difficulty easy
sm_cvar z_tank_health 6000
sm_cvar z_health 50
sm_cvar z_spitter_health 100
sm_cvar z_hunter_health 250
sm_cvsr z_jockey_health 325
sm_cvar z_charger_health 600
sm_cvar z_witch_health
sm_cvar z_mob_recharge_rate 0.015
sm cvar z_mob_population_density 0.0128
sm_cvar z_common_limit 30
sm_cvar z_mega_mob_size 40
sm_cvar z_mega_mob_spawn_min_interval 90
sm_cvar z_mega_mob_spawn_max_interval 240
sm_cvar z_mob_spawn_min_size 20
sm_cvar z_mob_spawn_max_size 30
sm_cvar z_mob_spawn_min_interval_easy 30
sm_cvar z_mob_spawn_max_interval_easy 240
sm_cvar z_spawn_mobs_behind_chance 70
sm_cvar z_background_limit 20


file coop_normal.cfg

sm_cvar z_difficulty normal
sm_cvar z_tank_health 18000
sm_cvar z_health 70
sm_cvar z_spitter_health 200
sm_cvar z_hunter_health 350
sm_cvsr z_jockey_health 425
sm_cvar z_charger_health 700
sm_cvar z_witch_health 1000
sm_cvar z_mob_recharge_rate 0.015
sm cvar z_mob_population_density 0.0128
sm_cvar z_common_limit 40
sm_cvar z_mega_mob_size 50
sm_cvar z_mega_mob_spawn_min_interval 60
sm_cvar z_mega_mob_spawn_max_interval 180
sm_cvar z_mob_spawn_min_size 30
sm_cvar z_mob_spawn_max_size 40
sm_cvar z_mob_spawn_min_interval_normal 20
sm_cvar z_mob_spawn_max_interval_normal 160
sm_cvar z_spawn_mobs_behind_chance 80
sm_cvar z_background_limit 30

file coop_hard.cfg

sm_cvar z_difficulty hard
sm_cvar z_tank_health 20000
sm_cvar z_health 90
sm_cvar z_spitter_health 300
sm_cvar z_hunter_health 450
sm_cvsr z_jockey_health 425
sm_cvar z_charger_health 800
sm_cvar z_witch_health 1200
sm_cvar z_mob_recharge_rate 0.015
sm cvar z_mob_population_density 0.0128
sm_cvar z_common_limit 60
sm_cvar z_mega_mob_size 70
sm_cvar z_mega_mob_spawn_min_interval 30
sm_cvar z_mega_mob_spawn_max_interval 160
sm_cvar z_mob_spawn_min_size 40
sm_cvar z_mob_spawn_max_size 50
sm_cvar z_mob_spawn_min_interval_hard 10
sm_cvar z_mob_spawn_max_interval_hard 40
sm_cvar z_spawn_mobs_behind_chance 90
sm_cvar z_background_limit 40

file coop_impossible.cfg

sm_cvar z_difficulty impossible
sm_cvar z_tank_health 30000
sm_cvar z_health 130
sm_cvar z_spitter_health 400
sm_cvar z_hunter_health 650
sm_cvsr z_jockey_health 550
sm_cvar z_charger_health 900
sm_cvar z_witch_health 1400
sm_cvar z_mob_recharge_rate 0.015
sm cvar z_mob_population_density 0.0128
sm_cvar z_common_limit 70
sm_cvar z_mega_mob_size 780
sm_cvar z_mega_mob_spawn_min_interval 20
sm_cvar z_mega_mob_spawn_max_interval 130
sm_cvar z_mob_spawn_min_size 50
sm_cvar z_mob_spawn_max_size 60
sm_cvar z_mob_spawn_min_interval_hard 05
sm_cvar z_mob_spawn_max_interval_hard 30
sm_cvar z_spawn_mobs_behind_chance 90
sm_cvar z_background_limit 50
Mi.Cura is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 04-29-2018 , 08:59   Re: [L4D & L4D2] Game Mode Config Loader 1.6
Reply With Quote #130

Quote:
Originally Posted by Mi.Cura View Post
[...]
The way the plugin author has it set up is that the config files have to be located in left4dead2/cfg folder, not left4dead2/cfg/sourcemod. In my opinion the author should have made a unique folder inside cfg/sourcemod. That way the file path can be like: left4dead2/cfg/sourcemod/gamemode_configs.
__________________
Psyk0tik 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:16.


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