Raised This Month: $12 Target: $400
 3% 

[Hidden:Source] Weight Reporter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Plugin ID:
598
Plugin Version:
1.0.3
Plugin Category:
General Purpose
Plugin Game:
The Hidden: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Prints a player's chances of being hidden based on existing weight points when the round ends.
    Old 10-14-2008 , 06:33   [Hidden:Source] Weight Reporter
    Reply With Quote #1

    Written for Hidden:Source Beta 4b

    Code:
    /*
     * Hidden:SourceMod - Weight-Reporter
     *
     * Description:
     *  Prints a player's chances based on existing weight points when the round ends.
     *
     * Associated Cvars:
     *  hdn_selectmethod [0/1/2]     : The way the game chooses the next player. 0: Weighted, 1: Classing (Kill=Become), 2: Random. Default: 0
     *  hdn_hiddenrounds [rounds]    : The number of rounds a successful hidden can be hidden. Default: 5
     *  hsm_weighter_delay [seconds] : Seconds to wait after round ends before print out report. Should not exceed mp_chattime. Default: 0.25
     *  mp_chattime [seconds]        : Seconds between old round ending and new round starting.
     *
     * Installation:
     *  Please make sure to put the *.phrases.txt file in the .../addons/sourcemod/translations folder otherwise the plugin wont operate properly.
     *
     * Changelog:
     *  v1.0.3
     *   Removed hidden.inc dependency.
     *  v1.0.2
     *   Unloads automatically on Overrun maps.
     *  v1.0.1
     *   Added Language localization.
     *   Fixed bug where the chances would still be printed out even if hdn_hiddenrounds wasn't 1, and the hidden won but hadn't reach the limit. - thanks -SM-Sucker/The Dark Prince
     *   Changed myinfo:name to H:SM - WeighteR. It was copied from Carry the one.
     *  v1.0.0
     *   Initial Release.
     *
     * Known Issues:
     *  A player's chances at round end are not final. They can still suicide or give ammo, thus altering their weighting.
     *  Does not support Overrun map mode as I've never taken the time to understand how the selection method works for those maps.
     *
     */
    Attached Files
    File Type: sp Get Plugin or Get Source (hsm_weighter.sp - 3115 views - 6.9 KB)
    File Type: txt weighter.phrases.txt (195 Bytes, 1137 views)
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 08-27-2013 at 04:19. Reason: Reason: changed "game" field to newly created category "The Hidden"
    paegus is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 12-26-2008 , 19:39   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #2

    added hidden.inc include that was missing.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    Miawz
    Junior Member
    Join Date: Jan 2009
    Old 01-13-2009 , 08:11   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #3

    Plugin failed to compile! Please try contacting the author.
    Can you upload it somewhere else?
    Miawz is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 01-13-2009 , 09:07   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #4

    You need to compile it yourself with the include he attached.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    Miawz
    Junior Member
    Join Date: Jan 2009
    Old 01-13-2009 , 09:38   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #5

    Ow i see, is there a tutorial for that?
    Miawz is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 01-13-2009 , 09:47   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #6

    click on 'Get Source' and save that file to your local sourcemod extraction's .../sourcemod/scripting/ folder.
    click on hidden.inc and save that similarly to the .../sourcemod/scripting/include/ folder.
    click on weighter.phrases.txt and save that to .../sourcemod/translations/
    if you're using windows, go into the scripting folder and double click on compile.exe to compile all the .sm files in that folder.
    if you're using linux run ./compile.sh.
    the resultant .smx file will be in the .../sourcemod/scripting/compiled/ folder.
    copy that to the server's .../addons/sourcemod/plugins/ folder
    execute sm plugins load hsm_weighter on the server's console
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod
    paegus is offline
    Miawz
    Junior Member
    Join Date: Jan 2009
    Old 01-13-2009 , 10:16   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #7

    Quote:
    Originally Posted by paegus View Post
    the resultant .smx file will be in the .../sourcemod/scripting/compiled/ folder.
    Do i have to create that folder myself? because when i run the compile.sh ( for linux) then nothing gets created.
    Miawz is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 01-14-2009 , 05:05   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #8

    make sure both compile.sh and spcomp are executable: .../sourcemod/scripting$ chmod +x *comp* should do it.

    all in all, i find it easier to write and compile things locally then upload the .smx by itself to the server. which also helps in case of a remote server's file-set... err... departure.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 01-14-2009 at 05:07.
    paegus is offline
    Miawz
    Junior Member
    Join Date: Jan 2009
    Old 01-14-2009 , 06:03   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #9

    Exampel: i got a rented server and then i compile it on my computer and then upload it to the rented? or do i compile it on the rented?

    Anyways if thats so why isnt the .smx just uploaded here?

    Im quite new to all scripting n stuff sorry >:]
    Miawz is offline
    paegus
    Senior Member
    Join Date: Nov 2004
    Location: Extreme low earth orbit
    Old 01-14-2009 , 18:14   Re: [Hidden:Source] Weight Reporter
    Reply With Quote #10

    the source is uploaded. the online compiler that runs when you click on "Get Plugin" tries to compile the plugin against the default install. the default install doesn't have hidden.inc in its include folder. you can compile it on either the server or your local machine. it's up to you. as long as you have the files in the right places and you are allowed to execute things on the given computer.



    Anyway i've updated the plugin to no longer require hidden.inc so "Get Plugin" should work now. just make sure the phrases file is in the server's tranlation folder.
    __________________
    Live and learn or die and teach by example.
    Plugins Mine | Hidden:SourceMod

    Last edited by paegus; 01-14-2009 at 18:19.
    paegus 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 07:05.


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