AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Medkit Drops (https://forums.alliedmods.net/showthread.php?t=332018)

mintoyatsu 04-18-2021 18:30

[TF2] Medkit Drops
 
3 Attachment(s)
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.

https://i.imgur.com/8jGQMjf.png

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.


All times are GMT -4. The time now is 03:55.

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