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

Changing Uber Charge Time and Cloak Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-10-2008 , 18:37   Changing Uber Charge Time and Cloak Time
Reply With Quote #1

Need this info. I'm sure it's either a CVAR or in a script file, but I do not know which one.
Cooltad is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-10-2008 , 23:28   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #2

CTFPlayer::m_flCloakMeter
CWeaponMedigun::m_flChargeLevel
bl4nk is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-10-2008 , 23:40   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #3

A bit confusing, are those CVARS or script files?
If the ladder than file name please?
Cooltad is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-11-2008 , 00:11   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #4

They're neither, they're networked properties.
bl4nk is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-11-2008 , 00:18   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #5

So roughly how would I go about changing they're values?
Cooltad is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 06-12-2008 , 22:36   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #6

sm_cvar tf_spy_invis_time
sm_cvar weapon_medigun_chargerelease_rate

may or may not do what youre after, give it a shot.
Also see
http://forums.alliedmods.net/showthread.php?t=72608
ratty is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-12-2008 , 23:47   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #7

Wtf? Thats the thread I made. XD
Cooltad is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 06-13-2008 , 01:35   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #8

Your welcome for answering your question about cloak and uber charge times.
ratty is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 06-13-2008 , 20:31   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #9

Yeah but in my thread I had already discovered it myself a few days ago. @.@
Cooltad is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 06-13-2008 , 23:14   Re: Changing Uber Charge Time and Cloak Time
Reply With Quote #10

PHP Code:
stock tf2_CloakMeterOffset;
stock bool:tf2_CloakMeterSet false;

stock TF2_GetCloakMeterOffset()
{
    if (!
tf2_CloakMeterOffset)
    {
        
tf2_CloakMeterOffset=FindSendPropInfo("CTFPlayer","m_flCloakMeter");
        
tf2_CloakMeterSet true;
    }
    return 
tf2_CloakMeterOffset;
}

stock Float:TF2_GetCloakMeter(client)
{
    if (
IsClientConnected(client))
    {
        if (
TF2_GetCloakMeterOffset() > 0)
            return 
GetEntDataFloat(client,tf2_CloakMeterOffset);
    }
    return -
1.0;
}

stock TF2_SetCloakMeter(client,Float:cloakMeter)
{
    if (
IsClientConnected(client))
    {
        if (
TF2_GetCloakMeterOffset() > 0)
            
SetEntDataFloat(client,tf2_CloakMeterOffset,cloakMeter);
    }

PHP Code:
stock TF_IsUberCharge(client)
{
    new 
index GetPlayerWeaponSlot(client1);
    if (
index 0)
        return 
GetEntProp(indexProp_Send"m_bChargeRelease"1);
    else
        return 
0;
}

stock TF_GetUberLevel(client)
{
    new 
index GetPlayerWeaponSlot(client1);
    if (
index 0)
        return 
RoundFloat(GetEntPropFloat(indexProp_Send"m_flChargeLevel")*100);
    else
        return 
0;
}

stock TF_SetUberLevel(clientuberlevel)
{
    new 
index GetPlayerWeaponSlot(client1);
    if (
index 0)
        
SetEntPropFloat(indexProp_Send"m_flChargeLevel"uberlevel*0.01);

naris 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 01:14.


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