Raised This Month: $ Target: $400
 0% 

[CS:S] Health_Light v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
schmidt
BANNED
Join Date: Mar 2010
Location: Milky Way/Earth
Plugin ID:
2939
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Healing light (health regeneration)
    Old 05-08-2012 , 09:52   [CS:S] Health_Light v1.2
    Reply With Quote #1

    Health_Light v1.2

    EN

    If you are wounded and standing up to the light, then your health will increase with every second. You need to enter the coordinates of the right places in the cfg/wS_Light.txt (you can recognize them by a script GetCoords). Must enter the coordinates for each map separately from 1 to 100.

    Add in server.cfg:

    PHP Code:
    // how much to add health every second 
    light_hp "2" 
    RU

    Если вы ранены и встанете под свет, то ваше здоровье будет увеличиваться с каждой секундой (до 100 hp). Вам нужно вписать координаты нужных мест в cfg/wS_Light.txt (узнать их можно с помощью скрипта GetCoords). Вводить координаты необходимо отдельно для каждой карты от 1 до 100.

    Добавьте в server.cfg:

    PHP Code:
    // Сколько hp даёт свет (в секунду)
    light_hp "2" 
    wS_Light.txt:

    PHP Code:
    "wS_Light"
    {
        
    "de_cbble"
        
    {
            
    "1"        "-2259.811279 -2195.177734 0.031250"
            "2"        "420.044555 2299.286376 -255.968750"
        
    }
        
    "de_dust2"
        
    {
            
    "1"        "-2111.551269 1151.605346 32.031250"
        
    }

    v1.2 :

    EN

    Administrator with the flag ADMFLAG_ROOT have access to this menu:



    Now you do not need to manually enter the coordinates in wS_Light.txt, it does not even need to touch, and simply add / delete places during the game and save the settings (only that they were in effect after map change or restart the server). If you delete or add a point, but do not save the settings, they will be in effect only during the current map. If you entered on the server after the round has already started, you'll hear the sound (from the light) after the start of a new round.

    Menu: light_admin, !light_admin, /light_admin

    RU

    Администратор с флагом ADMFLAG_ROOT имеет доступ к такому меню:



    Теперь вам не нужно вручную вводить координаты в wS_Light.txt, его даже не нужно и трогать, просто добавляйте/удаляйте места прямо во время игры и сохраняйте настройки (только чтобы они были в силе после смены карты и перезапуска сервера). Если вы удалите или добавите точку, но не сохраните настройки, то они будут в силе только в течение текущей карты, пока она не сменится. Если вы зашли на сервер после того, как раунд уже начался, то вы будете слышать звук от света только после старта нового раунда.

    Вызов админ меню: light_admin, !light_admin, /light_admin
    Attached Thumbnails
    Click image for larger version

Name:	1.jpg
Views:	1015
Size:	100.4 KB
ID:	103329   Click image for larger version

Name:	2.jpg
Views:	759
Size:	98.8 KB
ID:	103330   Click image for larger version

Name:	3.jpg
Views:	951
Size:	88.1 KB
ID:	103331   Click image for larger version

Name:	4.jpg
Views:	822
Size:	94.5 KB
ID:	103332  
    Attached Files
    File Type: zip Health_Light_v1.2.zip (12.4 KB, 2101 views)

    Last edited by schmidt; 06-27-2012 at 13:12.
    schmidt is offline
    Send a message via Skype™ to schmidt
    davidov
    Member
    Join Date: Oct 2011
    Old 05-08-2012 , 11:51   Re: [CS:S] Health_Light v1.1
    Reply With Quote #2

    Nice!
    But an added admin command to create and save the location of the light for each map into the .txt file would be usefull...
    davidov is offline
    schmidt
    BANNED
    Join Date: Mar 2010
    Location: Milky Way/Earth
    Old 05-09-2012 , 06:45   Re: [CS:S] Health_Light v1.2
    Reply With Quote #3

    I did it
    schmidt is offline
    Send a message via Skype™ to schmidt
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 01-03-2013 , 00:08   Re: [CS:S] Health_Light v1.2
    Reply With Quote #4

    I don't see any problem with the code. Approved.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Deathrow Bo Dean
    Senior Member
    Join Date: Sep 2010
    Old 09-10-2015 , 15:04   Re: [CS:S] Health_Light v1.2
    Reply With Quote #5

    schmidt I thank You for creating this very fine and useful plugin. I installed it on my CSS dedicated server a few days ago and it works just fine. !BRAVO

    I do have a request and some questions about the plugin.
    1. IT would be nice it You could some way have the Health Light as an option on the CSS SM Admins Menu.
    2. The way the plugins is set now, it only brings the health back up to 100. So if a player starts out with a health of 150 it will only restore the hp to 100 when the hp falls below 100. can I edit the HLight to have it restore the hp to a number above 100?
    3. Can I change the color of the light?
    -----------------------------------------------------------------------------------------------------
    "Very Nice Work Indeed"....DBD
    Deathrow Bo Dean 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:43.


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