Raised This Month: $ Target: $400
 0% 

[TF2] tNoSelfSandvich v0.0.3 (2011-03-15)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thrawn2
Veteran Member
Join Date: Apr 2009
Plugin ID:
2273
Plugin Version:
0.0.3
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks Heavies from picking up their own sandvich/steak.
    Unapprover:
    Reason for Unapproving:
    Author request
    Old 03-12-2011 , 12:41   [TF2] tNoSelfSandvich v0.0.3 (2011-03-15)
    Reply With Quote #1



    This requires SDKHooks2.

    It blocks Heavies from picking up their own sandvich/steak.
    (Actually it blocks players from picking up medium medkits of which they are the owner of. Currently only heavies can create those.)

    Cvars
    • sm_tnoselfsandvich_enable, set to 0 to disable. (default 1).
    • sm_tnoselfsandvich_refill, if set to 1 heavies can pickup their own sandvich to refill their meter. (default 0).

    credits to psychonic.
    requested here.

    Changelog:
    0.0.3:
    • Add option to refill a heavies meter instead of blocking pickup completely.
    0.0.2:
    • fixed broken pickup after owner touched his sandvich/steak.
    Attached Files
    File Type: sp Get Plugin or Get Source (tNoSelfSandvich.sp - 271 views - 4.2 KB)
    File Type: smx tNoSelfSandvich.smx (3.6 KB, 272 views)
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 03-14-2011 at 19:07. Reason: updated to v0.0.3
    Thrawn2 is offline
    Trotim
    Junior Member
    Join Date: Mar 2011
    Old 03-13-2011 , 09:46   Re: [TF2] tNoSelfSandvich v0.0.1 (2011-03-12)
    Reply With Quote #2

    Very nice, thanks a lot already. There seems to be a bug (maybe involving the new iOwner) with it though - when the original thrower moves over it, no other player can pick it up afterward anymore either. It becomes completely useless once the original thrower touches it.
    Trotim is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 03-13-2011 , 10:28   Re: [TF2] tNoSelfSandvich v0.0.2 (2011-03-13)
    Reply With Quote #3

    fixed.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    Trotim
    Junior Member
    Join Date: Mar 2011
    Old 03-14-2011 , 17:12   Re: [TF2] tNoSelfSandvich v0.0.2 (2011-03-13)
    Reply With Quote #4

    Works great!

    If you wanted to expand this a bit, something people suggested was to refill the meter and remove the sandvich again if the original thrower walks over it, instead of him just ignoring it.

    Not particularly needed, but it might be a fun addition if you can spare the time.
    Trotim is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 03-14-2011 , 19:08   Re: [TF2] tNoSelfSandvich v0.0.3 (2011-03-15)
    Reply With Quote #5

    updated to 0.0.3:
    Added option to refill the sandvich meter instead of blocking pickup completely.
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    dirtyminuth
    Senior Member
    Join Date: Sep 2009
    Old 03-14-2011 , 23:57   Re: [TF2] tNoSelfSandvich v0.0.3 (2011-03-15)
    Reply With Quote #6

    Quote:
    Originally Posted by [AAA] Thrawn View Post
    updated to 0.0.3:
    Added option to refill the sandvich meter instead of blocking pickup completely.
    Nice work Thrawn - didn't realize that SDKHooks 2 allowed one to block the touch event!

    One question - why do you hook StartTouch and Touch? Why not just hook Touch?
    __________________
    dirtyminuth is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 03-15-2011 , 03:56   Re: [TF2] tNoSelfSandvich v0.0.3 (2011-03-15)
    Reply With Quote #7

    Quote:
    Originally Posted by dirtyminuth View Post
    One question - why do you hook StartTouch and Touch? Why not just hook Touch?
    The game does some really weird things with touch order, although I doubt it's needed for this.
    __________________
    asherkin is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 02-15-2012 , 09:57   Re: [TF2] tNoSelfSandvich v0.0.3 (2011-03-15)
    Reply With Quote #8

    Since todays patch this plugin has no use anymore:
    Quote:
    Updated the Heavy's sandvich so it will only resupply ammo if the owner picks it up after dropping it. This means the only way to gain health from the sandvich is by eating it.
    -> Please unapprove.

    To get the old effect back use this plugin.

    edit: thanks.
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 02-15-2012 at 12:14.
    Thrawn2 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 12:07.


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