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

[TF2] ServerGifts


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bitl
Senior Member
Join Date: Jul 2012
Plugin ID:
3935
Plugin Version:
1.2.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Spawns a gift with a random weapon in it on Domination, Revenge or command.
    Old 10-11-2013 , 19:54   [TF2] ServerGifts
    Reply With Quote #1

    Information:

    Spawns a gift with a random weapon in it on Domination, Revenge, First Blood or command. This also has a very rare chance of giving the player a rare weapon (Golden Wrench, Saxxy, Big Kill, etc.)

    Commands:

    sm_servergifts - Creates a gift.

    ConVars:

    sm_servergifts_giftsondeath [Default: 1] - Enable/Disable creating gifts on victim death.
    sm_servergifts_rareweapons [Default: 1] - Enable/Disable rare weapons.
    sm_servergifts_rarechance [Default: 200] - The chance for a rare weapon to drop.
    sm_servergifts_bots [Default: 1] - Enable/Disable spawning gifts on bots.
    sm_servergifts_botsonlymvm [Default: 1] - Enable/Disable spawning gifts on bots only in Mann vs Machine. Requires sm_servergifts_bots to be 1.

    Credits:

    DarthNinja for the Fake Gifts plugin, from which this was made out of.

    Chaosxk for some code from his Gift mod. (spawning code, particles, etc.)

    To do:
    - Add Updater support.
    - Add different abilities using TF2Attributes, as well as a ConVar to enable/disable the abilities and weapons.

    Changelog:

    1.2.1:
    - Added the sm_servergifts_bots and sm_servergifts_botsonlyinmvm ConVars.

    1.2.0:
    - Added new weapons from the "Love & War" update.
    - The plugin now accurately shows the version number.
    - Added the Gold Frying Pan as a rare item.
    - Added all "Bread Monster" items as rare items.

    1.1.2:

    -Fixed a crash that involved trains.

    1.1.1:

    - Fixed "Array index is out of bounds" error.
    - Added "sm_servergifts_rarechance", which allows the ability to change the drop chance of rare weapons.

    1.1.0:

    - Added more rares:
    - All Botkiller weapons.
    - The Horseless Headless Horsemann's Headtaker.
    - Added "sm_servergifts_rareweapons", which allows enabling or disabling of rare weapons.
    - Added translations.

    1.0.0:
    - Release

    Requirements:
    - TF2Items: Get it here.
    - TF2Items Give Weapon: Get it here.
    - TF2Attributes (Will be added in a future version.): Get it here.
    - Updater (Will be added in a future version.): Get it here.
    Attached Files
    File Type: txt servergifts.phrases.txt (173 Bytes, 684 views)
    File Type: smx ServerGifts.smx (12.3 KB, 622 views)
    File Type: sp Get Plugin or Get Source (ServerGifts.sp - 395 views - 25.0 KB)
    __________________
    My Plugins
    Modified Plugins:
    Building Spawner
    Monster
    It's Raining Men!
    Tutorials:
    Custom Gamemode

    I DON'T DO PLUGIN REQUESTS.

    Last edited by Bitl; 06-22-2014 at 00:22.
    Bitl is offline
    NameUser
    Senior Member
    Join Date: Apr 2012
    Location: Bay Area, California
    Old 10-11-2013 , 21:09   Re: [TF2] ServerGifts
    Reply With Quote #2

    I like it. Good work.
    __________________
    NameUser is offline
    Send a message via Skype™ to NameUser
    Bitl
    Senior Member
    Join Date: Jul 2012
    Old 10-12-2013 , 14:33   Re: [TF2] ServerGifts
    Reply With Quote #3

    Quote:
    Originally Posted by NameUser View Post
    I like it. Good work.
    Thanks! I hope to support this as frequently at possible

    NEW VERSION RELEASED!

    1.1.0:

    - Added more rares:
    - All Botkiller weapons.
    - The Horseless Headless Horsemann's Headtaker.
    - Added "sm_servergifts_rareweapons", which allows enabling or disabling of rare weapons.
    - Added translations.

    1.1.1:

    - Fixed "Array index is out of bounds" error.
    - Added "sm_servergifts_rarechance", which allows the ability to change the drop chance of rare weapons.
    __________________
    My Plugins
    Modified Plugins:
    Building Spawner
    Monster
    It's Raining Men!
    Tutorials:
    Custom Gamemode

    I DON'T DO PLUGIN REQUESTS.

    Last edited by Bitl; 10-12-2013 at 15:39.
    Bitl is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 10-12-2013 , 16:55   Re: [TF2] ServerGifts
    Reply With Quote #4

    Very cool idea, nice work.
    Snaggle is offline
    rodrigo286
    Veteran Member
    Join Date: Sep 2010
    Location: Brazil, São Paulo
    Old 10-12-2013 , 17:30   Re: [TF2] ServerGifts
    Reply With Quote #5

    Valve allowed this??

    Thanks.
    __________________
    My Plugins | VIEW HERE | I accept private requests, send me a PM.
    Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
    Meet the Medic | Disguise Expert | Crazy Jet

    CZSBrasil TEAM
    rodrigo286 is offline
    Bitl
    Senior Member
    Join Date: Jul 2012
    Old 10-12-2013 , 18:44   Re: [TF2] ServerGifts
    Reply With Quote #6

    Quote:
    Originally Posted by rodrigo286 View Post
    Valve allowed this??
    It does not add the item to the backpack, but just gives them the weapon until they disconnect or die.
    __________________
    My Plugins
    Modified Plugins:
    Building Spawner
    Monster
    It's Raining Men!
    Tutorials:
    Custom Gamemode

    I DON'T DO PLUGIN REQUESTS.

    Last edited by Bitl; 10-12-2013 at 18:51.
    Bitl is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 10-12-2013 , 20:37   Re: [TF2] ServerGifts
    Reply With Quote #7

    Quote:
    Originally Posted by rodrigo286 View Post
    Valve allowed this??

    Thanks.
    It's just like the Give Weapon plugin.

    https://forums.alliedmods.net/showthread.php?p=1337899
    Snaggle is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 10-13-2013 , 16:57   Re: [TF2] ServerGifts
    Reply With Quote #8

    I was testing this and appears its causing a server crash when you go to pick them up.
    Horsedick is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 10-14-2013 , 17:26   Re: [TF2] ServerGifts
    Reply With Quote #9

    Quote:
    Originally Posted by Horsedick View Post
    I was testing this and appears its causing a server crash when you go to pick them up.
    If valve didn't fixed this issue yet.
    Then the case of crash might be killing entity without restoring it's normal size.
    __________________
    ...
    Oshizu is offline
    Bitl
    Senior Member
    Join Date: Jul 2012
    Old 10-14-2013 , 23:56   Re: [TF2] ServerGifts
    Reply With Quote #10

    Quote:
    Originally Posted by Horsedick View Post
    I was testing this and appears its causing a server crash when you go to pick them up.
    Can you show me your crash log?
    __________________
    My Plugins
    Modified Plugins:
    Building Spawner
    Monster
    It's Raining Men!
    Tutorials:
    Custom Gamemode

    I DON'T DO PLUGIN REQUESTS.
    Bitl 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 13:38.


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