Raised This Month: $ Target: $400
 0% 

L4D - Plugin with "z_spawn mob" getting executed periodically


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-30-2009 , 07:01   L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #1

Hi! Browsing through the forum here I found some plugins which make it possible to spawn mobs but none of them does it periodically what Iīve seen so far. What I would like to have is simply a plugin that spawns a mob periodically. Nothing else. Simple, classic, evil.

Request --> Playing in versus gamemode, every xx seconds (this xx time should be adjustable with a new cvar) the plugin executes "z_spawn mob". So letīs say every 20 seconds a mob gets spawned, regardless which map we are currently playing in. The first mob should appear yy seconds (new cvar) after round_start event. From now on every xx seconds a mob shall appear. On round_end event the mob spawn must be stopped. I had some bad experience with the All4Dead Director when spawning infected after round_end. It crashed the engine. So I would like to circumvent this issue. I donīt have the skills to code this but I hope itīs only some lines of code and someone wants to help me.

Thank you in advance!
Skorpion1976

Last edited by Skorpion1976; 09-30-2009 at 12:00.
Skorpion1976 is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-30-2009 , 12:31   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #2

I'd be glad to do this, but I can't for 7.5 more hours, so someone might beat me to the punch.
crazydog is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-30-2009 , 12:49   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #3

Erm... I wasnīt aware that this is gonna turn into some sort of contest . When itīs done itīs done.
Skorpion1976 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 09-30-2009 , 12:51   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #4

Please use the search before asking things

What you want is called an endless panic event and included in All4Dead
AtomicStryker is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-30-2009 , 12:51   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #5

He does not want that. That spawns mobs continuously. He wants mobs every 20 seconds, or every 30 seconds, or every 90 seconds, depending on preference
crazydog is offline
mi123645
Veteran Member
Join Date: Feb 2009
Old 09-30-2009 , 13:00   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #6

Why not set the intervals between mobs through cvars?
mi123645 is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-30-2009 , 13:01   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #7

Atomic with all due respect but if you had read my plugin request you shouldīve noticed that my search did not end successfully meaning none of the existing plugins meets my demands. I neither want a panic event NOR use all4dead. What I want is stated clearly and written in my first post.
Skorpion1976 is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 09-30-2009 , 13:06   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #8

Quote:
Originally Posted by mi123645 View Post
Why not set the intervals between mobs through cvars?
I am fully satisfied with any simple solution that fulfils my zombie wish
Please can you answer me this: The values of what particular cvar(s) should I alter? Thanks!

EDIT: Do you mean these 2 cvars?
z_mega_mob_spawn_max_interval
z_mega_mob_spawn_min_interval

If yes -> is the corresponding cvar for adjusting the amount of CI "z_mega_mob_size" OR "z_common_limit" ?

Last edited by Skorpion1976; 09-30-2009 at 13:21.
Skorpion1976 is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-30-2009 , 16:08   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #9

Try this out.

sm_timedmobs_interval = Seconds between mob spawns (default 30)

I tested it, it works fine.

It's not compatible with Admin Cheats. Let me know if you need it to be.
Attached Files
File Type: sp Get Plugin or Get Source (timedmobs.sp - 565 views - 1.7 KB)

Last edited by crazydog; 09-30-2009 at 20:43.
crazydog is offline
Skorpion1976
Veteran Member
Join Date: Jun 2009
Location: Austria
Old 10-01-2009 , 06:49   Re: L4D - Plugin with "z_spawn mob" getting executed periodically
Reply With Quote #10

Hi! thanks for the plugin!
I will get back to you as soon as possible, but might take some time as currently nothing is working on my srcds.
What does this mean: "It's not compatible with Admin Cheats. Let me know if you need it to be." ?
Skorpion1976 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 11:51.


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