AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Block Flashlight (1.2, 18/10-2011) (https://forums.alliedmods.net/showthread.php?t=131937)

Mr. Zero 07-10-2010 10:05

[L4D2] Block Flashlight (1.2, 18/10-2011)
 
2 Attachment(s)
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.

AtomicStryker 07-10-2010 11:00

Re: [L4D 1 & 2] Block Flashlight
 
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
        
}
    }



oicw0738 07-12-2010 23:39

Re: [L4D 1 & 2] Block Flashlight
 
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.

asto 09-17-2010 12:02

Re: [L4D 1 & 2] Block Flashlight
 
Quote:

Originally Posted by AtomicStryker (Post 1234298)
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... :oops:

asto 09-17-2010 12:34

Re: [L4D 1 & 2] Block Flashlight
 
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).

Fleepster99 09-17-2010 16:41

Re: [L4D 1 & 2] Block Flashlight
 
Quote:

Originally Posted by asto (Post 1301713)
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... :oops:

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.

marvel 09-17-2010 16:56

Re: [L4D 1 & 2] Block Flashlight
 
Quote:

Originally Posted by Fleepster99 (Post 1301952)
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 :wink:

Fleepster99 09-17-2010 17:37

Re: [L4D 1 & 2] Block Flashlight
 
Quote:

Originally Posted by marvel (Post 1301960)
You think he will after more than 2 months? Sounds like the assumption is correct this time :wink:

Maybe your right, i was just pointing that out because he has a fair amount of plugins already under his name. :crab:

Mr. Zero 09-17-2010 19:00

Re: [L4D 1 & 2] Block Flashlight
 
Updated to 1.1

Added AWP to flash light weapons.
Added Atomic's ladder fix.

Fleepster99 09-17-2010 19:56

Re: [L4D 1 & 2] Block Flashlight
 
Quote:

Originally Posted by Mr. Zero (Post 1302108)
Updated to 1.1

Added AWP to flash light weapons.
Added Atomic's ladder fix.

Haha proved me right n1 on the update :lol:


All times are GMT -4. The time now is 15:00.

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