Custom Spawner For Mob Redo, Help Appreciated :)

User avatar
TheReaperKing
Member
 
Posts: 493
Joined: Sun Nov 22, 2015 21:36

Custom Spawner For Mob Redo, Help Appreciated :)

by TheReaperKing » Tue Jun 21, 2016 01:04

So I'm pretty new to coding and Lua so my problem is probably quite easy to fix but I have been testing it a large part of the evening and I'm not sure how to finish up #3 or if there is a better solution to what I'm trying to do.

Essentially I'd like to create a spawner where you set three values:
1) The Mob's name that should be spawned
2) How many mobs the spawner should create
3) How long since the first player creates/joins the server should the mobs spawn.

An important note is that I would like the monsters only spawn ONCE. The goal is to make it so I can create set monster waves and that they'd be reset and created every time the server is loaded. The objective will be to try to survive the map for 5 minutes. So a side project of course will be to make it so that players don't respawn but are forced back to the main menu on death.

Here is the code thus far, I've simply just tried to edit/hack apart the mobs redo spawner code. Thanks anyone for any help/insight and if you do provide any code please license it under the same license as mobs redo which is WTFPL (or DWYWPL) :) Take care!
-Mike

EDIT - Looks like I might have it!!!! Removed the code paste because it was broken.
Last edited by TheReaperKing on Wed Jun 22, 2016 02:14, edited 5 times in total.
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com

Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com

Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
TheReaperKing
Member
 
Posts: 493
Joined: Sun Nov 22, 2015 21:36

Re: Custom Spawner For Mob Redo, Help Appreciated :)

by TheReaperKing » Tue Jun 21, 2016 01:49

EDIT - Still working, looking for any good lbm examples. The main thing I'm having trouble with is making it execute the spawning every time the server starts. Hmm!

6/21/2016 8:46pm EST Edit - I updated with the latest code, though it still isn't working how I want it and that one is actually broken a bit.
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com

Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com

Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron