Raised This Month: $ Target: $400
 0% 

[Any] Gravity Reset


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1492
Plugin Version:
1.0.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Resets gravity to a backup cvar at the end of the round
    Old 02-22-2010 , 19:04   [Any] Gravity Reset
    Reply With Quote #1

    [Any] Gravity Reset
    Plugin Version 1.0.2



    Description:
    Resets sv_gravity to the value of "gravreset_gravity" on round start.
    Useful if you have admins who like to change gravity, but forget/don't reset gravity.

    Should also fix the source engine bug where maps will use gravity from the previous map for props and projectiles.

    Commands:
    None

    Cvars:
    gravreset_message "1" whether to announce gravity change on round start 1/0.
    gravreset_gravity "800" gravity to reset to (800 is normal).
    sm_gravreset_version Plugin Version.
    Install Instructions:
    1. Upload the .smx file to your /sourcemod/plugins/ folder

    Notes:
    Tested on TF2, should work on any game though.
    ToDo:
    --


    Web Version History:
    • V1.0.0
      • Initial Release.
    • V1.0.1
      • Now hooks RoundStart rather then RoundEnd.
    • V1.0.2
      • Code cleanup.
      • Fixed wrong event still being hooked.


    Total downloads as prior to last edit: 193
    Attached Files
    File Type: sp Get Plugin or Get Source (GravReset.sp - 1915 views - 1.3 KB)
    __________________

    Last edited by DarthNinja; 08-08-2011 at 11:50.
    DarthNinja 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 11:29.


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