View Single Post
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-10-2012 , 19:54   Re: [Any] Gravity Reset
Reply With Quote #10

Quote:
Originally Posted by Bacardi View Post
teamplay_round_win is for TF2, it not use round_end like most source games.

*edit
You can replace HookEvent part
PHP Code:
........
    
decl String:folder[64];
    
GetGameFolderName(foldersizeof(folder));

    if (
strcmp(folder"tf") == 0)
    {
        
HookEvent("teamplay_round_win"Event_RoundEnd);
    }
    else
    {
        if(!
HookEventEx("round_end"Event_RoundEnd))
        {
            
SetFailState("Unable to find event: round_end");
        }
    }
........ 
Thank you, the plugin works without error now on CS:S.

Unfortunately it doesn't do what I need:
when I play on a ka_volleyball map, the gravity changes. When the nextmap is a normal or a soccer map, or any map with normal gravity, the gravity goes back to 800 BUT not for the ball or the weapons. Even if I change the map twice.
These ka_volleyball maps change gravity for the models and then setting back gravity to 800 doesn't change the models gravity. It is getting on my nerves

Last edited by St00ne; 03-10-2012 at 19:55.
St00ne is offline