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

[TF2] Powerups Shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Giovanifsa
Member
Join Date: Jul 2013
Location: Brazil Paraná
Plugin ID:
5221
Plugin Version:
1.0.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Allows players to buy powerups using points.
    Old 06-02-2016 , 21:16   [TF2] Powerups Shop
    Reply With Quote #1

    Complete rewrite of my old Powerups plugin, with some ideas from RTD Revamped!

    Description
    This plugin allows players to buy powerups using points that they get by playing on your server!

    How does it works?
    While a player is on your server, he will get points for:
    - Playing (Time)

    - Doing map objectives
    Spoiler

    - Killing other players

    *Note: You can disable any of these

    When the player have enough points, he will be able to buy powerups by accessing the shop menu (!powerups)


    Commands
    sm_powerups or !powerups in the chat to open the shop menu.
    sm_addpoints <player name/steam id> <quantity> - Adds points to a given player account.
    sm_removepoints <player name/steam id> <quantity> - Removes points from a given player account.
    sm_forcepowerup <player name> <powerup> - Forces a powerup to some player. (<powerup> parameter is the powerup number in "ps_powerups.txt").


    Install Instructions
    - Download the .zip at "Attached Files" and extract into "...\addons\sourcemod" folder;
    - Optional: Install Updater to get automatic updates!
    - Done!


    Configuration
    When you run the plugin for the first time, a .cfg named "plugin.powerups_shop" will be generated in your "...\cfg\sourcemod" folder. Modify that file to customize the plugin settings.

    All players informations are stored in "...\addons\sourcemod\data" folder, as a text file named "ps_players".
    All powerups settings are stored in "...\addons\sourcemod\configs" folder as a text file named "ps_powerups".


    ConVars
    Spoiler


    Changelog
    Spoiler


    Credits
    Spoiler


    Advanced users: Compilation and custom powerups
    Check #template.sp in "...\addons\sourcemod\scripting\include\power ups" folder to a tutorial on how to create custom powerups.

    Thanks for choosing my plugin!
    Attached Files
    File Type: zip PowerupsShop 1_0_2.zip (45.7 KB, 430 views)
    File Type: sp Get Plugin or Get Source (powerups_shop.sp - 347 views - 32.9 KB)
    __________________

    Last edited by Giovanifsa; 10-05-2018 at 17:04.
    Giovanifsa is offline
    Send a message via Skype™ to Giovanifsa
    Stropy
    Senior Member
    Join Date: Feb 2016
    Old 12-03-2016 , 10:36   Re: [TF2] Powerups Shop
    Reply With Quote #2

    Can you add an option which will make the points visible on hud?

    Last edited by Stropy; 12-03-2016 at 15:14.
    Stropy is offline
    zyox123cc
    Senior Member
    Join Date: Jul 2016
    Location: spycrab
    Old 12-03-2016 , 16:26   Re: [TF2] Powerups Shop
    Reply With Quote #3

    1. For class and round after the end of the effect is still there
    2.Beggar's Bazooka can not switch weapons with infinite bullets will always shoot
    and yep need add hud
    zyox123cc is offline
    silentviper324
    New Member
    Join Date: Jul 2022
    Location: Michigan
    Old 07-03-2022 , 21:35   Re: [TF2] Powerups Shop
    Reply With Quote #4

    I just tried using this mod and ran into an issue with the translation files. Upon startup, the plugin loads with no issues, but the menu would not appear in game. After some digging I found the translations function in the script had an incorrect reference filename for the translation files. The actual files have a .txt extension, but the code only references ps.phrases and ps.powerups_phrases (without the .txt)

    In powerups_shop.sp, lines 89 and 90 were this:

    LoadTranslations("ps.phrases");
    LoadTranslations("ps.powerups_phrases");

    but should have been this since that's what the filenames are

    LoadTranslations("ps.phrases.txt");
    LoadTranslations("ps.powerups_phrases.txt");

    I made the change and recompiled and the menu works now! I suppose the same could be accomplished by just renaming the files in explorer without having to recompile. I am absolutely not a modder, just messing around hosting a home server, but figured I'd pass the info along in case it might help others.

    :)
    silentviper324 is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 05-29-2023 , 07:54   Re: [TF2] Powerups Shop
    Reply With Quote #5

    Still use this,

    Can there be maybe a few more things added on the menu?

    - Faster speed for example
    - Low gravity


    Keep up the goodwork
    __________________

    Last edited by Happy DODs player; 05-29-2023 at 07:59.
    Happy DODs player is offline
    Casperr
    Junior Member
    Join Date: Jul 2018
    Old 04-01-2024 , 03:03   Re: [TF2] Powerups Shop
    Reply With Quote #6

    Hi, there is an option for desactivated the power shop for one team?
    Casperr 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 23:53.


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