[CS:GO] Drop Random Health Pack
Posted: Thu Jan 23, 2020 11:15 am
Description:
THIS PLUGIN DROPS RANDOM OR EVERY "X" DEATHS A HEALTH PACKAGE AFTER A PLAYER DIES.
You can select 1 out of 6 available Props. (0=chianti bottle; 1=chicken; 2=Life Ring; 3=Mushroom_Small; 4=Mushroom_Large; 5=HL2 Medkit; 6=CS_Gift )
I use this on my ArmsRace (GunGame progressive Mode) Server and is only tested there!
Changelog:
CVars:
will be autogenerated after 1st plugin start in the cfg folder!
CVARLIST:
Requirements:
SDK HOOKS
Notes:
thanks to Feuersturm for helping!
Servers running plugin:
Game-Monitor
GameTracker
Notes2:
it uses SDKHOOKS. so it will not compile on the forum!
csgo_drop_random_health_2.8.zip
csgo_drop_random_healthpack_2.8.smx
Get Plugin or Get Source
translations.zip
THIS PLUGIN DROPS RANDOM OR EVERY "X" DEATHS A HEALTH PACKAGE AFTER A PLAYER DIES.
You can select 1 out of 6 available Props. (0=chianti bottle; 1=chicken; 2=Life Ring; 3=Mushroom_Small; 4=Mushroom_Large; 5=HL2 Medkit; 6=CS_Gift )
I use this on my ArmsRace (GunGame progressive Mode) Server and is only tested there!
Changelog:
Code: Select all
// VERSION 1.6
// added sound when pickup a HealthPack
// VERSION 1.7
// added max. Health where a player can pickup a healthpack
// VERSION 1.8
// added Cvar to control what happens when max HP is reached!
// VERSION 1.9
// added Sound when max HP reached
// VERSION 2.0
// added "do nothing" to what happens when max HP reached!
// tranlation file!
// VERSION 2.1
// added CVARs to disable messages!
// VERSION 2.2
// added new Models!
// VERSION 2.3
// soundfile mario powerup!
// PLEASE ADD ALL MODELS & MATERIALS & SOUNDS TO THE SERVER & FASTDL
// VERSION 2.4
// added MAX HP check (thanks to Tpunkt for info)
// VERSION 2.5
// added new Model HL2-healthkit & code cleanup
//VERSION 2.6
//added max Entities Check to prevent crashes!
//changed sdkhook from Touch -> StartTouch
//added new Model cs_gift
//VERSION 2.7
// added better collision dedection (thanks to Root)FROM ROOT (thanks a lot)
//reverted from V2.6 :sdkhook from StartTouch -> Touchback
//VERSION 2.8
// changed soundpath (you can use any MP3 file now for pickupsound)
CVars:
will be autogenerated after 1st plugin start in the cfg folder!
CVARLIST:
Code: Select all
// <#> = Amount of HP to add to a player when pick up a Healthpack
// -
// Default: "40"
// Minimum: "5.000000"
// Maximum: "300.000000"
csgo_drop_health_amount "40"
// drop a Package every X deaths! 0 = disable - when enabled random drop is disabled
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "60.000000"
csgo_drop_health_counter "0"
// <#> = number of seconds a dropped Healthpackage stays on the map
// -
// Default: "30"
// Minimum: "10.000000"
// Maximum: "180.000000"
csgo_drop_health_lifetime "30"
// max. Amount of Health a Player can have to pickup a Healthpack
// -
// Default: "150"
// Minimum: "100.000000"
// Maximum: "600.000000"
csgo_drop_health_maximum "150"
// what happens when max. Health is reached: 0 = delete Healthpack , 1 = Healthpack will dropped from next dead player , 2 = do nothing with Healthpack
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
csgo_drop_health_maximum_var "1"
// Enable(1) or disable(0) message when a Pack was dropped
// -
// Default: "0"
csgo_drop_message_dropped "0"
// Enable (1) or disable(0) message when Pickup a Pack
// -
// Default: "1"
csgo_drop_message_pickup "1"
// Model to use: 0=chianti bottle; 1=chicken; 2=Life Ring; 3=Mushroom_Small; 4=Mushroom_Large; 5=HL2-Healthkit; 6=CS_GIFT
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "4.000000"
csgo_drop_model "2"
// Enable (1) or disable(0) your own PickUp Soundfile
// -
// Default: "0"
csgo_drop_own_pickup_sound "0"
// Own Sound played when Pickup the Pack(must be in a DIR inside the music folder & MP3!)
// -
// Default: "darky/mario_powerup.mp3"
csgo_drop_pickup_sound "darky/mario_powerup.mp3"
Requirements:
SDK HOOKS
Notes:
thanks to Feuersturm for helping!
Servers running plugin:
Game-Monitor
GameTracker
Notes2:
it uses SDKHOOKS. so it will not compile on the forum!
csgo_drop_random_health_2.8.zip
csgo_drop_random_healthpack_2.8.smx
Get Plugin or Get Source
translations.zip