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

[L4D1 & L4D2] Jump Beam Ring [v1.0.3 | 08-July-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8387
Plugin Version:
1.0.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    14 
    Plugin Description:
    Creates a colored beam ring on player jump
    Old 02-12-2023 , 17:42   [L4D1 & L4D2] Jump Beam Ring [v1.0.3 | 08-July-2023]
    Reply With Quote #1

    Description

    Creates a colored beam ring on player jump.

    Found a similar plugin in a L4D2 community server once, but since I couldn't find the author source code, I made a similar one.

    May be useful since sometimes players used to jump to draw attention to something, or to track clients jumps on speed running and bhop challenging maps.

    Features
    • Allow clients to configure their color by menu or RGB args. (stored in cookies)
    • Allow configuring which teams should trigger the jump beam ring.
    • Allow configuring the beam model/color/alpha/duration/start & end radius/width/amplitude/offset.
    • Allow configuring by client flag.
    • Beam only transmitted to teammates.

    Cvars

    A configuration file named "l4d_jump_beamring.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Beam alpha transparency.
    // 0 = Invisible, 255 = Fully Visible.
    // -
    // Default: "255"
    // Minimum: "0.000000"
    // Maximum: "255.000000"
    l4d_jump_beamring_alpha "255"

    // Beam amplitude.
    // -
    // Default: "0.0"
    // Minimum: "0.000000"
    l4d_jump_beamring_amplitude "0.0"

    // Beam color.
    // Use "random" for random colors.
    // Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>").
    // -
    // Default: "255 255 0"
    l4d_jump_beamring_color "255 255 0"

    // Beam duration (seconds).
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    l4d_jump_beamring_duration "1.0"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_jump_beamring_enable "1"

    // Beam end radius.
    // -
    // Default: "70.0"
    // Minimum: "0.000000"
    l4d_jump_beamring_end_radius "70.0"

    // Players with these flags can generate the beam.
    // Empty = everyone.
    // Known values at "\addons\sourcemod\configs\admin_levels.cfg".
    // Example: "az", will enable to players with "a" (reservation) or "z" (root) flag.
    // -
    // Default: ""
    l4d_jump_beamring_flags ""

    // Beam model.
    // -
    // Default: "sprites/laserbeam.vmt"
    l4d_jump_beamring_model "sprites/laserbeam.vmt"

    // Beam offset (Z pos) from client's foot.
    // -
    // Default: "24.0"
    // Minimum: "0.000000"
    l4d_jump_beamring_offset "24.0"

    // Beam start radius.
    // -
    // Default: "35.0"
    // Minimum: "0.000000"
    l4d_jump_beamring_start_radius "35.0"

    // Which teams can trigger the beam.
    // 0 = NONE, 1 = SURVIVOR, 2 = INFECTED, 4 = SPECTATOR, 8 = HOLDOUT.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for SURVIVOR and INFECTED.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "15.000000"
    l4d_jump_beamring_team "1"

    // Beam width.
    // -
    // Default: "1.0"
    // Minimum: "0.000000"
    l4d_jump_beamring_width "1.0" 
    Public Commands
    • sm_jumpcolor => Open a menu to client select their jump beam ring color. Usage: sm_jumpcolor <255> <255> <255>

    Admin Commands
    • sm_print_cvars_l4d_jump_beamring => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • +24.0 Z offset was added, so beam can be visible above water on the "Hard Rain" map.

    To-Do
    • Better multi-language menu support.

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Thank you!


    Installation
    • Put the "l4d_jump_beamring.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_jump_beamring.sp - 277 views - 25.9 KB)
    __________________

    Last edited by Marttt; 10-02-2023 at 21:36.
    Marttt is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 02-13-2023 , 10:22   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2022]
    Reply With Quote #2

    Nice plugin, good job!

    Also, why did you put the date of 2022, if we are in 2023? xD
    Maur0 is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 02-13-2023 , 11:57   Re: [L4D1 & L4D2] Jump Beam Ring
    Reply With Quote #3

    Quote:
    Originally Posted by Marttt View Post
    Thanks, was a typo that I didn't notice, probably because I did it last year (also copy+paste structure).
    Maur0 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-13-2023 , 11:58   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2023]
    Reply With Quote #4

    Quote:
    Originally Posted by Marttt View Post
    Found a similar plugin in a community server once, but since I couldn't find the author source code, I made a similar one.
    Maybe [Shop Core] Jump effect?
    __________________
    Grey83 is offline
    zonbarbar
    Member
    Join Date: Jul 2022
    Old 02-22-2023 , 02:04   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2023]
    Reply With Quote #5

    goooooooooood
    zonbarbar is offline
    Lider99
    Member
    Join Date: Mar 2020
    Old 03-19-2023 , 13:20   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2023]
    Reply With Quote #6

    SourcePawn Compiler 1.10
    Copyright (c) 1997-2006 ITB CompuPhase
    Copyright (c) 2004-2018 AlliedModders LLC

    include/helpers.inc(8 : warning 219: local variable "clients" shadows a variable at a preceding level
    include/sdktools_sound.inc(554) : warning 219: local variable "clients" shadows a variable at a preceding level
    plugin.sp(201) : error 020: invalid symbol name ""
    plugin.sp(201) : error 029: invalid expression, assumed zero
    plugin.sp(201) : error 029: invalid expression, assumed zero
    plugin.sp(201) : fatal error 190: too many error messages on one line
    __________________
    If I unintentionally insulted or offended you, then it's not me, but Google translate
    Lider99 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 03-19-2023 , 13:30   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2023]
    Reply With Quote #7

    Lider99, need SM1.11+ to compile.
    __________________

    Last edited by Grey83; 03-19-2023 at 13:30.
    Grey83 is offline
    Lider99
    Member
    Join Date: Mar 2020
    Old 06-18-2023 , 04:25   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.2 | 13-February-2023]
    Reply With Quote #8

    how to make the beamring only for vip players with a certain flag?
    __________________
    If I unintentionally insulted or offended you, then it's not me, but Google translate
    Lider99 is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 07-08-2023 , 10:28   Re: [L4D1 & L4D2] Jump Beam Ring [v1.0.3 | 08-July-2023]
    Reply With Quote #9

    Plugin updated (1.0.3)

    Code:
    1.0.3 (08-July-2023)
        - Added cvar to enable beam by client flag. (thanks "Lider99 " for requesting)
    __________________
    Marttt 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:09.


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