Raised This Month: $32 Target: $400
 8% 

[CS:GO] Native Flashlight (1.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Plugin ID:
6009
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Makes mp_flashlight functional in CS:GO.
    Old 01-29-2018 , 21:08   [CS:GO] Native Flashlight (1.0)
    Reply With Quote #1

    Note:
    This plugin also makes mp_flashlight's minimum value to 1, making it impossible to disable unless you unload the plugin and restart the server.
    You can use this plugin as an alternative to Mitchell's Flashlight plugin.

    Description:
    This plugin brings back the flashlight functionality in CS:GO by hooking +lookatweapon. This method also respects impulse 100.

    Settings:
    nativeflashlight_base (default, 0) - Enable the base functionality of +lookatweapon?

    This plugin creates a config file in cfg/sourcemod/. You can edit the setting(s) there.
    Attached Files
    File Type: sp Get Plugin or Get Source (flashlight.sp - 1365 views - 1.4 KB)
    __________________
    retired
    shavit is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 01-29-2018 , 22:09   Re: [CS:GO] Native Flashlight (1.0)
    Reply With Quote #2

    What makes this different from my plugin besides making the minimal value of mp_flashlight to 1 and using an impulse under OnPlayerRunCmd (which doesn't seem right to override the current impulse being sent if one is being sent..)
    This does give me an idea to add to my plugin however.
    Mitchell is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 01-29-2018 , 22:41   Re: [CS:GO] Native Flashlight (1.0)
    Reply With Quote #3

    Quote:
    Originally Posted by Mitchell View Post
    What makes this different from my plugin
    Not much. The user sees the same thing, it mostly exists because I had players in my CS:GO server asking why their flashlight doesn't turn on. Turns out they copied their CS:S config over to CS:GO and had impulse 100 bound, rather than +lookatweapon.

    Even though under the hood it's basically the same: https://github.com/VSES/SourceEngine....cpp#L347-L355
    __________________
    retired

    Last edited by shavit; 01-29-2018 at 22:42.
    shavit 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 23:24.


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