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

[L4D(2)] Laser Tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Plugin ID:
1717
Plugin Version:
0.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    73 
    Plugin Description:
    Shows a laser for straight-flying fired projectiles
    Old 06-08-2010 , 09:49   [L4D(2)] Laser Tag
    Reply With Quote #1

    Laser Tag for L4D(2)

    Hi guys, I'm back just releasing a small plugin I adapted from somewhere quite a while back then saw another plugin (can't remember the name) which had this, but wasn't quite how I'd liked it implemented.

    So I remade the plugin and here's Laser Tag for L4D2 (L4D untested but should work in theory)

    (Yes I know there's another Laser Tag plugin but that only works for CS:S - I tried)

    Shotguns (every single pellet), Rifles, SMGs, Sniper Rifles, Pistols supported and can be disabled by convar.
    Melee weapons and grenades are disabled.

    Configurable Variables:
    • Laser Colour (Red, Green, Blue):
      l4d_lasertag_red
      l4d_lasertag_green
      l4d_lasertag_blue
    • Bots' Laser Colour (Red, Green, Blue):
      l4d_lasertag_bots_red
      l4d_lasertag_bots_green
      l4d_lasertag_bots_blue
    • Laser options (Width, Life, Transparency, Offset):
      l4d_lasertag_width
      l4d_lasertag_life
      l4d_lasertag_alpha
      l4d_lasertag_bots_alpha
      l4d_lasertag_offset
    • Enability (Enabled, Versus/Scavenge, Realism):
      l4d_lasertag_enable
      l4d_lasertag_vs
      l4d_lasertag_realism
    • Gun Types (Shotguns, Rifles, SMGs, Sniper Rifles, Pistols):
      l4d_lasertag_shotguns
      l4d_lasertag_rifles
      l4d_lasertag_smgs
      l4d_lasertag_snipers
      l4d_lasertag_pistols
    • Bots can Laser Tag?
      l4d_lasertag_bots

    Code:
    Changelog
    v0.1
     - Initial Release
    v0.2
     - Optimized code
     - Added different bots RGBA (see Convars) (default colour is Turquoise 0/255/75)
     - Removed width2
     - Fixed laser width cvar changing on-the-fly not working
     - Changed default width to 1.0
     - Changed default alpha to 100
     - Changed default life to 0.80
     - Changed default colour of Survivors laser to light blue (0/125/255)
     - Changed name to [L4D(2)] Laser Tag
    Yes I've seen the suggestion of having different colours for each character. I feel it'll make the plugin a little more complicated than it needs to be but I'll consider! (:


    --Download History--
    v0.1 - 1365 downloads
    Attached Thumbnails
    Click image for larger version

Name:	c1m2_streets0003.jpg
Views:	8412
Size:	97.1 KB
ID:	80577  
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_lasertag.sp - 5668 views - 10.6 KB)
    __________________

    Last edited by Whosat; 01-11-2011 at 15:49. Reason: Updated version 0.2
    Whosat is offline
    dani1341
    BANNED
    Join Date: Feb 2010
    Old 06-08-2010 , 10:26   Re: [L4D/2] Laser Tag
    Reply With Quote #2

    what does this mean ? i can change the color of the laser sight ?

    PS: sorry im a noob
    dani1341 is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 06-08-2010 , 11:14   Re: [L4D/2] Laser Tag
    Reply With Quote #3

    Nope, everytime you fire a bullet, it will draw a laser from your gun to the point where the bullet hit something.
    __________________
    Whosat is offline
    dani1341
    BANNED
    Join Date: Feb 2010
    Old 06-08-2010 , 12:14   Re: [L4D/2] Laser Tag
    Reply With Quote #4

    ah i got it hope it wont make lags xD
    dani1341 is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 06-08-2010 , 12:36   Re: [L4D/2] Laser Tag
    Reply With Quote #5

    Hope it doesn't either!
    __________________
    Whosat is offline
    Searcher64
    Senior Member
    Join Date: Apr 2010
    Old 06-08-2010 , 13:12   Re: [L4D/2] Laser Tag
    Reply With Quote #6

    Laser pistols? lol
    Searcher64 is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 06-08-2010 , 13:15   Re: [L4D/2] Laser Tag
    Reply With Quote #7

    lol, yes actually haha but it does nothing more than just draw a laser sprite. No extra damage or any vapourisation.

    Oh speaking of which, does anyone if the hl2 vapourisation effect is available in l4d2?
    __________________
    Whosat is offline
    NoPaSs[BG]
    Member
    Join Date: Apr 2010
    Old 06-08-2010 , 16:35   Re: [L4D & L4D2] Laser Tag
    Reply With Quote #8

    could you make a cvar for only grenade trail because i dont like it but would be cool for the grenade
    NoPaSs[BG] is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 06-08-2010 , 22:31   Re: [L4D & L4D2] Laser Tag
    Reply With Quote #9

    Ah I haven't got a way to make grenade trails and grenade launcher trails. That isn't in this plugin yet but its planned

    Does anyone know whether grenades are entities which can be tagged on by TE_SetupBeamFollow? What about those fired from grenade_launchers?
    __________________
    Whosat is offline
    NoPaSs[BG]
    Member
    Join Date: Apr 2010
    Old 06-09-2010 , 06:47   Re: [L4D & L4D2] Laser Tag
    Reply With Quote #10

    could you make please one cvar to this plugin be enabled ONLY for grenades
    NoPaSs[BG] is offline
    Reply


    Thread Tools
    Display Modes

    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 11:20.


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