AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Explosive Oildrum Spawner [v1.2] (https://forums.alliedmods.net/showthread.php?t=194301)

ktm 08-27-2012 02:37

[Any] Explosive Oildrum Spawner [v1.2]
 
2 Attachment(s)
[ANY] Explosive Oildrum Spawner!
by KTM

Description:

This plugin uses a prop_physics_override to spawn an explosive oildrum from the game Half-Life 2 wherever you are looking!

Commands/Cvars:
  • sm_spawndrum: Spawns an explosive oildrum at your crosshair. Admin flag slay needed to use this command.
  • explosive_oildrum_version: version number. Currently 1.2.
Games this plugin works with:

This plugin should only work with source 2009 games such as CSS, TF2, HLDM, and any other games that contain HL2's Default resources. I wasn't sure what game category to put it under, so I set it to any game.

Changelog:
Quote:

  • 8/26/2012 - release of plugin. version 1.0
  • 8/28/2012 - release of version 1.2. Fixed the problem where drums were not staying upright when spawned. Cleaned up the code. Changed halo color to red as I felt it fit better. Removed server/chat spam when spawning multiple drums in a quick succession.

Special thanks to:
  • HyperKiLLeR: for a lot of the reference material I used when making this.
  • The Alliedmodder's community: For being an awesome place to learn!

Thank you guys for checking this plugin out. This is the first plugin I have released to the public. Any suggestions/ideas you guys have would be wonderful to hear. Hopefully you guys will enjoy it!

-KTM

Total downloads before version 1.2: 36

SlimeCounty 08-27-2012 05:23

Re: [Any] Explosive Oildrum Spawner
 
Very cool plugin, tested it out in TF2, worked wonderfully thanks!
Only issue we ran into is that the barrels rarely spawn upright, and if a player touches a barrel that's rolling they get stuck until the barrel model passes their player model. Still a very cool plugin to play around with, makes me want to mess around with the source and have barrels spawn in the water on 2fort every few minutes or so...

ktm 08-27-2012 13:34

Re: [Any] Explosive Oildrum Spawner
 
Thanks man.

I will though try to screw around with the plugin and see if I can make the barrels more solid. If you could get this plugin to spawn barrels inside of the water of 2fort every few minutes or so, that would be amazing.

Horsedick 08-27-2012 14:04

Re: [Any] Explosive Oildrum Spawner
 
Interesting.. add database support like the auto pumpkins spawner - could just place them around the map to spawn at timed instances for even more fun.

NameUser 08-28-2012 19:27

Re: [Any] Explosive Oildrum Spawner
 
Oh god, imagine all the chaos this will cause...

ktm 08-28-2012 23:04

Re: [Any] Explosive Oildrum Spawner
 
Quote:

Originally Posted by NameUser (Post 1785542)
Oh god, imagine all the chaos this will cause...

That is the goal. :)

Anyways guys, I've gone ahead and released version 1.2. In version 1.2 I have fixed the problem where drum rarely stayed upright after being spawned. I also removed the server/chat spamming that happened whenever you spawned a massive amount of barrels at once. Besides those major changes, I made a few minor changes which cleaned up the code, and I also changed the color of the halo that spawns when you spawn a drum to red. I felt it fit better then a bright green halo. The download is in the main post!

Hopefully that will have fixed a few of the issues you guys had. Also, if someone wants to take this plugin and incorporate some of the set pumpkin spawn point plugin be my guest. Sadly I don't have the knowledge nor skills to do so yet.

NameUser 08-29-2012 10:04

Re: [Any] Explosive Oildrum Spawner [v1.2]
 
Can you add a feature which also spawns regular barrels? Or no?

Horsedick 08-29-2012 10:23

Re: [Any] Explosive Oildrum Spawner [v1.2]
 
Quote:

Originally Posted by NameUser (Post 1786085)
Can you add a feature which also spawns regular barrels? Or no?

That was my suggestion - he would have to implement it with a database setup like Darth has his pumpkins in the auto spawner - I was looking at that code to this and Darth's could be altered with these props but I'm not sure of what else needs to be changed in it.

ktm 08-29-2012 12:54

Re: [Any] Explosive Oildrum Spawner [v1.2]
 
Quote:

Originally Posted by NameUser (Post 1786085)
Can you add a feature which also spawns regular barrels? Or no?

By that do you mean drums that do not explode? I could easily add the non-explosive version of the explosive drum, or any other barrel/drum models as a command. There are on the other hand plugins already out there that let you add such props easily to their set up already. I recommend you check out EntControl by LeGone if you want to spawn normalized things.

Quote:

Originally Posted by Horsedick (Post 1786107)
That was my suggestion - he would have to implement it with a database setup like Darth has his pumpkins in the auto spawner - I was looking at that code to this and Darth's could be altered with these props but I'm not sure of what else needs to be changed in it.

Sadly, I'm just not sure how I would go about that. I'm pretty sure it could be done, as all I would imagine you would have to do is change the entities in darth's plugins to prop_physics_overrides or prop_physics and then set the key values. Thing is this is my first plugin, and I'm kinda learning as I go along. Because of that I have pretty limited knowledge on how to work with sourcepawn. Hopefully as I go I'll get better and be able to add the feature you've been chatting about. Because that sure would be amazing.

CuriousG 08-31-2012 14:15

Re: [Any] Explosive Oildrum Spawner [v1.2]
 
I got tired of people blowing up my work of art when spawning barrels so I'd go in POV spec mode and start spawning barrels where they are looking. Hilarity ensues.


All times are GMT -4. The time now is 04:57.

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