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

[TF2] Spawn Sandvich(Sandwich)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
2057
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Spawn a sandvich(sandwich) at the crosshair
    Old 11-06-2010 , 18:23   [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #1

    [TF2] Spawn Sandvich

    Description: Spawn a sandvich at the crosshair

    CVARs(Default Values Shown):
    sm_spawnsandvich_version "1.0.1"

    sm_spawnsandvich_size "1" - The healthkit size of the sandvich
    0 = small healthkit(25% heal)
    1 = medium healthkit(50% heal) - used as default since the heavy's thrown sandwich is the medium version
    2 = full healthkit(100% heal)

    Commands (these do the same thing)
    sm_sandwich -Requires Slay Flag
    sm_sandvich -Requires Slay Flag


    Changelog:
    Code:
     
    Version 1.0.0 - November 6, 2010 
    * Initial release.
    Version 1.0.1 - September 24, 2011 
    * Changed version cvar name
    * Removed custom game checking function to use AskPluginLoad2
    * Minor changes to sandvich spawning code
    Attached Files
    File Type: sp Get Plugin or Get Source (TF2 Spawnsandvich.sp - 2469 views - 2.8 KB)

    Last edited by Tylerst; 09-24-2011 at 18:50. Reason: Update
    Tylerst is offline
    Geit
    Senior Member
    Join Date: Oct 2009
    Location: Home
    Old 11-06-2010 , 20:34   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #2

    I love the Variable names in your spawn command - Even if they aren't very descriptive
    Geit is offline
    MrSaturn
    SourceMod Donor
    Join Date: Jan 2009
    Old 11-07-2010 , 01:09   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #3

    MANY THANKS
    __________________
    MrSaturn is offline
    petomatick
    Member
    Join Date: Sep 2010
    Old 11-07-2010 , 14:40   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #4

    LOL
    Code:
       	 	TR_GetEndPosition(bread, olive);
    		GetVectorDistance(bologna, bread, false);
    		tomato = -35.0;
       	 	GetAngleVectors(cheese, lettuce, NULL_VECTOR, NULL_VECTOR);
    		delicious[0] = bread[0] + (lettuce[0]*tomato);
    		delicious[1] = bread[1] + (lettuce[1]*tomato);
    		delicious[2] = bread[2] + (lettuce[2]*tomato);
    __________________
    Your destiny lies within the true power of pancakes.
    petomatick is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 09-23-2011 , 19:33   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #5

    Your public cvar is already taken. Please rename version cvar.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 09-24-2011 , 18:49   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #6

    Sorry about that, plugin updated, along with a few other things.
    Tylerst is offline
    woldu
    Junior Member
    Join Date: Jun 2010
    Old 12-30-2011 , 19:52   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #7

    Small bug - Sandvichs will respawn at map's origin.
    woldu is offline
    daolik
    Junior Member
    Join Date: Oct 2012
    Old 10-29-2012 , 04:24   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #8

    can you put this into the admin menu?
    daolik is offline
    salsav91
    Senior Member
    Join Date: Aug 2012
    Location: Where Lollichops sleep
    Old 10-29-2012 , 19:42   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #9

    I am not sure if this is happening because of forced holidays... but my sandvich appears as those little pumpkin healths.
    salsav91 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-22-2013 , 10:05   Re: [TF2] Spawn Sandvich(Sandwich)
    Reply With Quote #10

    Since someone commented in another thread that it doesn't use the sandvich model any more, I made a quick fix for that (and ONLY that). I haven't tested it yet.
    Attached Files
    File Type: sp Get Plugin or Get Source (TF2 Spawnsandvich.sp - 1367 views - 2.8 KB)
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 08-22-2013 at 10:05.
    Powerlord 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 05:06.


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