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

List of Useful Locked Cvars


Post New Thread Reply   
 
Thread Tools Display Modes
spunkster21
Senior Member
Join Date: Aug 2008
Old 08-08-2010 , 07:39   Re: List of Useful Locked Cvars
Reply With Quote #21

Quote:
Originally Posted by wasder View Post
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.
spunkster21 is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 09-18-2010 , 22:46   Re: List of Useful Locked Cvars
Reply With Quote #22

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);

Attached Files
File Type: sp Get Plugin or Get Source (sm_lockedcvarunlocker.sp - 593 views - 729 Bytes)
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
doramide7
New Member
Join Date: Sep 2010
Old 09-29-2010 , 17:31   Re: List of Useful Locked Cvars
Reply With Quote #23

Quote:
Originally Posted by ratty View Post
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!
__________________
doramide7 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 11:04.


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