AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   List of Useful Locked Cvars (https://forums.alliedmods.net/showthread.php?t=72608)

spunkster21 08-08-2010 07:39

Re: List of Useful Locked Cvars
 
Quote:

Originally Posted by wasder (Post 1264328)
Sorry for posting it in a dead theme, but I think it will be useful for someone - a fresh list of hidden cvars.

Thanks. tf_obj_upgrade_per_hit was just what I was looking for to increase the amount of upgrade per wrench hit. I was trying to script it, unsuccessfully, but this is so much better.

McFlurry 09-18-2010 22:46

Re: List of Useful Locked Cvars
 
1 Attachment(s)
Well I think this will be useful to some people. I edited bl4nk's code so it will make all the locked cvars/cmds unlocked and will show up as valid commands/cvars instead of unknown commands.
PHP Code:

#include <sourcemod>

public Plugin:myinfo =
{
    
name "Locked Cvar Unlocker",
    
author "bl4nk(Small edit by McFlurry)",
    
description "lists locked cvars",
    
version "1.0.1",
    
url "http://forums.alliedmods.net/"
};

public 
OnMapStart()
{
    
decl String:name[64];
    new 
Handle:cvarbool:isCommandflags;
    
cvar FindFirstConCommand(namesizeof(name), isCommandflags);
    if (
cvar == INVALID_HANDLE)
    {
        return;
    }    
    do
    {
        if(
isCommand || !(flags FCVAR_LAUNCHER))
        {
            continue;
        }
        
SetCommandFlags(nameflags & ~FCVAR_LAUNCHER);
    } while(
FindNextConCommand(cvarnamesizeof(name), isCommandflags));
    {
        
SetCommandFlags(nameflags & ~FCVAR_LAUNCHER);
    }    
    
CloseHandle(cvar);



doramide7 09-29-2010 17:31

Re: List of Useful Locked Cvars
 
Quote:

Originally Posted by ratty (Post 637958)
Someone made a plugin that lists the hidden ones:

Then you'd just have to experiement with them all to figure out what ones help, and what ones dont work so well.
I found one example of this, I modified tf_boost_drain_time and for some reason people would frequently get stuck in the ground. Didnt seem like it would cause something like that, but there it is.

Wooh, its gonna take me a while to see what the commands do, what changes to the values do, and what the default values are. -.-;

Edit: Also, the tf_boost_drain_time has nothing to do with people getting stuck. It determines how long it takes for the overheal to wear off, defaulted at 15 seconds. On my server its 120.

Edit 2: Updated the list, have fun!


All times are GMT -4. The time now is 18:22.

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