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

[CS:GO] Drop Random Health Pack


Post New Thread Reply   
 
Thread Tools Display Modes
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 12-27-2012 , 11:43   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #81

simply edit the
csgo_drop_random_health.cfg in the "cfg/csgo_drop_random_health" Folder
file to your needs
darkranger is offline
wangningyu
Member
Join Date: Dec 2011
Location: China.GuangDong
Old 12-28-2012 , 11:49   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #82

Quote:
Originally Posted by darkranger View Post
simply edit the
csgo_drop_random_health.cfg in the "cfg/csgo_drop_random_health" Folder
file to your needs
what's the problem here ?

PHP Code:
// This file was auto-generated by SourceMod (v1.5.0-dev+3642)
// ConVars for plugin "csgo_drop_random_healthpack_2.3.smx"


// <#> = 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 "100"

// 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-Medkit; 6=CS_GIFT
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "6.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: "music/csgo_drop/mario_powerup.mp3"
csgo_drop_pickup_sound "music/csgo_drop/mario_powerup.mp3" 
thanks for your reply !
__________________
One Code , One Dream !
wangningyu is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 12-28-2012 , 13:04   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #83

TRY SET TO 5 !

// 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 "5"

so with this every 5 deaths a pack will be dropped...

0 means random. so it can happen sometimes. (maybe after 20 death or 37, and so on... )
darkranger is offline
mikehawk
Member
Join Date: Feb 2011
Old 12-29-2012 , 09:07   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #84

Having a problem with fastdownloads path. In the console I am getting an error message showing the path as having double slashes in it.

i.e.:
Code:
http://my_download_url//sound/music/csgo_drop/health.mp3
Does the same with the path for the models. Do I have the path configured wrong?
mikehawk is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 12-29-2012 , 09:32   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #85

looks like you have a problem with your fastdownload settings.
its not a problem of the plugin.

my fastdownload url looks like this:
sv_downloadurl "http://my-domain.xxx/fastdl/csgo/"
under the csgo folder are all other folders. (maps, materials,models, sounds .....)
darkranger is offline
mikehawk
Member
Join Date: Feb 2011
Old 12-29-2012 , 10:44   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #86

Thanks for the quick response. Yeah I was being a bonehead. Had a trailing slash on the fast downloads url in server.cfg. Seemed to always work before though with maps.

Anyways, works great now. Super plugin, Thanks!!
mikehawk is offline
d1puts
Junior Member
Join Date: Jan 2013
Old 01-22-2013 , 16:03   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #87

help, im not sure what the problem is but


Disconnect: Pure server: file [GAME]\materials\models\items\healthkit01.vmt
it said it didnt match servers file?....
d1puts is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 01-23-2013 , 08:40   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #88

Quote:
Originally Posted by d1puts View Post
help, im not sure what the problem is but


Disconnect: Pure server: file [GAME]\materials\models\items\healthkit01.vmt
it said it didnt match servers file?....

it seems you have sv_pure 1! so you must allow in the "pure whitelist" the folders for materials and models!
(for testing: set sv_pure to 0 and restart server)

..or you have another model with same name in that folder.

Last edited by darkranger; 01-23-2013 at 08:41.
darkranger is offline
tpunkt
Junior Member
Join Date: Mar 2012
Old 02-10-2013 , 04:03   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #89

@darkranger

A) CSS Test

tested the plugin on css dedicate linux server with
- SourceMod Version: 1.5.0-dev+3764
- Metamod:Source version 1.10.0-dev(817)

seems to be running fine

B) Plugin

During my test I recognize that sometimes the medipacks are fallen down on boxes or other objects, where the player couldn't reach the healthkit.

I changed your colde and delete the offset from the vector for teleporting the healthkit object. Thats work fine for me, the healthkit is falling down from the"eyes" of the killed model to the ground.

Quote:
deathorigin[2] += 0.0 // above
deathorigin[1] -= 0.0 // + = left from front
deathorigin[0] -= 0.0 // + = front
Regards
t.
tpunkt is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 02-10-2013 , 04:15   Re: [CS:GO] Drop Random Health Pack
Reply With Quote #90

good to hear that it works for you

the "deathorigin" is therefore that no spawning-model can stuck in the player.
maybe i had set the variables too high

and i had some crashes when 2 model spawn at the same time on a player on the same place (on my other plugin csgo_drop_random_pack.)

Last edited by darkranger; 02-10-2013 at 04:20.
darkranger 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 15:09.


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