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

[CS:S] Fly Command v1.0.3 (Updated: 7/12/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
2903
Plugin Version:
1.0.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Provides the sm_fly command, which allows the player to soar like a severely injured eagle.
    Old 04-12-2012 , 21:49   [CS:S] Fly Command v1.0.3 (Updated: 7/12/12)
    Reply With Quote #1

    Requirements:
    • Plugin has only been tested on CS:S. May function properly on other games (if so, please let me know!)
    Description:
    • Apparently, this plugin hasn't been written yet, or if it has, it exists in a multi feature/command package. Essentially, sm_fly provides the flying ability of sm_noclip but without the ability to pass through walls. It's a very quick copy/paste job from another one of my plugins, so the features are quite lacking. I doubt it'll be used much, but here it is.
    Commands:
    • sm_fly
      • The public version !fly is hooked so that it will not spam chat.
      • You can press your Shift key (in default CS:S, shift is bound to +speed) to come to a complete stop.
    Convars:
    • sm_fly_enabled - Enables/disables the ability to use the sm_fly command.
    • sm_fly_override - The override checked for access to use the sm_fly command. Set to "" to allow anyone to use the command.
    • sm_fly_flag - The flag to check if a user does not have access to the provided override. Set to "" to allow anyone to use the command.
    • sm_fly_notify - If enabled (and a valid override/flag is set), the plugin will spit notifications and logs about sm_fly usage.
    • sm_fly_commands - The chat triggers available to clients to access fly.


    Installation:
    • Place sm_fly.smx inside of /sourcemod/plugins/
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_fly.sp - 1353 views - 8.6 KB)
    __________________

    Last edited by thetwistedpanda; 07-12-2012 at 14:59.
    thetwistedpanda is offline
    uK4160
    Junior Member
    Join Date: Jan 2011
    Old 04-12-2012 , 21:59   Re: [CS:S] Fly Command v1.0.1 (Updated: 4/12/11)
    Reply With Quote #2

    Cheers panda, much love.
    __________________

    uK4160 is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 04-13-2012 , 16:35   Re: [CS:S] Fly Command v1.0.2 (Updated: 4/12/12)
    Reply With Quote #3

    You shouldn't add a command listener for say/say_team. If your register a command with sm_ in front example sm_cake. !cake and /cake in chat should work automatically. It isn't limited to only admin commands. Also more nit picking but why provide a cvar to change the flag and provide an override? If they want to override just change the flag. Or just provide the override string and let them override and get rid of both cvars . Other than that looks good.
    Dr!fter is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 04-13-2012 , 17:58   Re: [CS:S] Fly Command v1.0.2 (Updated: 4/12/12)
    Reply With Quote #4

    It exists just not publicly. Thanks for the release. Would be nice if admins could make other people fly: sm_fly <player>.
    __________________
    Fearts is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 04-13-2012 , 18:32   Re: [CS:S] Fly Command v1.0.2 (Updated: 4/12/12)
    Reply With Quote #5

    It does work automatically, but registering sm_cake, users typing !cake will print it to chat. Frankly with a command such as this that will get used often, it's quite spammy, so I chose to hook the ! version and make sure it isn't printed. The only reason I still provide sm_fly is for console access. The method isn't ideal, but it works perfectly.

    From my understanding of CheckCommandAccess, the flag is checked if the override fails. The current setup caters to both types of users, those that like to use overrides, or like myself that like to use flags. I can provide a bogus override and still use the flag portion, or I can use a valid override and have an alternate flag.
    __________________

    Last edited by thetwistedpanda; 04-13-2012 at 18:35.
    thetwistedpanda is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 04-14-2012 , 08:05   Re: [CS:S] Fly Command v1.0.2 (Updated: 4/12/12)
    Reply With Quote #6

    the say command for !fly dosent work, but in other hands the say command for !sm_fly does.
    Mitchell is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 07-12-2012 , 14:59   Re: [CS:S] Fly Command v1.0.3 (Updated: 7/12/12)
    Reply With Quote #7

    Version 1.0.3
    ---
    • Added cvar sm_fly_notify, which issues admin notifications if this is used as an admin plugin.
    • Added cvar sm_fly_commands, which lets users set their own chat triggers to access fly.
    • Improved auth logic.
    __________________
    thetwistedpanda is offline
    nynCuKaH
    Member
    Join Date: Apr 2012
    Location: void
    Old 01-24-2013 , 12:33   Re: [CS:S] Fly Command v1.0.3 (Updated: 7/12/12)
    Reply With Quote #8

    Quote:
    Originally Posted by thetwistedpanda View Post
    Nice plugin.
    __________________

    Last edited by nynCuKaH; 01-24-2013 at 12:34.
    nynCuKaH 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 08:05.


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