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

[INS] Supply Point Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GiZZoR
Junior Member
Join Date: Sep 2013
Plugin ID:
5104
Plugin Version:
0.3
Plugin Category:
Gameplay
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Set supply points for (re-)connecting player
    Old 03-30-2016 , 04:18   [INS] Supply Point Manager
    Reply With Quote #1

    [INS] Supply Manager

    This is my first plugin.

    Description/Features
    I wrote this plugin to address what I feel is a missing feature from the game: Restore your gained supply points.
    Many players on the server I operate often struggle with connection drops, and under "stock" conditions, when they reconnect their supply points (in-game "money") is reset.
    This plugin will set the supply points for players when joining a teamchanging role/class.
    It will determine and give highest possible supply points to the player, based on settings completed (CVars below).

    The plugin's default functionality is to restore the player's supply points as stored on round start, but you can also choose alternate functionality (Team Average, Team Lowest).

    Note: Supply points of bots will not be stored or set, but is used by Team Average / Team Lowest.

    Commands
    sm_supply <client> (points)
    If (points) not provided, will display player's supply points, else will set player's supply to number provided.

    CVARS
    sm_supply_enabled <0/1>
    "Boolean": Enable/disable plugin. Default: 1 (Enabled)
    sm_supply_base #
    "Int": Number of supply points to give players. Default: 12
    sm_supply_restore <0/1>
    "Boolean": Enable/disable restoring player's gained supply points. Default: 1 (Enabled)
    sm_supply_join <0,1,2,3>
    "Int": Enable/disable setting supply points for new players. Default: 0 (Disabled)
    0 - Disabled (Default)
    1 - Give new player base supply as set in sm_supply_base. Note: You may want to set this per game mode in server_<mode>.cfg (TIP: easier to use: sm_cvar mp_supply_token_base)
    2 - Team Lowest: Give new player the same supply as lowest member in team (Useful for multiple rounds of coop play)
    3 - Team Average: Give new player the team average of supply points (sum all players supply points divided by players)

    Changelog
    0.3 - Added common translations
    0.2 - "ALPHA" Added Join and Rejoin cvars
    0.1 - Initial build. CVar and Token testing

    Future Development
    - Store supply points on change during round (support game modes survival/outpost)
    and / or
    - Store supply points on player disconnect
    - Add "recover" from file / db to recover from server crash (rare)
    - Add "ignore bots" cvar for team supply calculations (low,avg)
    Attached Files
    File Type: sp Get Plugin or Get Source (ins_supply.sp - 1119 views - 7.8 KB)

    Last edited by GiZZoR; 06-22-2016 at 08:08. Reason: Updated description (role), new version
    GiZZoR is offline
    `666
    AlliedModders Donor
    Join Date: Jan 2006
    Old 12-25-2018 , 13:24   Re: [INS] Supply Point Manager
    Reply With Quote #2

    Thank you.
    `666 is offline
    dr_lex
    Member
    Join Date: Dec 2014
    Old 11-27-2020 , 12:43   Re: [INS] Supply Point Manager
    Reply With Quote #3

    I took the source code for a warm-up, as I was taking a break from coding.
    And since I played Insurgency and saw how bad everything is in this game, I decided to update the code to the new Syntax (sm 1.10 and higher)
    I don't have my own server, so I didn't check it. But it seems like I closed the server memory leak by KeyValues
    Attached Files
    File Type: sp Get Plugin or Get Source (ins_supply.sp - 221 views - 6.8 KB)
    __________________
    dr_lex is offline
    `666
    AlliedModders Donor
    Join Date: Jan 2006
    Old 11-29-2020 , 05:05   Re: [INS] Supply Point Manager
    Reply With Quote #4

    Quote:
    Originally Posted by dr_lex View Post
    I took the source code for a warm-up, as I was taking a break from coding.
    And since I played Insurgency and saw how bad everything is in this game, I decided to update the code to the new Syntax (sm 1.10 and higher)
    I don't have my own server, so I didn't check it. But it seems like I closed the server memory leak by KeyValues
    Thanks
    `666 is offline
    SnapoRaz
    New Member
    Join Date: Oct 2020
    Location: Italy
    Old 06-27-2021 , 10:46   Re: [INS] Supply Point Manager
    Reply With Quote #5

    Hello, where has to by placed the .cfg file? It must be also activated by an exec command in server cfg file?

    Thanks
    Snap
    SnapoRaz 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 06:40.


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