Raised This Month: $ Target: $400
 0% 

Freezing Problem


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-27-2012 , 14:49   Re: Freezing Problem
Reply With Quote #11

Quote:
Originally Posted by Napoleon_be View Post
http://www.amxmodx.org/funcwiki.php?go=func&id=123

Code:
If you set a user's maxspeed to 0.0 they will be able to run normal  speed. Set it to 1.0 if you wish to stop them from moving completely.
Fixed, wiki can sometimes lie.


See cs source code on freezetime :

Code:
void CBasePlayer::ResetMaxSpeed()
{
    float speed;    

    if ( pev->iuser1 )
    {
        speed = 900.0;
    }
    else if ( g_pGameRules->IsMultiplayer() && g_pGameRules->IsFreezePeriod() )
    {
        speed = 1.0;
    }
    else if ( m_bIsVIP )
    {
        speed = 227.0;
    }
    else if ( m_pActiveItem )
    {
        speed = m_pActiveItem->GetMaxSpeed();
    }
    else
    {
        speed = 240.0;
    }

    pev->maxspeed = speed;
}
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-27-2012 at 14:51.
ConnorMcLeod is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-27-2012 , 16:23   Re: Freezing Problem
Reply With Quote #12

Search the forums.
Backstabnoob is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-27-2012 , 18:46   Re: Freezing Problem
Reply With Quote #13

Quote:
Originally Posted by Napoleon_be View Post
Can someone fix this for me? Cause i've never worked with Ham_Item_Preframe
It's like any other ham... you just have to check if player is alive then check if a global var from freeze is true and set there max speed to 1.0

If you do not understand you can take a look from ZombiePlague ( 4.3 Fix 5a or 5.0, because later versions sets it on player prethink ), search g_freeze var.
__________________

Last edited by Neeeeeeeeeel.-; 06-27-2012 at 18:47.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
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 06:07.


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