Raised This Month: $52 Target: $400
 13% 

[ANY] WiLdTuRkEy's Clusterbomb Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author
wildturkey
Junior Member
Join Date: Apr 2012
Location: USA
Plugin ID:
3212
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    34 
    Plugin Description:
    Gives you tweakable clusterbombs for players and/or admins
    Old 09-02-2012 , 05:40   [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #1

    WiLdTuRkEy's Clusterbomb Plugin

    This is pretty much what the title says. It allows you to toss a clusterbomb that can be customized via cvars. It can also set up as admin-only or for all players. I built this with HL2 in mind, but it should work for any mod as long as you set the model and sound cvars to something that exists in that mod.

    How it works...
    1. You fire the command.
    2. A canister is thrown in the direction/pitch you are aiming. The model is models/props_junk/PropaneCanister001a.mdl, but you can change it to anything.
    3. 2.5 seconds later (default time), the canister expels 10 (default) grenades into the air. The expulsion pattern depends on the vertvel, spreadvel, and variation cvars. By default, they just get thrown up a little and spread a little. Grenade models are models/Weapons/w_grenade.mdl, but can be whatever you want. NOTE! Some models tend to get stuck inside of each other and they all just freeze together. You just need to try some and find good ones that don't. ;)
    4. Each grenade explodes at a random time between 0.5 and 1.0 seconds after being expelled.
    Note... You can also knock someone out if you hit them with the canister itself.

    Commands
    • sm_cb | sm_cbomb | sm_clusterbomb - Toss a clusterbomb in the direction you are aiming!
    ConVars
    • sm_cbomb_enabled - Is the clusterbomb feature enabled? (0|1)
    • sm_cbomb_enabled_plr - Can non-admins use clusterbombs? (0|1)
    • sm_cbomb_wait_time_plr - How many seconds non-admins must wait between clusterbombs. (1 - 600)
    • sm_cbomb_wait_time_admin - How many seconds admins must wait between clusterbombs. (1 - 600)
    • sm_cbomb_throwspeed - How fast you throw the clusterbombs away from you. (0.0 - 2000.0)
    • sm_cbomb_detonation_delay - Clusterbomb will detonate this many seconds after throwing it. (1.0 - 5.0)
    • sm_cbomb_bomblet_count - How many bomblets does each clusterbomb contain? (2 - 30)
    • sm_cbomb_bomblet_vertvel - How fast bomblets are thrown in the air when spawned. (20.0 - 500.0)
    • sm_cbomb_bomblet_spreadvel - How fast bomblets spread out after they are spawned. (20.0 - 500.0)
    • sm_cbomb_bomblet_variation - Vertical and spread speeds will be varied between 1X and this value. (1.0 - 5.0)
    • sm_cbomb_bomblet_magnitude - Damage magnitude of each bomblet. 100 is about like a normal grenade. (0 - 500)
    • sm_cbomb_canister_model - The model that holds all of the bomblets in it.
    • sm_cbomb_bomblet_model - The model that represents the individual bomblets.
    • sm_cbomb_detonation_sound - The sound made when the clusters are spawned.
    • sm_cbomb_version - duh...
    A cfg file will automatically be created with some default values here -> gamemod/cfg/sourcemod/sm_cbomb.cfg. Note that you can also change things on-the-fly in-game (including models and sounds).

    Short video...


    Sorry about the quality. My primary hard drive is fried and this one sucks.

    This is just one small little piece out of all the custom plugins I have made. I just wanted to try releasing something to see how it went. Most of my plugins are far from 'releasable' at the current time. Many of them are all intertwined with one another, and I cannot really split them up. If this goes well, I will try to release some more MUCH BETTER ones.

    Finally, I'm not really trying to advertise or anything, but I made a very useful page (well.. I find it very useful - LOL) that might help some of you with developing plugins. Basically, it is just an automated conversion I did of an entity datamap dump from hl2dm into basic html. I would have rather done it with .NET or something, but our webserver does not do that. Anyway, hope it helps someone.. http://www.deadmeatstavern.com/datamaps.htm
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_cbomb.sp - 1458 views - 14.3 KB)
    File Type: smx sm_cbomb.smx (8.8 KB, 658 views)

    Last edited by wildturkey; 09-11-2012 at 14:54. Reason: added info and cleaned up post
    wildturkey is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 09-02-2012 , 05:47   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #2

    Awsome, i'll give it a whirl this afternoon.
    Groger is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 09-02-2012 , 13:11   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #3

    Pics?
    Mitchell is offline
    doze
    Senior Member
    Join Date: Mar 2012
    Old 09-09-2012 , 08:05   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #4

    Good job with the plugin, however i would like to suggest a few improvements.

    1.If you set a time limit for the bomb it can be bypassed by reconnecting, it would be nice if this is fixed, i am not sure how though, maybe a external mysql database will solve this ?

    2.It would be nice if a message is displayed when a bomb is available again.

    3.Would be nice if instead of time restriction there would be also a option to set for example a maximum of X number of bombs/map.
    doze is offline
    wildturkey
    Junior Member
    Join Date: Apr 2012
    Location: USA
    Old 09-09-2012 , 23:51   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #5

    Quote:
    Originally Posted by doze View Post
    Good job with the plugin, however i would like to suggest a few improvements.

    1.If you set a time limit for the bomb it can be bypassed by reconnecting, it would be nice if this is fixed, i am not sure how though, maybe a external mysql database will solve this ?

    2.It would be nice if a message is displayed when a bomb is available again.

    3.Would be nice if instead of time restriction there would be also a option to set for example a maximum of X number of bombs/map.
    1. Ah ya.. I never really gave much thought to that to be honest. It is really only for admins on our server. I can easily add that though.

    2. I had thought about that one. Should be easy enough.

    3. I guess I can do that.. I'll just add another cvar or 2 for those options...

    I may or may not just scrap this particular plugin and just create a 'weapons pack' of sorts. I already have these clusterbombs, plus I have already made spawnable/controllable laser turrets, combine mortars, rocket turrets, and lightsabers.

    I've just been trying to get the death messages to post right (player A killed player B). I can get it to work with a bot from the SourceBot plugin but not for real players oddly enough.. The clusterbombs work properly, as they are just simple explosions. My other weapons still kill you don't get me wrong. It would just be nice for players to get credit for it. Just a matter of time really.

    I have many others neat things too, like pilotable combine chopper plugin (with 3 passenger pods), extreme entity commands plugin, prop spawning plugin, user commands plugin (along the lines of sm_supercommands massive), and other stuff.. Just cleaning it all up before i release. Also, most of them use smlib, vphysics, sdkhooks, and some other extensions, and I am trying to reprogram the ones I can to use pure sourcemod first.

    If only there were 48 hours in a day...
    wildturkey is offline
    eyes of hunter
    Member
    Join Date: Dec 2011
    Old 09-11-2012 , 11:50   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #6

    I think these kind of plugins need a video or at least a screenshot in the original post so we can actually see what this one does. Anyway, it sounds terrific.
    eyes of hunter is offline
    wildturkey
    Junior Member
    Join Date: Apr 2012
    Location: USA
    Old 09-11-2012 , 12:49   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #7

    Quote:
    Originally Posted by eyes of hunter View Post
    I think these kind of plugins need a video or at least a screenshot in the original post so we can actually see what this one does. Anyway, it sounds terrific.
    The thing is that there is not really much to take pics of. I can see how 'clusterbomb' is pretty vague.

    Perhaps I can just explain a little better.
    1. You fire the command.
    2. A canister is thrown in the direction/pitch you are aiming. The model is models/props_junk/PropaneCanister001a.mdl, but you can change it to anything.
    3. 2.5 seconds later (default time), the canister expels 10 (default) grenades into the air. The expulsion pattern depends on the vertvel, spreadvel, and variation cvars. By default, they just get thrown up a little and spread a little. Grenade models are models/Weapons/w_grenade.mdl, but can be whatever you want.
    4. Each grenade explodes at a random time between 0.5 and 1.0 seconds after being expelled.
    Note... You can also knock someone out if you hit them with the canister itself. LOL

    Perhaps I can make a short video as well, but the above pretty much explains it.

    Last edited by wildturkey; 09-11-2012 at 12:52.
    wildturkey is offline
    wildturkey
    Junior Member
    Join Date: Apr 2012
    Location: USA
    Old 09-11-2012 , 14:31   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #8

    Added video to first post...
    wildturkey is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 09-11-2012 , 18:20   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #9

    This is pretty neat. reminds me of like gmod stuff lol.

    Hey, what is the effect when ever some one respawns?

    Last edited by Mitchell; 09-11-2012 at 18:20.
    Mitchell is offline
    wildturkey
    Junior Member
    Join Date: Apr 2012
    Location: USA
    Old 09-11-2012 , 21:32   Re: [ANY] WiLdTuRkEy's Clusterbomb Plugin
    Reply With Quote #10

    Quote:
    Originally Posted by Mitchell View Post
    This is pretty neat. reminds me of like gmod stuff lol.

    Hey, what is the effect when ever some one respawns?
    Oh, that's part of my checkpoint plugin. It is actually a custom particle system I made with the particle editor thing in hl2. It really sucks though, because of this BS per-map particle manifest junk.. That means you gotta make the client download a map_particles.txt file for every map and once they do that, you can never update the particles unless you rename the map and send a new manifest. I don't think all mods are like this, but HL2DM sure is.

    Wish they would fix that goofy broke $#%$ and I know they could even though they no longer really update HL2. They added the \x07 and \x08 color chat text for TF2 and it works for HL2, so why not this? I know... They could care less about HL2. haah

    And here's some random bonus footage of nyan cat attack while I'm here.. LOL

    Last edited by wildturkey; 09-11-2012 at 21:39.
    wildturkey is offline
    Reply


    Thread Tools
    Display Modes

    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 22:46.


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