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

[ZR] Class Attribute Hearbeat [Humans]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
000
Member
Join Date: Jul 2022
Plugin ID:
8104
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 07-08-2022 , 03:44   [ZR] Class Attribute Hearbeat [Humans]
    Reply With Quote #1

    Description:
    This plugin will start a heartbeat when a Human is below a given Health value.
    This is the same thing from L4D2.

    There is second plugin included where heartbeat is turned of automatically when players' health is stable again.

    Requirements:
    SourceMod 1.11+
    Zombie:Reloaded
    [ZR] Tools

    Installation:
    - Put all files from the release folder in your game root folder ("csgo", "cstrike", ...).
    - Reload map.

    If the plugin(s) are not working as intended, check your logs in addons/sourcemod/logs and report here.
    If error logs are not available, report nevertheless.

    Configuration:
    This plugin, unlike plugins usually do, does not use any .cfg files and is purely configurable via playerclasses.txt.
    This means you can change values per playerclass.

    PHP Code:
    "heartbeat" "1" // Is Heartbeat enabled for this class? (1: Enabled, 0: Disabled)
    "heartbeat_health" "50" // When Player has this amount of health, heartbeat starts.
    "heartbeat_speed" "250" // New speed the Player has when heartbeat started (300 = disabled).
    "heartbeat_overlay" "overlays/zr/zvision" // overlay to use on heartbeat ("" = disabled).
    "heartbeat_sound" "zr/heartbeatloop.wav" // sound to play on heartbeat ("" = disabled). 
    Add these values to all Humans playerclasses you have, anywhere you want.

    Put your file for the overlay in materials/overlays/zr and for the sound in sound/zr folder.
    Don't forget to add them in zr/downloads.txt.

    Changelog:
    Code:
    - v1.0
    • Initial release.
    - v1.1
    • Fixed handle.
    - v1.2
    • "heartbeat_on" is now "heartbeat".

    Last edited by DarkDeviL; 06-15-2023 at 12:41. Reason: Restore to previous version.
    000 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 02:47.


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