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

[TF2] Medkit Drops


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mintoyatsu
New Member
Join Date: Oct 2020
Plugin ID:
7605
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Killed players drop medkits.
    Old 04-18-2021 , 18:30   [TF2] Medkit Drops
    Reply With Quote #1

    TF2 Medkit Drops

    Description

    With this plugin enabled, players will drop medkits when they get killed. After a while, the medkit will disappear if no one picks it up (default 15 seconds).
    The plugin has many convars you can customize to change the type of medkit, holiday skins, gravity, overheal and so on. You don't have to add anything to the download table like other plugins.

    Installation:
    Drag and drop to your plugins folder.



    ConVars

    HTML Code:
    // Use the birthday cake model for medkits.
    // -
    // Default: "0"
    sm_medkitdrop_birthday "0"
    
    // Enable medkit drops on player death.
    // -
    // Default: "1"
    sm_medkitdrop_enabled "1"
    
    // Use the halloween candy model for medkits.
    // -
    // Default: "0"
    sm_medkitdrop_halloween "0"
    
    // Large medkits overheal the player when picked up.
    // -
    // Default: "0"
    sm_medkitdrop_overheal "0"
    
    // Allow medkits to be affected by gravity, similar to the Candy Cane.
    // When disabled, medkits will float in the air where the player died.
    // -
    // Default: "1"
    sm_medkitdrop_physics "1"
    
    // Randomize the dropped medkit size.
    // Overrides sm_medkitdrop_size.
    // -
    // Default: "1"
    sm_medkitdrop_random "1"
    
    // Use the Sandvich plate model for medkits.
    // -
    // Default: "0"
    sm_medkitdrop_sandvich "0"
    
    // The size of medkit to drop.
    // 1 - Small (20.5% health)
    // 2 - Medium (50% health)
    // 3 - Large (100% health)
    // -
    // Default: "2"
    // Minimum: "1.000000"
    // Maximum: "3.000000"
    sm_medkitdrop_size "2"
    
    // How long (in seconds) dropped medkits remain in the world.
    // -
    // Default: "15.0"
    // Minimum: "0.000000"
    // Maximum: "60.000000"
    sm_medkitdrop_time "15.0"
    
    // Always drop medkits on death, including suicides and environmental deaths.
    // -
    // Default: "0"
    sm_medkitdrop_unconditional "0"
    Changelog

    Quote:
    2021-04-18 (1.0.0)
    - Initial release
    Developers:
    You can use the plugin's forwards (with the .inc file) in case you want to prevent spawning medkits based on victim client index.

    Suggestions & bug reports are welcome.
    Attached Files
    File Type: inc tf2medkitdrop.inc (505 Bytes, 138 views)
    File Type: sp Get Plugin or Get Source (tf2medkitdrop.sp - 232 views - 9.4 KB)
    File Type: smx tf2medkitdrop.smx (8.0 KB, 156 views)

    Last edited by mintoyatsu; 04-18-2021 at 18:34.
    mintoyatsu 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 21:43.


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