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

[ZR] Lights v2.0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Plugin ID:
2546
Plugin Version:
2.0.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Custom lights for player. Useful on night maps
    Old 09-06-2011 , 09:16   [ZR] Lights v2.0.2
    Reply With Quote #1

    Requirements:
    Zombie:Reloaded 3.1
    [ZR] Tools

    Decription:
    Zombies and humans will have their own lights. Also it disables flashlights for zombies

    How to use:
    Open the playerclasses.txt file and add attributes to any class you want
    PHP Code:
    "light_distance" "600.0" // 0.0 to disable the light to this class
    "light_color" "255 255 255 255" // Set by RGBA 
    Humans can turn off their light by button 'N' (console - nightvision). The feature can be disabled by cvar.

    Console Variables:
    zr_lights_version - The plugin's version
    zr_flashlights_humans - Turn on/off the humans' flashlights
    zr_lights_humans_off - Allow humans to turn on/off their light by button "N"(console - nightvision)

    Installation:
    Put zr_lights.smx to the folder addons/sourcemod/plugins
    Put zr_lights.sp to the folder addons/sourcemod/scripting


    Changelog:
    Code:
    • v2.0.1 - Updated to work with ZR Tools 1.6.1
    • v2.0.2 - Feature disabled for fake clients
    Attached Files
    File Type: smx zr_lights.smx (6.8 KB, 1704 views)
    File Type: sp Get Plugin or Get Source (zr_lights.sp - 1498 views - 7.2 KB)

    Last edited by Despirator; 01-25-2013 at 16:53. Reason: Disabled feature for fake clients
    Despirator is offline
    rhelgeby
    Veteran Member
    Join Date: Oct 2008
    Location: 0x4E6F72776179
    Old 09-06-2011 , 14:14   Re: [ZR] Lights v1.8
    Reply With Quote #2

    Pretty cool idea. This could even be extended more with individual class settings (if we implement this in a later ZR version), and possibly a little menu for changing light presets (brightness, color, style, etc).

    Typo in cvar: zr_lights_humansdistance. It's without the S in the code.

    Possible bug (unless intended): Spectators get this light when spawning. You might as well disable it for fake clients too (bots).
    __________________
    Richard Helgeby

    Zombie:Reloaded | PawnUnit | Object Library
    (Please don't send private messages for support, they will be ignored. Use the forum.)

    Last edited by rhelgeby; 09-06-2011 at 14:29.
    rhelgeby is offline
    Send a message via MSN to rhelgeby
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 10-02-2011 , 13:30   Re: [ZR] Lights v1.8
    Reply With Quote #3

    waiting for the next ZR release
    mainly in natives

    Last edited by Despirator; 10-05-2011 at 08:41.
    Despirator is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 10-03-2011 , 15:30   Re: [ZR] Lights v1.8
    Reply With Quote #4

    Quote:
    Originally Posted by Despirator View Post
    waiting for the next ZR release
    http://code.google.com/p/zombiereloa...po=zr-dev-base
    KyleS is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 01-19-2013 , 03:13   Re: [ZR] Lights v2.0
    Reply With Quote #5

    updated with per class setting

    Example on how to add the feature:
    PHP Code:
    "classes"
    {
        
    // ------------------------------------------
        //
        // Zombie classes
        //
        // ------------------------------------------
        
    "zombie_classic"
        
    {
            
    // General
            
    "enabled"               "yes"
            "team"                  "0"
            "team_default"          "yes"
            "flags"                 "0"
            "group"                 ""
            
            "name"                  "Classic"
            "description"           "Need brains!!! Arrrrggghh!"
            
            
    // Model
            
    "model_path"            "models/player/zh/zh_corpse002.mdl"
            "alpha_initial"         "255"
            "alpha_damaged"         "255"
            "alpha_damage"          "0"

            "light_distance"        "600.0" 
    // 0.0 or don't put this attribute to disable the light to this class
            
    "light_color"                "255 255 255 255" // Set by RGBA
            
            // Hud
            
    "overlay_path"          "overlays/zr/zvision"
            "nvgs"                  "no"
            "fov"                   "90"
            
            
    // Effects
            
    "has_napalm"            "no"
            "napalm_time"           "10.0"
            
            
    // Player behavior
            
    "immunity_mode"         "none"
            "immunity_amount"       "1"
            "immunity_cooldown"     "60"
            "no_fall_damage"        "yes"
            
            "health"                "3200"
            "health_regen_interval" "0.0"
            "health_regen_amount"   "0"
            "health_infect_gain"    "500"
            "kill_bonus"            "2"
            
            "speed"                 "390"
            "knockback"             "3.2"
            "jump_height"           "1.1"
            "jump_distance"         "1.2"
        
    }

    Despirator is offline
    weas
    Senior Member
    Join Date: Dec 2012
    Old 01-19-2013 , 03:18   Re: [ZR] Lights v2.0
    Reply With Quote #6

    Cool idea light ZR 3.1)

    Last edited by weas; 01-19-2013 at 03:21.
    weas is offline
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 03-07-2013 , 11:55   Re: [ZR] Lights v2.0.2
    Reply With Quote #7

    Any screenshots/videos?
    iGANGNAM is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 03-07-2013 , 12:09   Re: [ZR] Lights v2.0.2
    Reply With Quote #8

    Quote:
    Originally Posted by iGANGNAM View Post
    Any screenshots/videos?
    http://i.imgur.com/QlvPK.jpg
    Despirator is offline
    evans
    Senior Member
    Join Date: May 2021
    Location: OnSmokeDetonate();
    Old 10-13-2022 , 03:13   Re: [ZR] Lights v2.0.2
    Reply With Quote #9

    I see it's almost ten yrs since last post but i try to ask anyway, could it be possible to choose some color and assign it by steam id? or ip address? thanks for any answers
    By the way, very nice, handy and usable plugin, very good job and idea because it makes no sense that zombies using flashlight. So this is very good solution how the zombies can see in the dark and at the same time no flashlight.
    __________________

    Last edited by evans; 10-13-2022 at 03:21.
    evans 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:37.


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