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

[TF2] Trapped Sandviches


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Plugin ID:
7265
Plugin Version:
1.0.3c
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Hold RELOAD to throw trapped sandviches that deal damage.
    Old 08-20-2020 , 05:04   [TF2] Trapped Sandviches
    Reply With Quote #1

    Feel free to suggest features.

    This is a simplistic plugin that allows Heavies to throw out trapped versions of Sandviches that heal less, but deal damage to the opposing team.

    They will deal the same amount of damage as they would've healed.
    Unfortunately, this damage will cut-off if it's more than the maximum amount of health, just like a normal small health-pack.
    (A Heavy with 299 health picks up a trapped sandvich; he only loses 1 HP instead of 60 HP.)
    (A Scout with 115 health picks up a trapped sandvich; he only loses 10 HP instead of 25 HP.)

    The above feature is now cut and replaced entirely with sm_trapped_sandvich_damage.
    The trapped Sandviches can also only be picked up if the victim has less-than-max health.

    -= How to Use =-
    1. Take out your sandvich.
    2. Press and hold the RELOAD key.
    3. Throw the sandvich by pressing MOUSE2.


    -= Further Info =-
    - When a player changes class to Heavy, they'll be informed with a hint text.
    - A difference between a normal Sandvich and it's trapped version is the normal one floats higher off the ground, whilst the trapped version looks more as if laid down on the ground.

    -= ConVars =-

    sm_trapped_sandvich_enable {1.0} [0.0/1.0] = Allow Heavies to throw trapped sandviches by holding RELOAD while throwing a Sandvich.
    sm_trapped_sandvich_damage {50.0} [0.0/INF] = Damage to deal to victims of trapped sandviches.
    sm_trapped_sandvich_notify_classchange {1.0} [0.0/1.0] = Notify players that change to Heavy about how to throw trapped sandviches?
    sm_trapped_sandvich_notify_death {1.0} [0.0/1.0] = Notify players when they ate a trapped sandvich which caused them to die?

    -= Releases =-
    Code:
    Version 1.0.3c
    - Timers with entities now use the entity references instead of indexes to prevent affecting the wrong entities.
    Version 1.0.3b
    - Timers now use UserIds to prevent affecting the wrong clients.
    Version 1.0.3
    - Fixed issue with sandvich healing instead of damaging enemies if sm_trapped_sandvich_damage was set to 0.
    - Replaced StrContain with strncmp.
    Version 1.0.2
    - Fixed errors with invalid entities.
    - Replaced using the amount healed by packs as damage, now fully uses sm_trapped_sandvich_damage for damage.
    Version 1.0.1
    - Now compiles with SM 1.11.
    - Optimized ConVar-grabbing code with Silvers' AddChangeHooks method.
    - Optimized chars with static to prevent null string bottlenecks.
    Version 1.0.0
    - Initial release.
    -= How to Install (IMPORTANT) =-

    - Move the .phrases.txt file to your translations folder inside the Sourcemod directory.
    - Move the .smx file to your plugins folder inside the Sourcemod directory.
    If you get errors about missing phrases, make sure to get the latest version of the trapped_sandvich.phrases.txt file.
    Attached Files
    File Type: sp Get Plugin or Get Source ([TF2] Trapped Sandvich.sp - 152 views - 17.9 KB)
    File Type: txt trapped_sandvich.phrases.txt (313 Bytes, 127 views)
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4

    Last edited by Shadowysn; 02-01-2022 at 02:55. Reason: Updated to Version 1.0.3c
    Shadowysn is offline
    Shadowysn
    Senior Member
    Join Date: Sep 2015
    Location: Location:
    Old 09-28-2020 , 06:00   Re: [TF2] Trapped Sandviches
    Reply With Quote #2

    Are TF2 plugins like these seriously this dead?
    There has been no response at all. :V
    Shadowysn is offline
    305like
    Junior Member
    Join Date: Aug 2023
    Location: korean
    Old 08-07-2023 , 03:16   Re: [TF2] Trapped Sandviches
    Reply With Quote #3

    It doesn't to work.
    Please check again.
    Thanks
    305like 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 23:37.


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