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

[L4D2] Block Flashlight (1.2, 18/10-2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Plugin ID:
1792
Plugin Version:
1.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Upon survivor wielding a "non flashlight" weapon, flashlight will remain off until survivor switches weapon.
    Old 07-10-2010 , 10:05   [L4D2] Block Flashlight (1.2, 18/10-2011)
    Reply With Quote #1

    Block Flashlight

    About:
    This one is more of a "fun" plugin. Doesn't add much to the game play, but I still like it as it adds a bit to the realism.

    This plugin will turn off the flashlight when players are holding a "non flashlight" weapon. Such as melee, medkits, molotovs, all of those weapons without any kind of flashlight.

    Again this was just made for fun, as some of my friends wanted this for their realism games, without flashlight leaking out through a wooden bat.

    Description:
    Upon survivor wielding a "non flashlight" weapon, flashlight will remain off until survivor switches weapon.

    Known Problems / Things to Notice:

    Changelog:
    Code:
    Version 1.2 - 18/10-2011
    ~ Fixed players being able to toggle flashlight on ladder.
    ~ Fixed players being unable to toggle on their flashlight after being pin downed by an infected player.
    ~ Fixed players being unable to toggle on their flashlight after having used a ladder.
    
    Version 1.1.1 - 10-10-2010
    ~ Fixed out of bounds on OnEndTouch.
    
    Version 1.1
    + Added AWP to flashlight weapons
    + Added Atomic's ladder fix.
    
    Version 1.00
    Initial release

    Download the .smx for the plugin, as the webcompiler won't be able to compile this plugin.
    Attached Files
    File Type: smx l4dblockflashlight.smx (6.8 KB, 1346 views)
    File Type: zip L4D Block Flashlight.zip (21.9 KB, 1284 views)

    Last edited by Mr. Zero; 10-18-2011 at 06:22.
    Mr. Zero is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 07-10-2010 , 11:00   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #2

    PHP Code:
        SDKHook(clientSDKHook_EndTouch_EndTouch);

    public 
    Action:_EndTouch(entityother)
    {
        if (
    g_bBlockFlashlight[other])
        {
            
    decl String:class[64];
            
    GetEdictClassname(entity, class, sizeof(class));
            if (
    StrEqual(class, "func_simpleladder"))
            {
                
    // Just disattached from ladder
            
    }
        }

    AtomicStryker is offline
    oicw0738
    Junior Member
    Join Date: Jan 2010
    Old 07-12-2010 , 23:39   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #3

    bug report:
    1. CSS new sniper rifle(AWP and G3SG1) can't turn on flashlight;
    2.The flashlight on main gun sometimes can't turn on after switching back to main weapon from melee weapon.
    oicw0738 is offline
    asto
    Member
    Join Date: Aug 2010
    Old 09-17-2010 , 12:02   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #4

    Quote:
    Originally Posted by AtomicStryker View Post
    PHP Code:
        SDKHook(clientSDKHook_EndTouch_EndTouch);

    public 
    Action:_EndTouch(entityother)
    {
        if (
    g_bBlockFlashlight[other])
        {
            
    decl String:class[64];
            
    GetEdictClassname(entity, class, sizeof(class));
            if (
    StrEqual(class, "func_simpleladder"))
            {
                
    // Just disattached from ladder
            
    }
        }

    Hello AtomicStryker!
    Can you put this into the Block Flashlight plugin? Because i think the author will never update this plugin and i need your fix. Please...
    asto is offline
    asto
    Member
    Join Date: Aug 2010
    Old 09-17-2010 , 12:34   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #5

    BUG report:
    1. If I holding out my First Aid Kit, Grenade, melee weapon,... and then i use Heavy Machine Gun, I can turn on my flashlight.

    2. Same the bug after i climbed on ladder.

    3. If a special infected got me, my flashlight will turn off (and I can't turn on after a special infected got me).

    Last edited by asto; 09-18-2010 at 10:51.
    asto is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 09-17-2010 , 16:41   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #6

    Quote:
    Originally Posted by asto View Post
    Hello AtomicStryker!
    Can you put this into the Block Flashlight plugin? Because i think the author will never update this plugin and i need your fix. Please...
    This sounds like a stupid assumption, he has just released the plugin and im sure he will attempt to fix any bugs.
    Great concept btw Mr. Zero.
    Fleepster99 is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 09-17-2010 , 16:56   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #7

    Quote:
    Originally Posted by Fleepster99 View Post
    This sounds like a stupid assumption, he has just released the plugin and im sure he will attempt to fix any bugs.
    Great concept btw Mr. Zero.
    You think he will after more than 2 months? Sounds like the assumption is correct this time
    marvel is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 09-17-2010 , 17:37   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #8

    Quote:
    Originally Posted by marvel View Post
    You think he will after more than 2 months? Sounds like the assumption is correct this time
    Maybe your right, i was just pointing that out because he has a fair amount of plugins already under his name.
    Fleepster99 is offline
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 09-17-2010 , 19:00   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #9

    Updated to 1.1

    Added AWP to flash light weapons.
    Added Atomic's ladder fix.
    Mr. Zero is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 09-17-2010 , 19:56   Re: [L4D 1 & 2] Block Flashlight
    Reply With Quote #10

    Quote:
    Originally Posted by Mr. Zero View Post
    Updated to 1.1

    Added AWP to flash light weapons.
    Added Atomic's ladder fix.
    Haha proved me right n1 on the update
    Fleepster99 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 03:09.


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