Obsidian CVAR list

Server Help/Discussion.
Post Reply
DrHeadhumper
Polygon
Polygon
Posts: 20
Joined: Mon May 31, 2010 2:35 am

Obsidian CVAR list

Post by DrHeadhumper »

I noticed the sticky on CVARS was far from complete, so I decided to create this thread. Feel free to post any custom CVARS you know of. I also plan to put other useful commands that already exist in HL2DM.

Format
These are not real commands and are solely for the purpose of demonstrating the format of this guide.
cvar_range {0,1,2}
Can be set to 0, 1, or 2.
cvar_integer <int>
Can be set to any integer.
cvar_string "string"
Can be set to any string of characters.
cvar_command
Technically not a cvar, but is instead a command to be executed on its own (some examples are retry, quit, and buildcubemaps)
Write the argument in white if it does not always apply.
Sometimes an argument could be one of multiple data types, just write it out if this is the case.
Example of how you would write ent_fire with this:

ent_fire "targetname" "input" value <delay>

Now for the rest of the format:
[flags, go, here]
Fires an input on an entity.
targetname - The name of the entity.
input - The input to fire.
value - The value to fire the input with (if applicable)
delay - How long to wait before the input is fired.

For boolean cvars you should explain what each value does if there are more than two values.

Now for the actual guide:


mp_playercollide {0,1}
[game replicated]
Whether players are solid to each other.

sk_sniperlaser {0,1}
[game replicated]
Toggles lasers on the sniper rifle weapon.

sv_allowgaussjump {0,1}
[game]
Decides whether players can jump with the Tau Cannon.

mp_falldamage
[game notify]
0 = Take 10 damage for any fall large enough to induce damage, regardless of height
1 = Take damage depending on the fall height.

mp_timelimit <minutes from map start until map changes>
[game notify replicated]
This is the time limit represented by how many minutes from the start of the map. <caps> IF YOU WANT TO INCREASE THE TIME LIMIT ALWAYS MAKE THIS NUMBER BIGGER, IF YOU EVER DECREASE THIS THE MAP WILL ALMOST INSTANTLY CHANGE </caps>If set to 0 then there will be no time limit.

sv_hl2mp_weapon_respawn_time <seconds>
[game notify]
The time it takes for a weapon to respawn.

sv_hl2mp_item_respawn_time <seconds>
[game notify]
The time it takes for an item to respawn.

sv_hl2mp_mp_robust_explosions {0,1}
[game replicated]
Unknown function.

mp_hl1crossbow {0,1}
[game notify]
If set to 1, the crossbow cannot pin ragdolls to walls and will explode.

mp_forcerespawn {0,1}
[game notify]
Whether or not to force players to respawn when they die.

mp_bunnyhop
[game replicated]
Bunnyhop mode.
0 = off
1 = EP2 style (max speed enforced)
2 = Unlimited hop speed

mp_teamplay
[game notify]
If set to 1, forces teamplay mode.

sv_maxinvobjectweight <kilograms>
[game]
How heavy an object can be and still be stored in the player's inventory. There is no point in setting this over 35 as the player alone can only lift 35 kilograms and I have not found a cvar to change this.

mp_allowcrosshair
[game notify replicated]
Allow or disallow crosshair display.

mp_allowironsights
[game notify replicated]
Allow or disallow weapon iron sight toggle. If you turned crosshairs off then it would be a good idea to ensure that this is on.

mp_allowspectators
[game replicated]
Whether spectators are allowed.

mp_allowsprint
[game notify]
Whether sprinting is allowed.

mp_flashlight
[game notify]
Allow use of the flashlight?

mp_friendlyfire
[game notify replicated]
Whether you can kill people on your team. Be VERY CAREFUL with this and make sure an admin is on constantly if this is on, since this causes a lot of griefing.

sv_shieldstrength
[game replicated]
How much damage the shield can take before it depletes. Probably makes it last longer too.

sv_tauplayerradiusdmg
[game]
If 1, charged tau shots hurt the owning player

sv_turbophysics
[game replicated]
Turns on turbo physics -- Someone please test this, since the help for this command had to be unhelpful.

sk_vortigaunt_armor_charge
[game]
Sometimes vortigaunts will decide to charge your armor up a bit. This will decide how much they are willing to charge you up.

sk_weapon_ar2_alt_fire_duration
[game]
How long AR2 energy balls will last.
Last edited by DrHeadhumper on Thu Aug 05, 2010 10:21 pm, edited 3 times in total.
Axel_m3sh
npc_combine_elite
npc_combine_elite
Posts: 469
Joined: Wed Nov 05, 2008 5:52 am
Location: lolwut L0C4tI0n?
Contact:

Post by Axel_m3sh »

mp_hl1crossbow 1 also makes the bolt explode on contact with non-organics (the world geometry in general, might be different with props), does not rebound far before exploding.
User avatar
Rufus
Polygon
Polygon
Posts: 37
Joined: Sun Oct 25, 2009 4:27 pm

Post by Rufus »

This may be unrelated but... Why do you have three boolean values?
And, what are they? False, True... And maybe?
DrHeadhumper
Polygon
Polygon
Posts: 20
Joined: Mon May 31, 2010 2:35 am

Post by DrHeadhumper »

Some variables work like boolean values but have more than two possible settings. For example, mp_bunnyhop can be set to have no limit to bunnyhop speed, completely disable bunnyhop, or EP2 style where there is a speed limit. I really shouldn't call it boolean, but there really isn't anything else I can call it.
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post by Neico »

maybe value, range or integer?...
Image
User avatar
Rufus
Polygon
Polygon
Posts: 37
Joined: Sun Oct 25, 2009 4:27 pm

Post by Rufus »

DrHeadhumper wrote:I really shouldn't call it boolean
*cough*
DrHeadhumper wrote:but there really isn't anything else I can call it.
Well, there are the ones Neico suggested, but it sounds to me like it's gunna be a byte value. But for some reason, people seem to use int32s in places as bytes now-er-days anyway, so integer could be more fitting.

Either way, I agree with Neico that value is nice and vague.
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post by Neico »

choice could be more fitting there...

hope that's now enaugh ideas :P
Image
Post Reply