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

[HL2:DM] Infinite aux power for sprinting OR breathing


Post New Thread Reply   
 
Thread Tools Display Modes
Author
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Plugin ID:
432
Plugin Version:
2.0.0
Plugin Category:
Gameplay
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
    71 
    Plugin Description:
    hl2mp infinite aux power for sprinting OR breathing
    Old 06-22-2008 , 14:44   [HL2:DM] Infinite aux power for sprinting OR breathing
    Reply With Quote #1


    for sprinting and breathing

    Description:
    This plugin splits up the srcds console command: sv_infinite_aux_power into:
    • sm_infinite_aux_sprinting - which lets every player sprint forever.
    • sm_infinite_aux_breathing - which lets every player breath under water forever.
    You can now decide as example, that the players are able to sprint forever, but are not able to breath underwater (handy for puzzle map servers). The same apply for the opposite configuration.
    Cvars:
    • sm_infinite_aux_enable <0|1> - The master switch:
      • If this is 0, then both infinite sprinting and breathing are disabled.
      • If this is 1, then the following cvars decide if the players are able to sprint or breath infinitely.
    • sm_infinite_aux_sprinting <0|1> - The sprinting switch:
      • If this is 0, then only infinite sprinting is disabled.
      • If this is 1, then only infinite sprinting is enabled.
    • sm_infinite_aux_breathing <0|1> - The breathing switch:
      • If this is 0, then only infinite breathing is disabled.
      • If this is 1, then only infinite breathing is enabled.

    Changelog:
    • 2010-10-17 Version 2.0.0
      • Author Chanz added.
      • Recode of everything, to make it faster and cleaner.
      • Changed the cvars for sprinting and breathing.
      • Added version cvar.
    • 2008-06-22 Version 1.0
      • Initial release

    Installation:
    • Place infinite_aux_power.smx into your '<moddir>/addons/sourcemod/plugins/' folder.
    • Place plugin.infinite_aux_power.cfg into your '<moddir>/cfg/sourcemod/' folder.

    Important Information:
    • This only works with Half-Life 2: Deathmatch!
    • The cvars changed in version 2.0.0, be sure to delete the cvars where every you put them (server.cfg, autoexec.cfg, etc.).
    • If you update be sure to overwrite the plugin.infinite_aux_power.cfg in your <moddir>/cfg/sourcemod/ folder!

    Download:
    The provided cfg file is configured that it enables sprinting by default, change that if you only like to enable this plugin on some maps.
    Attached Files
    File Type: sp Get Plugin or Get Source (infinite_aux_power.sp - 4870 views - 9.5 KB)
    File Type: cfg plugin.infinite_aux_power.cfg (597 Bytes, 2627 views)

    Last edited by berni; 10-16-2010 at 20:27.
    berni is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-22-2008 , 14:45   Re: Half Life 2: Deathmatch Infinite aux
    Reply With Quote #2

    Forget something?
    bl4nk is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 06-22-2008 , 14:48   Re: Half Life 2: Deathmatch Infinite aux
    Reply With Quote #3

    Please, you replied one minuter later, I was just uploading this lol ;D
    berni is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-22-2008 , 15:48   Re: Half Life 2: Deathmatch Infinite aux power for sprinthing/breathing
    Reply With Quote #4

    Why don't you just strip the cheat flag from sv_infinite_aux_power? Wouldn't that basically do the same thing?
    bl4nk is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 06-22-2008 , 16:01   Re: Half Life 2: Deathmatch Infinite aux power for sprinthing/breathing
    Reply With Quote #5

    That's what I was doing until now (read here).

    Quote:
    Originally Posted by berni View Post
    Allows control over the aux power when sprinting or being under water without having to use sv_infinite_aux_power (which would require sv_cheats on and would be general).
    The problem is, that way you can't just enable it for sprinting and leave it disabled for breathing under water. On our server we got some puzzle maps, that would be too easy to solve with infinite breathing, but we want infinite sprinting ;)
    berni is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 06-22-2008 , 16:04   Re: Half Life 2: Deathmatch Infinite aux power for sprinthing/breathing
    Reply With Quote #6

    Ah, ok. Makes sense I guess.
    bl4nk is offline
    Blaze420
    New Member
    Join Date: Nov 2008
    Old 11-11-2008 , 20:52   Re: Half Life 2: Deathmatch Infinite aux power for sprinting/breathing
    Reply With Quote #7

    Quote:
    Originally Posted by berni View Post
    Infinite aux power for hl2dm

    Allows control over the aux power when sprinting or being under water without having to use sv_infinite_aux_power (which would require sv_cheats on and would be general).
    Note: Turning sv_infinite_aux_power on disables this plugin.

    Commands

    none


    Cvars

    sm_infinite_sprinting <0 | 1> - Enables infinite sprinting without losing any aux power
    Default: 0

    sm_infinite_breathing <0 | 1> - Enables infinite breathing when being under water without losing any aux power
    Default: 0

    Todo
    • Do it in a cleaner way ? (but this would require the useage of none virtual function hooks)
    Changelog

    22-6-2008 Version 1.0
    • Initial release
    Tested games
    • Half Life 2: Deathmatch

    Known Bugs/Limitations


    none
    Can you please tell me how to get this running on a linux server? I had it running before, about 6 months ago.. But I have forgotten how to set it up. I placed the .smx file in the addons folder I think, and I thjought I had to create and autoexec.cfg file.. Not sure though, thanks in advance. I am referring to the Infinite_aux plugin that is. I want the plugin to give players infinite_aux power.

    Last edited by Blaze420; 11-11-2008 at 21:52.
    Blaze420 is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 11-12-2008 , 03:41   Re: Half Life 2: Deathmatch Infinite aux power for sprinting/breathing
    Reply With Quote #8

    You put the .smx file into /addons/sourcemod/plugins/ and in cfg/server.cfg you put sm_infinite_sprinting 1 or sm_infinite_breathing 1
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    Blaze420
    New Member
    Join Date: Nov 2008
    Old 11-12-2008 , 06:18   Re: Half Life 2: Deathmatch Infinite aux power for sprinting/breathing
    Reply With Quote #9

    awesome, it worked.. Thanks a ton man..
    Blaze420 is offline
    rautamiekka
    Veteran Member
    Join Date: Jan 2009
    Location: Finland
    Old 04-02-2009 , 07:01   Re: Half Life 2: Deathmatch Infinite aux power for sprinting/breathing
    Reply With Quote #10

    Berni, TLYK (To Let You Know), Kigen AntiCheat, the KAC, has conflicts with your Plugin: on my HL2DM Coop, KAC have made reasonless bans which have included me many times. KAC thinks some of the banneds have attempted to force sv_cheats when they're truly innocent. I already told Kigen about it. I urge you two to cooperate, as both Plugins are awesome so I regret I have to keep your Plugin disabled until the conflict is fixed.
    rautamiekka is offline
    Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
    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 05:36.


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