Raised This Month: $ Target: $400
 0% 

L4D2 Sm_cvar?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ball2hi
Senior Member
Join Date: Feb 2010
Old 03-20-2010 , 23:25   L4D2 Sm_cvar?
Reply With Quote #1

I use my server for Versus mode and Campaign mode. Each mode has different cfgs that are auto executed with a plugin. One thing I want to do is make some of the zombies in Versus mode stronger. An example would be MORE zombies, but I heard there is a way to run certain commands without turning on sv_cheats. Example: sm_cvar z_common_limit 100.

Now, would this work? Would typing in sm_cvar z_common_limit 100 make 100 zombies WITHOUT turning on cheats? Also, if I do this, will people still be able to earn achievments on my server?
ball2hi is offline
triggerman
Senior Member
Join Date: Jun 2009
Old 03-21-2010 , 01:09   Re: L4D2 Sm_cvar?
Reply With Quote #2

yes, sm_cvar z_common_limit 100 will raise the max number of zombies while not touching sv_cheats. achievements will still work.

this works with cvars including ones like god and sv_infinite_ammo.

so if your wondering whether or not this can be used to cheat to get achievements, the answer is yes.
__________________
triggerman is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 03-26-2010 , 00:37   Re: L4D2 Sm_cvar?
Reply With Quote #3

Question, I currently use http://forums.alliedmods.net/showthread.php?p=834731 and I have 2 completely different cfgs.

This is my versus CFG:
Code:
//[------Boomer Splash Damage.------]\\
l4d_splash_damage_enabled 1
l4d_splash_damage_damage "10.0"
l4d_splash_damage_radius "200"
l4d_splash_damage_notification "2"

//[------Smoker Cloud Damage------]\\
l4d_cloud_damage_enabled 1
l4d_cloud_damage_damage "2.0"
l4d_cloud_damage_radius "225"
l4d_cloud_damage_revive_blocking_enabled "0"
l4d_cloud_damage_sound "player/survivor/voice/choke_5.wav"
l4d_cloud_damage_time "15.0"
l4d_cloud_meleeslow_enabled "1"
l4d_cloud_message_enabled "2"
l4d_cloud_shake_enabled "1"

//[------Boomer Bitch Slap------]\\
l4d2_boomerbitchslap_enabled 1
l4d2_boomerbitchslap_announce "1"
l4d2_boomerbitchslap_cooldown "10.0"
l4d2_boomerbitchslap_power "150.0"
sm_hsay Versus mode ENABLED!

//[-------Versus Advertisements------]
sm_advertisements_file Versusad.txt
sm_cvar vs_max_team_switches 10

//[-------Zombie Controll (Makes zombies stronger, ect.)-------]\\
//[JOCKEY]\\
sm_cvar z_jockey_health 400                    //Default 325
-3/22/10
sm_cvar z_jockey_leap_time 0.1                //default 1 - Time allowed between jockey bot leaps.
sm_cvar z_jockey_speed 400                //default 250


//[SMOKER]\\
sm_cvar tongue_miss_delay 2                    //default 15
sm_cvar tongue_hit_delay 15                    //default 20
-3/22/10
sm_cvar tongue_range 950                //default 750
sm_cvar tongue_fly_speed 3000                //default 1000



//[BOOMER]\\
sm_cvar z_vomit_interval 20                    // Default 30
sm_cvar z_exploding_health 100                 //Default 50 - boomer health
-3/22/10
sm_cvar z_vomit_range 400                            // Default 300
sm_cvar z_vomit_maxdamagedist 400                    // Defualt 350
sm_cvar z_vomit_boxsize 3                            // Default 1


//[SPITTER]\\
sm_cvar z_spitter_max_wait_time 20             //default 30
-3/22/10
sm_cvar z_spitter_speed 250                //default 210


//[CINFECTED]\\
sm_cvar z_common_limit 55                      //Default 30
z_background_limit 45                          //DEFAULT 20

//[TANK]\\
-3/22/10
sm_cvar versus_tank_chance_intro 1.0             //Default 0.3
sm_cvar versus_tank_chance_finale 1.0            //Default 0.1
sm_cvar versus_tank_chance 1.0                   //Default 0.75


//[HUNTER]\\

//[CHARGER]\\

//[WITCH]\\
-3/22/10
sm_cvar versus_witch_chance 1.0
sm_cvar versus_witch_chance_finale 0.0
sm_cvar versus_witch_chance_intro 1.0


//[------SpawnTimes------]\\
sm_cvar z_ghost_delay_max 20 // Default 30
sm_cvar z_ghost_delay_min 15 // Default 20
survivor_revive_health 50 //Default 30
sm_cvar z_fog_spawn 1                             // Default 0


//[------Bot Behavior------]\\
sm_cvar sb_friend_immobilized_reaction_time_normal 0        // Default 2
sm_cvar sb_friend_immobilized_reaction_time_hard 0        // Default 1
sm_cvar sb_friend_immobilized_reaction_time_expert 0        // Default 0.5
sm_cvar sb_friend_immobilized_reaction_time_vs 0        // Default 0.5

sm_cvar sb_max_battlestation_range_from_human 200        // Default 750
sm_cvar sb_battlestation_give_up_range_from_human 450        // Default 1500
sm_cvar sb_battlestation_human_hold_time 2             // Default 4
sm_cvar sb_close_checkpoint_door_interval 0.3             // Default 2

sm_cvar sb_separation_danger_max_range 400                // Default 600
sm_cvar sb_separation_danger_max_range 300                // Default 500
sm_cvar sb_separation_range 100                        // Default 200                    
sm_cvar sb_max_scavenge_separation 500

sm_cvar sb_follow_stress_factor 500                    // Default 0.5

sm_cvar sb_locomotion_wait_threshold 2                // Default 10

sm_cvar sb_neighbor_range 225                        // Default 300 - How close a friend needs to be to feel safe

sm_cvar sb_threat_close_range 200                    // Default 150 - Very close range for threats
sm_cvar sb_threat_very_close_range 125                // Default 150
sm_cvar sb_threat_medium_range 600                    // Default 300 - Too close for comfort, even when neutral
sm_cvar sb_threat_far_range 1200                    // Default 600 - Close enough to be a threat if near several other threats
sm_cvar sb_threat_very_far_range 2000                    // Default 1500 - Too far to be a threat, even for boss infected

sm_cvar survivor_ff_avoidance 1                        // Default 0 - maybe this is what keeps them from running in front of you? :P
sm_cvar survivor_ff_avoidance_pitch 20                // Default 20
sm_cvar survivor_ff_avoidance_yaw 10                    // Default 10
sm_cvar survivor_ff_tolerance 26                    // Default 26

sm_cvar sb_max_team_melee_weapons 2
Now, those ones like
sm_cvar versus_tank_chance_intro 1.0 //Default 0.3
sm_cvar versus_tank_chance_finale 1.0 //Default 0.1
sm_cvar versus_tank_chance 1.0 //Default 0.75

do I have to put into the NORMAL MODE cfg
sm_cvar versus_tank_chance_Intro 0.3? or will it just use the default.
ball2hi is offline
c3v0r
Member
Join Date: Aug 2009
Old 03-27-2010 , 08:05   Re: L4D2 Sm_cvar?
Reply With Quote #4

I would recommend to just install confogl...

http://code.google.com/p/confogl/
c3v0r is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 03-27-2010 , 12:44   Re: L4D2 Sm_cvar?
Reply With Quote #5

Quote:
Originally Posted by c3v0r View Post
I would recommend to just install confogl...

http://code.google.com/p/confogl/
Thank you... but that was 100% not what I was asking.

Last edited by ball2hi; 03-27-2010 at 12:58.
ball2hi is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 03-29-2010 , 02:21   Re: L4D2 Sm_cvar?
Reply With Quote #6

Quote:
Originally Posted by ball2hi View Post
Thank you... but that was 100% not what I was asking.
I know I'm not suppose to bump this early... but I really need to know about this for my server.
ball2hi is offline
Frus
Senior Member
Join Date: Aug 2009
Old 04-02-2010 , 14:11   Re: L4D2 Sm_cvar?
Reply With Quote #7

You have to explicitely change cvars, they won't default by themselves if that's what you're asking.

I would recommend using sm_resetcvar <cvar> when 'defaulting' cvars though.
Frus is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 04-02-2010 , 14:30   Re: L4D2 Sm_cvar?
Reply With Quote #8

Quote:
Originally Posted by Frus View Post
You have to explicitely change cvars, they won't default by themselves if that's what you're asking.

I would recommend using sm_resetcvar <cvar> when 'defaulting' cvars though.
Idk if this would work. Basically what i want to know is... lets say for example. I want the tank (In versus mode) to deal 50 damage per swing. So I do something like "Sm_cvar tankdamage 50"

Now, I just played a versus game. The plugin automatically runs the CFG, now, the versus game is finished. I decide to play an Expert Campaign game. Where the tank by default is 1 shot on incap. Now the problem is, the "sm_cvar tankdamage 50" from my VERSUS cfg, will that carry over to my campaign mode expert? Would I have to have the line "sm_resetcvar tankdamage" in order for it to be the default that it is in Expert Campaign when I play it?



Here's another example:

I set the jockey's speed to 500 on Versus. Now, I start up a new game where I play Expert Campaign, and I dont want the jockey's speed to carry over from the Versus mode. Do I have to put in "sm_resetcvar jockeyspeed" in order for it to be the normal of which it is in Expert Campaign?
ball2hi is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 04-03-2010 , 12:56   Re: L4D2 Sm_cvar?
Reply With Quote #9

In the config loader thread someone asked the same thing and I posted this in response. If you put this at the top of your config file, it will reset all game variables at the start.

sv_cheats 1
reset_gameconvars
sv_cheats 0
Thraka is offline
ball2hi
Senior Member
Join Date: Feb 2010
Old 04-03-2010 , 14:26   Re: L4D2 Sm_cvar?
Reply With Quote #10

Quote:
Originally Posted by Thraka View Post
In the config loader thread someone asked the same thing and I posted this in response. If you put this at the top of your config file, it will reset all game variables at the start.

sv_cheats 1
reset_gameconvars
sv_cheats 0
Hmmm, that might work! Question though, I know some achievements (Like completing the entire Expert Campaign mode) require you to have never turned on sv_cheats during the entire campaign otherwise you can not get the achievement. Would this interfere?

edit-

Wait, cant I just use "sm_cvar reset_gameconvars"? That'd work without turning on sv_cheats no?
ball2hi 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 03:12.


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