Raised This Month: $32 Target: $400
 8% 

[TF2] Sheens 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pear
Member
Join Date: May 2017
Location: sea
Plugin ID:
6465
Plugin Version:
1.2.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Set killstreak effects on weapon
    Old 03-10-2019 , 19:19   [TF2] Sheens 1.2
    Reply With Quote #1

    This plugin allows you to apply sheens and killstreak effects on a weapon.



    Commands:
    sm_sheens [sheen] [effect]
    sm_sheen [sheen] [effect]
    Default flag: k

    Cvars:
    sm_sheens_version - Sheens Plugin Version
    sm_sheens_flag - Sheens Access Flag

    Installation:
    Put sheens.smx into tf/addons/sourcemod/plugins
    Put tf2.attributes.txt into tf/addons/sourcemod/gamedata
    Put sheens.phrases.txt into tf/addons/sourcemod/translations

    Changelog
    Attached Files
    File Type: txt tf2.attributes.txt (3.3 KB, 470 views)
    File Type: txt sheens.phrases.txt (790 Bytes, 211 views)
    File Type: sp Get Plugin or Get Source (sheens.sp - 471 views - 9.2 KB)

    Last edited by pear; 03-23-2021 at 07:08.
    pear is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 03-11-2019 , 00:51   Re: [TF2] Sheens
    Reply With Quote #2

    Why not just use tf2attributes?
    Mitchell is offline
    pear
    Member
    Join Date: May 2017
    Location: sea
    Old 03-11-2019 , 09:03   Re: [TF2] Sheens
    Reply With Quote #3

    Quote:
    Originally Posted by Mitchell View Post
    Why not just use tf2attributes?
    I don't really like using external stuff for the plugins I make.
    You can also use the gamedata/tf2attributes.txt if you rename it to sheens.txt and it will work with the plugin though.
    pear is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 03-11-2019 , 09:56   Re: [TF2] Sheens
    Reply With Quote #4

    Three things:
    • If you're gonna recreate the wheel by copying tf2attributes code into the plugin for use, at least have the plugin use the same gamedata file.
    • You're leaking handles with your menus, you need to kill the menu handles in the callbacks with MenuAction_End.
    • You can methodmap a whole lot of this and create the menus early and save them for use multiple times as well.

    Last edited by Drixevel; 08-27-2020 at 01:41.
    Drixevel is offline
    pear
    Member
    Join Date: May 2017
    Location: sea
    Old 03-11-2019 , 13:18   Re: [TF2] Sheens
    Reply With Quote #5

    Quote:
    Originally Posted by Drixevel View Post
    Three things:
    • If you're gonna recreate the wheel by copying tf2attributes code into the plugin for use, at least have the plugin use the same gamedata file.
    • Your leaking handles with your menus, you need to kill the menu handles in the callbacks with MenuAction_End.
    • You can methodmap a whole lot of this and create the menus early and save them for use multiple times as well.
    Thanks! I fixed the leaks and made it use the same gamedata file then. I'm not that familiar with methodmapping yet so I'll do that once I'm more experienced with it.

    Last edited by pear; 03-11-2019 at 16:49.
    pear is offline
    KoltaiArmy
    AlliedModders Donor
    Join Date: Feb 2015
    Location: Hungary
    Old 01-18-2020 , 18:18   Re: [TF2] Sheens 1.1
    Reply With Quote #6

    May you could add clientprefs support, to keep the client settings after rejoins.
    __________________
    KoltaiArmy is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 02-13-2021 , 15:55   Re: [TF2] Sheens 1.1
    Reply With Quote #7

    Quote:
    Originally Posted by KoltaiArmy View Post
    May you could add clientprefs support, to keep the client settings after rejoins.
    +1


    clientprefs or mysql support
    __________________
    ph is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 03-21-2021 , 08:39   Re: [TF2] Sheens 1.1
    Reply With Quote #8

    I know it's a strange request, thank you, much appreciated.

    Quote:
    Originally Posted by KoltaiArmy View Post
    May you could add clientprefs support, to keep the client settings after rejoins.
    Any chance you do this so that effects are saved and automatically applied to the class selected when a "access" player joins/connect's to the server.



    I am running your plugin playing on 3 popular TF2 servers.
    __________________

    Last edited by ph; 03-21-2021 at 08:40.
    ph is offline
    pear
    Member
    Join Date: May 2017
    Location: sea
    Old 03-21-2021 , 15:22   Re: [TF2] Sheens 1.1
    Reply With Quote #9

    Quote:
    Originally Posted by ph View Post
    Any chance you do this so that effects are saved and automatically applied to the class selected when a "access" player joins/connect's to the server.
    As I said before I dunno how to add database support. However Teamkiller324 is helping me with the implementation (basically doing it all alone while I drink my tea). So ye, maybe

    Last edited by pear; 03-21-2021 at 15:22.
    pear is offline
    Kleiner
    Member
    Join Date: Dec 2017
    Location: Russia, Chelyabinsk
    Old 01-07-2021 , 14:47   Re: [TF2] Sheens 1.1
    Reply With Quote #10

    translation support? for chat messages
    Kleiner is offline
    Reply



    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 00:22.


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