Raised This Month: $ Target: $400
 0% 

Healthkit from dead


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
2676
Plugin Version:
0.4
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Drop health kit from dead player.
    Old 11-21-2011 , 18:48   Healthkit from dead
    Reply With Quote #1

    Drop health kit from dead player.
    (At least works in Counter-Strike:Source, maybe other mods)

    cvars (plugin not generate config file)
    Quote:
    hfd_mode "0"
    // 1 = change model to healthvial
    // 2 = dissolve effect
    // 4 = work suicide
    // 8 = work teamkill
    // 16 = Emit sound only to client
    // 32 = no block for healthkits
    // 64 = Print hint text to player who gain heal
    // min. 0


    hfd_lifetime "20.0"
    //How long healthkit stay. Less than 1.0 second disable
    // min. 0.0


    hfd_maxheal "100"
    // Max heal
    // min. 2.0


    hfd_heal "20"
    // How much healthkit heal player
    // Using random values "min , max"
    // min. 1


    hfd_dissolvetype "0"
    //Change dissolvetype (work better in HL2MP)
    // 0 Energy
    // 1 Heavy electrical
    // 2 Light electrical
    // 3 Core effect

    How hfd_mode works ?
    Simple, if you want use another model (1), dissolve effect (2) and play sound that only picker can hear it (16).
    1 + 2 + 16 = 19
    Set hfd_mode "19"

    modes
    1 = You can change to another healthkit model (looks like flashbang)
    2 = Enable dissolve effect
    4 = Healthkit will drop when player suicide
    8 = Healthkit will drop when teamkill (HL2MP use this when deathmatch "1", if I remember right)
    16 = Picker can hear sound only, not others.
    32 = No block to healthkits, players can walk trough them. (Can't kick kits anymore)
    64 = Print hint text to player who pick healthkit
    128 = Bots can't pick healthkits
    256 = Bots don't drop healthkits

    How hfd_heal works ?
    hfd_heal "20" = healthkit will give +20HP to picker.
    hfd_heal "5 , 20" = will give +?HP between min. and max. randomly.

    Installation
    - This plugin needs SDKHooks extension to get work !!
    - Move healthkit_from_dead.smx your server ...addons/sourcemod/plugins/ -folder

    Compile plugin source code *.sp
    - Required SDKHooks

    For CSGO default medkits from HL2, are packed in zip.


    Credits to
    original plugin by Knagg0 Healthkit On Death
    env_entity_dissolver by altex KnifeFight

    PS. Tell if you get any wierd bug

    UPDATE healthkit_from_dead.smx





    I want another healthkit model, buuhuu! read me!
    To change model, edit plugins source code and compile yourself


    *IMG made by GrO
    Attached Thumbnails
    Click image for larger version

Name:	hfd.gif
Views:	5252
Size:	50.2 KB
ID:	95648   Click image for larger version

Name:	ration.jpg
Views:	10862
Size:	77.9 KB
ID:	95850  
    Attached Files
    File Type: sp Get Plugin or Get Source (healthkit_from_dead.sp - 2897 views - 9.5 KB)
    File Type: zip medkits.zip (306.7 KB, 1317 views)
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 02-17-2016 at 16:26. Reason: ...change web compiler to 1.6
    Bacardi is offline
     



    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 17:00.


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