Raised This Month: $182 Target: $400
 45% 

Trophies


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Plugin ID:
1182
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When a player dies a trophy appears... Collect them.
    Old 09-24-2009 , 18:34   Trophies
    Reply With Quote #1

    Authored by: Stinkyfax
    Requested and paid for by [sG] Serious Group

    A port from an ES Script.

    // This file was auto-generated by SourceMod (v1.2.3)
    // ConVars for plugin "trophies.smx"


    // Distance within which a player can claim a trophy.
    // -
    // Default: "25"
    // Minimum: "0.000000"
    trophies_claimdistance "25"

    // Delay in seconds to save the data. (Float)
    // -
    // Default: "600.0"
    // Minimum: "50.000000"
    trophies_delay "600.0"

    // Time in seconds before the trophy disappears.
    // -
    // Default: "30.0"
    // Minimum: "0.000000"
    trophies_duration "30.0"

    // If 1 - Spectators can claim trophies
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    trophies_spectatorclaim "0"


    bind a key to "claim' to claim the trophies

    you can type
    ttop10
    trank
    trophies

    for trophy information.

    I will support this plugin the best I can. I am not sure about Stinkyfax but post here if you have issues. Dont PM me or Stinkyfax for help.

    Updated to Version 1.2
    1. Added trophies_duration - See the default CFG above.

    Updated: Changed to Version 1.1 (hope you dont mind Stinkyfax)
    1. Added sound to signify the Trophy was collected.
    2. Added chat to signify that the Trophy was collected

    Thanks to Stinkyfax and PenguinPrince
    Attached Files
    File Type: sp Get Plugin or Get Source (trophies.sp - 1090 views - 14.4 KB)
    __________________

    Last edited by BDeep; 10-01-2009 at 13:08. Reason: updated to 1.2
    BDeep is offline
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 09-24-2009 , 18:45   Re: Trophies
    Reply With Quote #2

    Yup, that's true.
    Plugin can be ported to any game with only checking for round_end/start events and sprites for the effect
    Stinkyfax is offline
    PenguinPrince
    SourceMod Donor
    Join Date: Jul 2006
    Old 09-28-2009 , 00:41   Re: Trophies
    Reply With Quote #3

    I love this plug-in but I wasn't fond of how it didn't let you know when you picked up a trophy.

    So I added a line to print to the client that they picked up the trophy and added in some lines to also give it a confirmation sound that it was picked up.

    all together though great plug-in
    Attached Files
    File Type: sp Get Plugin or Get Source (trophies.sp - 618 views - 13.9 KB)
    __________________
    [IMG]http://img12.**************/img12/667/pengp.jpg[/IMG]

    Last edited by PenguinPrince; 09-28-2009 at 01:01.
    PenguinPrince is offline
    Stinkyfax
    BANNED
    Join Date: Aug 2007
    Old 09-28-2009 , 06:27   Re: Trophies
    Reply With Quote #4

    Quote:
    Originally Posted by PenguinPrince View Post
    I love this plug-in but I wasn't fond of how it didn't let you know when you picked up a trophy.

    So I added a line to print to the client that they picked up the trophy and added in some lines to also give it a confirmation sound that it was picked up.

    all together though great plug-in
    Thanks, I've slightly modified those lines so that there is no "loose identification" and message is coloured.
    Attached Files
    File Type: sp Get Plugin or Get Source (trophies.sp - 666 views - 13.9 KB)
    Stinkyfax is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 09-28-2009 , 09:25   Re: Trophies
    Reply With Quote #5

    How about a cvar to let you pick it up by walking over/into it instead of having to bind a key?
    Dragonshadow is offline
    noodleboy347
    SourceMod Donor
    Join Date: Mar 2009
    Old 09-28-2009 , 12:42   Re: Trophies
    Reply With Quote #6

    I don't understand what types of trophies these are. How do you get them, and why do you get them?
    noodleboy347 is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 09-28-2009 , 12:52   Re: Trophies
    Reply With Quote #7

    Quote:
    Originally Posted by Dragonshadow View Post
    How about a cvar to let you pick it up by walking over/into it instead of having to bind a key?
    Stinkyfax would definatly have to handle that request.
    __________________
    BDeep is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 09-28-2009 , 12:54   Re: Trophies
    Reply With Quote #8

    Quote:
    Originally Posted by noodleboy347 View Post
    I don't understand what types of trophies these are. How do you get them, and why do you get them?
    You can get them by collecting them (bind <key> claim) after a player dies, the trophy will be where the player was when they were killed

    You get them for the fun of it, or in our case we use them for a monthly prize. Who ever has the most at the end of a month wins that months prize.
    __________________
    BDeep is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 09-28-2009 , 13:02   Re: Trophies
    Reply With Quote #9

    Updated the first post plugin to include the changes that Stinkyfax and PenguinPrince made.
    __________________
    BDeep is offline
    BDeep
    Senior Member
    Join Date: Jun 2009
    Location: NH
    Old 10-01-2009 , 13:09   Re: Trophies
    Reply With Quote #10

    Updated sound file to a CSS sound file and added the Trophy Timeout CVAR

    Thanks to Stinkyfax for the timeout.
    __________________
    BDeep 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 18:35.


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