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

[TF2] StickyBomb Unlimitor [3.0] !


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
3900
Plugin Version:
2.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow admins to set how much a player can put sticky bomb on map.
    Old 09-13-2013 , 10:39   [TF2] StickyBomb Unlimitor [3.0] !
    Reply With Quote #1

    When there is anymore, there are more. - Paic citron

    Description :

    This is (again) a new funny small plugin, it allow you to choose how much sticky bomb you can put ! Time to crash server and PC !

    Well, make sure to don't put too much sticky, he can really crash your server or PC if you have a low configuration .

    Cvar & Commands

    Cvar :

    The Cvar are :

    sm_set_sticky_limit "20" --> Default value when player spawn, set to -1 to disable.

    sm_set_sticky_limit_admin "50" --> Default value when admin spawn, set to -1 to disable.

    NOTE: sm_set_sticky_limit_admin will only work if they have acces to "sm_stickylimit_admin". Check post 10 to see how do you can override acces.

    Commands :

    sm_stickylimit [PLAYER] [NUMBER OF STICKY]

    [PLAYER] = Name of player or group of player (@me, @red, @blue, @all, ...)

    [NUMBER OF STICKY] = Number of sticky that a player can put. Like I said before, don't abuse to avoid crash of PCs and server. Default admin flag is CHEAT

    sm_stickylimit_admin

    Allow you to check if you have acces to admin sticky limit Cvar, default admin flag is CHEAT

    Installation


    Installation :

    First, make sure you have TF2Items and TF2Attributes installed !

    1) Remove StickyBomb_Limitor.smx in your plugins folder (if he exist).
    2) Put StickyBomb_Unlimitor.smx in your plugins folder.
    3) Reload plugins folder, restart map or restart server.
    4) Respawn, then Cvar will take effect.
    5) Your are done ! Enjoy !

    --> For compilling you will need to download this folllowing includes :
    morecolors.inc, tf2items_giveweapon.inc, tf2items.inc and TF2Attributes.inc.

    Thanks to the author of those usefull library.

    Bugs :


    Any ! Yay everything is fully working !

    Request :

    Status : Done (take a look at logs)
    Quote:
    Originally Posted by FlaminSarge View Post
    This could probably use TF2Attributes or TF2Items instead of GiveWeapon, and applying the max stickybombs attribute to the client's weapon instead of giving them a new weapon.
    Logs :

    1.0 : First release, fell free to ask if you have any crazy idea (not crazy idea are accepted too ).
    2.0 : Added the posibility to set how much a player spawn with max sticky limit using a Cvar. (Setting with command still give a new weapons.)
    3.0 : Added a admin Cvar + command to set custom value for admin and player.
    4.0 : Improved code and fixed a bug when trying to modify limit via command.
    4.1 : Fixed a bug with Cvar.
    Attached Files
    File Type: smx StickyBomb_Unlimitor.smx (11.8 KB, 1419 views)
    File Type: sp Get Plugin or Get Source (StickyBomb_Unlimitor.sp - 861 views - 4.2 KB)
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 04-21-2014 at 03:29. Reason: Updated to 4.0
    Arkarr is offline
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 09-14-2013 , 14:32   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #2

    Neat.
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s
    captaindeterprimary is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 09-14-2013 , 15:54   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #3

    Really shouldnt be using isvalidclient.
    The first time, you really could let thhe console do the command, so you can do something to allow 0..
    If client > 0 && isclientingame(client)

    For the other instance, you should probably use proccesstrgettring passing command filters and then in the client loop for retrieved clents do as you need.

    Also, you do not need giveweapon at all for this, just use tf2items natives.
    If you wanted to make it keep their old weapon, store their state globally and use ongivenameditem and regenerate them on give or something to that effect.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Oshizu
    Veteran Member
    Join Date: Nov 2012
    Location: Warsaw
    Old 09-14-2013 , 19:55   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #4

    People might be happy with including cvar that allows them set Default Stickybombs limit for everyone.
    __________________
    ...
    Oshizu is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 09-14-2013 , 23:09   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #5

    This could probably use TF2Attributes or TF2Items instead of GiveWeapon, and applying the max stickybombs attribute to the client's weapon instead of giving them a new weapon.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 09-15-2013 , 02:23   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #6

    Quote:
    Originally Posted by FlaminSarge View Post
    This could probably use TF2Attributes or TF2Items instead of GiveWeapon, and applying the max stickybombs attribute to the client's weapon instead of giving them a new weapon.
    +100
    ReFlexPoison is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 09-15-2013 , 06:31   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #7

    Okay, thanks for feedback and reply. I will update it as soon as possible .
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 09-18-2013 , 12:48   Re: [TF2] StickyBomb Unlimitor !
    Reply With Quote #8

    Quote:
    Originally Posted by FlaminSarge View Post
    This could probably use TF2Attributes or TF2Items instead of GiveWeapon, and applying the max stickybombs attribute to the client's weapon instead of giving them a new weapon.
    But that would require a plugin/extension that uses gamedata and that's bad!!!

    (Yay for inside jokes)
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    matchaboy
    Senior Member
    Join Date: Jun 2013
    Location: Bananaland
    Old 10-18-2013 , 02:23   Re: [TF2] StickyBomb Unlimitor [2.0] !
    Reply With Quote #9

    Can you make an override command? So I dont have to always type it in for my donators
    __________________
    Learning how to make plugins.
    matchaboy is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 10-18-2013 , 03:08   Re: [TF2] StickyBomb Unlimitor [2.0] !
    Reply With Quote #10

    Quote:
    Originally Posted by matchaboy View Post
    Can you make an override command? So I dont have to always type it in for my donators
    You should use "admin_overrides.cfg" in "addons\sourcemod\configs" folder. Then open it with your favorit text editor and add this line :
    PHP Code:
    "sm_stickylimit"    "[FLAG YOU WANT]" 
    Exemple :

    Spoiler
    __________________
    Want to check my plugins ?
    Arkarr 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 15:10.


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