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

[L4D] Infected Loot Drops (1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 02-06-2010 , 19:33   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #41

I understand. The current SP file is about 320kb as opposed to the 78kb that it was originally.

In regards to additions, it's no longer simply an infected loot plugin. At some point I may separate it into different plugins.
Using Cases made it easier to decrease the code size, but not by much. Feels more like basic, doesn't it?

Until I get a stable release available for here, I need as many people as possible to go to 174.142.98.777015 and test it. Post your comments here please. If there are any things you'd like to see in the plugin just post them.

I've also been rewriting that item buy system, as it seems to be abandoned as well, updated for l4d2. Both are integrated currently, and the code has been substantially cleaned up.
Skyy is offline
pep4ushka
Junior Member
Join Date: Dec 2009
Old 02-21-2010 , 03:00   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #42

can has i cheeze^U code?
pep4ushka is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 02-22-2010 , 03:57   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #43

Good news. I've found a way to keep the code down and easily use an extension to load the data. This way you can easily customize how you want the plugin to behave regarding classes what to spawn. So far the code is about 140 lines of code at 4kb in size. Some other glue code has to go into it, but I don't see it growing in size. Here is an example of the config file:

Code:
// Defines how many items of any given type can spawn through the whole map.
max_spawns:
{
	// If an item is over it's limit, we can reroll for a new item up to this many times
	retry_count = 2;

	// Define each item and how many times it can appear in the map
	// If the value is 0 this will prevent it from being rolled,
	// this is a quick way for you to remove an item, but not edit every individual class
	smg = 5;
	pumpshotgun = 1;
};

hunter:
{
	// How many items do we roll for individually
	item_count = 2;

	// How many sides to each dice. This is also the count of dice. [10,10,10] would give three 10 sided dice.
	dice = [10,7];
	
	// Define each item that the hunter can get
	items = (
	{	item	=	"smg";
		min		=	0;
		max		=	4;
	},
	{	item	=	"pumpshotgun";
		min		=	5;
		max		=	10;
	}
	);
};
I'll have this out soon.

Last edited by Thraka; 02-22-2010 at 11:42.
Thraka is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 02-22-2010 , 20:29   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #44

I do have a test version if anyone wants to play with it. Right now these features are supported:

* Any roll can have any number of dice with any number of sides assigned to it.
* Sets group any number of "thing" spawns based by class.
* Sets can have "things" that are either rolled for or always spawn.
* Things can items or infected spawn
* Global roll. Anytime any infected (including common) OR survivor player dies, The items in this list are rolled for. You can use this to sort of make very rare items appear, individually of which specific infected died.
* Infected class specific death
* Config file name is CVAR set and can be used with the gamemod config loader plugin to change which settings config this plugin uses based on gamemode.
* Spawn laser sight and ammo pile if desired.
* Spawn any normal weapon allowed by level.

Soon to support
* Max spawns for any "thing". So if you hook a horde to be called when a hunter dies, but with a max of twice, it will never happen more than twice.
* Support Witch settings
* Spawn uncommon infected
* Notifications
* Further make notifications configurable.
* Special sets like spawn ANY melee, tier1, tier2, shotgun etc... weapon
* Spawn special weapons normally used by other levels or other region's version of the game.
Thraka is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 02-24-2010 , 00:48   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #45

Latest update:

Work is going GREAT on version 2.0! Just about everything is finished. Witch and common infected deaths are supported now!

It also supports the dynamic director weapon spawn. So you can tell it spawn any shotgun or any pistol, instead of specifying a specific weapon.

It should support melee weapons too.

Things spawned from the infected death are also given a random velocity (within reason) so it sort of shoots out of them. I assigned a witch to spawn 10 any tier 2 weapons and 10 kits on her death. It was like a fountain of goodies when she died.

I'm thinking about supporting "Garbage" items too. Just like in any rpg, along with the good stuff, comes crap. So it MAY spawn that awesome weapon you're waiting for, or a food box, or paper. Whatever the entities are that are garbage.

One other fun thing was I spawned a mob of zombies, configured them to drop kits, and threw a pipe bomb.. Fun stuff.

Because I've been playing with the new spawn system to support common and witch, I've made the code a bit messy. I'm going to clean it up and work on the global limits system. Once that is done, I'm going to release. Should be sometime next week.
Thraka is offline
pep4ushka
Junior Member
Join Date: Dec 2009
Old 03-24-2010 , 10:13   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #46

did you die?
pep4ushka is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 03-26-2010 , 19:28   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #47

Looks like I updated the first post for this plugin to point to the l4d2 version. Sorry for not posting it at the end of the thread. It's been out for a while now, it's here: http://forums.alliedmods.net/showthread.php?t=119771

It's real fun and flexible
Thraka is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 04-26-2014 , 13:06   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #48

Wow last post 27th March 2010 over 4 years ago

Having just installed this plugin a few days ago, I have noticed my log files increase exponentially rising from a couple of kilobytes to several hundred kilobytes and in some cases megabytes.

Is there anyway to stop this plugin spamming the log files.
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK
Munch is offline
StarWeaver
Junior Member
Join Date: Apr 2014
Old 04-26-2014 , 18:19   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #49

I can't find anything about the mod in my sourcemod logs? BECAUSE THIS IS THE THREAD FOR THE VERSION I'M NOT USING FOR THE GAME I DON'T RUN Sorry about that
DERP
Attached Files
File Type: txt l4d2_infected_loot_drops_loot_settings.conf.txt (3.4 KB, 248 views)

Last edited by StarWeaver; 04-29-2014 at 04:14. Reason: DERP
StarWeaver is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 04-26-2014 , 19:51   Re: [L4D] Infected Loot Drops (1.3)
Reply With Quote #50

Here's an example of the logs

Seems every time a special is killed I get the following

L20140427.log:
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Tank killed: Rolling for 4 items.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Rolling item 1, die has 20 sides, 1 dice will be rolled.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Die 1, Result: 14, Total: 14
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Spawned Panic Event.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Rolling item 2, die has 20 sides, 1 dice will be rolled.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Die 1, Result: 19, Total: 19
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Spawned hunting_rifle.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Rolling item 3, die has 20 sides, 1 dice will be rolled.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Die 1, Result: 7, Total: 7
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Spawned pain_pills.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Rolling item 4, die has 20 sides, 1 dice will be rolled.
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Die 1, Result: 6, Total: 6
L 04/27/2014 - 00:26:59: [l4d_infected_loot_drops.smx] [DICE] Spawned pain_pills.

As you can often kill sometimes in excess of 100 specials during a game then I will get 100's of these lines in the sm logs. During the course of a day it often runs to megabytes of logs.

The description for this plugin states the following and nowhere does it say it can be disabled
sm_loot_sim_infected [infected class name] - Logs to the console the dice roll of an infected killed. This is a simulator and doesn't actually happen. But it displays what would of happened. This lets you test out your drops to see how often things drop for the tank, hunter, boomer, or smoker. Type in the name of the class as the parameter.


Incidentally your config relates to the L4D2 version of this plugin
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK

Last edited by Munch; 04-26-2014 at 19:53.
Munch 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 12:34.


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