Raised This Month: $ Target: $400
 0% 

VSH Versus Saxton Hale 1.55 - New Saxton Hale + Vagineer Models!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nergal
Veteran Member
Join Date: Apr 2012
Old 07-15-2014 , 12:41   Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
Reply With Quote #10

I'd also like to state that I've successfully fixed the "First Round Glitch or FRG" (the frg is when, after playing the 1st round of arena and then 2nd round being 1st round of saxton hale, players will usually/sometimes not have the intended weapon switches/changes)

Change this
PHP Code:
public Action:StartHaleTimer(Handle:hTimer)
{
    
CreateTimer(0.1GottamTimer);
    if (!
IsValidClient(Hale))
    {
        
VSHRoundState 2;
        return 
Plugin_Continue;
    }
    if (!
IsPlayerAlive(Hale))
    {
        
TF2_RespawnPlayer(Hale);
    }
    
playing 0;
    for (new 
client 1client <= MaxClientsclient++)
    {
        if (
IsValidClient(client) && (client != Hale) && IsPlayerAlive(client))
        {
            
playing++;
            
CreateTimer(0.15MakeNoHaleGetClientUserId(client));
        }
    } 
To this!
PHP Code:
public Action:StartHaleTimer(Handle:hTimer)
{
    
CreateTimer(0.1GottamTimer);
    if (!
IsValidClient(Hale))
    {
        
VSHRoundState 2;
        return 
Plugin_Continue;
    }
    if (!
IsPlayerAlive(Hale)) TF2_RespawnPlayer(Hale);
    
playing 0;
    for (new 
1<= MaxClientsi++)
    {
        if (!
IsClientInGame(i) || !IsPlayerAlive(i) || == Hale) continue;
        
playing++;
        
CreateTimer(0.2MakeNoHaleGetClientUserId(i));
    } 
Then change this
PHP Code:
public Action:event_player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if (!
IsValidClient(clientfalse))
        return 
Plugin_Continue;
    if (!
Enabled)
        return 
Plugin_Continue;
    
SetVariantString("");
    
AcceptEntityInput(client"SetCustomModel");
    if (
client == Hale && VSHRoundState && VSHRoundState != -1)
        
CreateTimer(0.1MakeHale);
    else if (
VSHRoundState >= 0)
    {
        if (!(
VSHFlags[client] & VSHFLAG_HASONGIVED))
        {
            
VSHFlags[client] |= VSHFLAG_HASONGIVED;
            
RemovePlayerBack(client, { 57133231405444608642 }, 7);
            
RemovePlayerTarge(client);
            
TF2_RemoveAllWeapons(client);
            
TF2_RegeneratePlayer(client);
            
CreateTimer(0.1Timer_RegenPlayerGetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);
        }
        
CreateTimer(0.2MakeNoHaleGetClientUserId(client));
    } 
to this!
PHP Code:
public Action:event_player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if (!
IsValidClient(clientfalse)) return Plugin_Continue;
    if (!
Enabled) return Plugin_Continue;
    
SetVariantString("");
    
AcceptEntityInput(client"SetCustomModel");
    if (
client == Hale && VSHRoundState && VSHRoundState != -1CreateTimer(0.1MakeHale);

    if (
VSHRoundState != -1)
    {
        
CreateTimer(0.2MakeNoHaleGetClientUserId(client));
        if (!(
VSHFlags[client] & VSHFLAG_HASONGIVED))
        {
            
VSHFlags[client] |= VSHFLAG_HASONGIVED;
            
RemovePlayerBack(client, { 57133231405444608642 }, 7);
            
RemovePlayerTarge(client);
            
TF2_RemoveAllWeapons(client);
            
TF2_RegeneratePlayer(client);
            
CreateTimer(0.1Timer_RegenPlayerGetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);
        }
    } 
__________________

Last edited by nergal; 07-15-2014 at 12:42.
nergal is offline
 



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 14:13.


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