AlliedModders
XFactor Servers

Tick 100 Mapfix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chanz
Senior Member
Join Date: Aug 2008
Location: Germany - Karlsruhe
Plugin ID:
1069
Plugin Version:
1.4.36
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    This plugin fixes maps which are made only for tick 66 servers to work under tick 100 servers
    Servers with this Plugin:
    116 
    Old 08-06-2009 , 20:24   Tick 100 Mapfix
    Reply With Quote #1

    Code:
    /********************************************
    *
    * Tick 100 Map Fix Version "1.4.36"
    *
    * Description:
    * This plugin fixes maps which are made only for tick 66 servers to
    * work under tick 100 servers.
    *
    *
    * What it does:
    * On a map start this plugin searches for all func_doors and prop_door_rotating and removes
    * the damage and makes them 5% faster to open.
    *
    *
    * Note:
    * Developed for HL2:DM but should work with all mods.
    *
    * Install:
    * Put the tick100mapfix.smx into your plugins folder there is no need
    * to config anything, but you can change the
    * sm_doorspeed (default: 1.05 - means the plugin makes all doors 5% faster).
    *
    *
    * Dependencies:
    * none
    *
    *
    * Changelog:
    * v1.4.36 - Fixed an error with the datamap value m_bForceClosed which does not exist for func_movelinear.
    *         - Fixed a rare error where not cleared variables could mess up some entitys after mapchange.
    * 
    * v1.4.35 - Rewrite of some functions to improve them
    *         - Added a config file see: cfg/sourcemod/tick100mapfix
    * 
    * v1.3.30 - Changed default sm_doorspeed back to 1.05 since 1.44 does not bring better results
    * 
    * v1.3.25 - Now the plugin can differ between func_doors as elevator and as normal door
    *         - Added support for prop_door_rotating
    *         - Normal func_door's (not elevators) and prop_door_rotating's are double as fast as elevators
    * 
    * v1.2.14 - Code improvement/fix
    *         - better support/savely for the convar change on map start
    *         - check the tickrate if its not 100 fail plugin load with errmsg
    *         - changed standard speed to +44% instead of +5% (since we need 44 ticks from 66 to 100)
    *         - On plugin end all doors get their normal speed back
    *
    * v1.0.4  - Added Convar
    * 
    * v1.0.3  - Code improvement/fix
    * 
    * v1.0.0  - First Public Release
    *
    *
    * Thank you Berni, Manni, Mannis FUN House Community and SourceMod/AlliedModders-Team
    *
    *
    * *************************************************/
    Attached Files
    File Type: sp Get Plugin or Get Source (tick100mapfix.sp - 313 views - 9.4 KB)

    Last edited by Chanz; 11-08-2009 at 13:06.. Reason: update to 1.4.36
    Chanz is offline
    almcaeobtac
    Senior Member
    Join Date: Nov 2008
    Location: Florida
    Old 08-07-2009 , 16:55   Re: Tick 100 Mapfix
    Reply With Quote #2

    What's the differences between a 66 tick map and a normal one?
    __________________
    Need a plugin done? PM me

    My Plugins
    almcaeobtac is offline
    Chanz
    Senior Member
    Join Date: Aug 2008
    Location: Germany - Karlsruhe
    Old 08-07-2009 , 17:08   Re: Tick 100 Mapfix
    Reply With Quote #3

    well some server admins and tick 100 players told me that elevators gives damage and kinda lag. So those elevators are func_door entities and with this plugin I disable the damge and make them a bit faster (cures the lag somehow).

    soon I insert some convars to give the server admin control over it.

    Last edited by Chanz; 08-07-2009 at 19:40..
    Chanz is offline
    almcaeobtac
    Senior Member
    Join Date: Nov 2008
    Location: Florida
    Old 08-07-2009 , 19:30   Re: Tick 100 Mapfix
    Reply With Quote #4

    Ah, ok
    __________________
    Need a plugin done? PM me

    My Plugins
    almcaeobtac is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 08-07-2009 , 19:43   Re: Tick 100 Mapfix
    Reply With Quote #5

    you can simplify that ent finding loop by using while and FindEntityByClassname. Simpler = better so people have an easier time thieving your code Just trying to show you other ways, do what you prefer
    PHP Code:
    new iDoor = -1;
    while ((
    iDoor FindEntityByClassname(iDoor"func_door")) != -1)
    {
        
    // do your stuff, no nees for maxents var, the classname string, or isvalidentity :D

    phys_timescale 1.5 works good for the most part, but any non-door physics objects get kinda screwy.

    Also, setting the verson convar's string on plugin load might give the 'convar does not exist error' when the plugin is first loaded, probably should put it OnConfigsExecuted or something.

    Good idea though, much better way to fix stuff for 100 tick.

    i personally see no diff between 100 and 66 tick, but others swear by it
    __________________

    Last edited by BrutalGoerge; 08-07-2009 at 19:48..
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    Chanz
    Senior Member
    Join Date: Aug 2008
    Location: Germany - Karlsruhe
    Old 08-07-2009 , 19:52   Re: Tick 100 Mapfix
    Reply With Quote #6

    Quote:
    Originally Posted by BrutalGoerge View Post
    you can simplify that ent finding loop by using
    i personally see no diff between 100 and 66 tick, but others swear by it
    yeah lol progamers and thank you for the code snipped.

    but phys_timescale 1.5 makes all 50% faster or am I wrong?
    Chanz is offline
    BrutalGoerge
    SourceMod Donor
    Join Date: Jul 2007
    Old 08-07-2009 , 19:57   Re: Tick 100 Mapfix
    Reply With Quote #7

    yeah, its a dirty fix, but a very simple one.

    dropped weapons fall faster, pretty much anything with physics props go 50% faster
    __________________
    BrutalGoerge is offline
    Send a message via ICQ to BrutalGoerge Send a message via MSN to BrutalGoerge
    Chanz
    Senior Member
    Join Date: Aug 2008
    Location: Germany - Karlsruhe
    Old 08-07-2009 , 20:06   Re: Tick 100 Mapfix
    Reply With Quote #8

    oh ok well the ones I made this for just wanted to have no damage and the doors a bit faster.
    Chanz is offline
    LLLinnGDing
    New Member
    Join Date: Dec 2008
    Location: Belgium
    Old 08-08-2009 , 08:34   Re: Tick 100 Mapfix
    Reply With Quote #9

    Hallo,

    I have the same problems at our 100 tick server and i thougth i had to live with it .
    I going to test this and tell how it works

    Ty for this
    LLLinnGDing is offline
    LLLinnGDing
    New Member
    Join Date: Dec 2008
    Location: Belgium
    Old 08-08-2009 , 11:36   Re: Tick 100 Mapfix
    Reply With Quote #10

    I tested it 5 min ago and this works perfect.
    Ty
    (tested this on a hl2mp 100tick server)
    LLLinnGDing is offline
    Reply


    Thread Tools
    Display Modes

    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 20:26.


    Powered by vBulletin® Version 3.8.1
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    Theme made by Freecode Sponsored by Layered Technologies