Aro2220 Posted March 10, 2014 Share Posted March 10, 2014 Is there currently a way to spawn a zombie with a mod? Link to comment Share on other sites More sharing options...
speckle77 Posted March 10, 2014 Share Posted March 10, 2014 You can Spawn a horde if you are admin of a server...not sure if there is a mod for spawning them. Link to comment Share on other sites More sharing options...
harakka Posted March 10, 2014 Share Posted March 10, 2014 Check out Necroforge, IIRC it does this. Link to comment Share on other sites More sharing options...
RoboMat Posted March 10, 2014 Share Posted March 10, 2014 It was possible a few versions ago and unless they have changed their way of doing things it should still be possible. Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 10, 2014 Share Posted March 10, 2014 Shot answer.... Yes getVirtualZombieManager():createRealZombieNow(GridX, GridY, GridZ)While I haven't actually implemented spawning zombies from NecroForge YET, I use it to spawn 360 Zombies in a circle around the player if "the button" is pressed If you want to experiment with it try:X = getPlayer():getX();Y = getPlayer():getY();Z = getPlayer():getZ();ZeD = getVirtualZombieManager():createRealZombieNow(X + 2, Y, Z)Though that will have an error if that square is occupied EDIT:Sorry about my late reply but I've had some filesystem corruption on my operating drive & had to clear ALL of IntelliJ's data & re-install it before I could double check the syntax I used Link to comment Share on other sites More sharing options...
ApolloDiaspora Posted March 10, 2014 Share Posted March 10, 2014 Run down the main street yelling, then discharge a firearm. You'll know when the test starts. Link to comment Share on other sites More sharing options...
speckle77 Posted March 10, 2014 Share Posted March 10, 2014 Shot answer.... Yes getVirtualZombieManager():createRealZombieNow(GridX, GridY, GridZ)While I haven't actually implemented spawning zombies from NecroForge YET, I use it to spawn 360 Zombies in a circle around the player if "the button" is pressed If you want to experiment with it try:X = getPlayer():getX();Y = getPlayer():getY();Z = getPlayer():getZ();ZeD = getVirtualZombieManager():createRealZombieNow(X + 2, Y, Z)Though that will have an error if that square is occupiedYou just answered a question I had on another post regarding the co-ordinates. THANK YOU!!! Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 10, 2014 Share Posted March 10, 2014 You just answered a question I had on another post regarding the co-ordinates. THANK YOU!!! As long as the co-ordinates are in the currently loaded cell, it will work fine.... Otherwise you will need to create a virtual zombie ToastedFishSandwich 1 Link to comment Share on other sites More sharing options...
speckle77 Posted March 10, 2014 Share Posted March 10, 2014 You just answered a question I had on another post regarding the co-ordinates. THANK YOU!!! As long as the co-ordinates are in the currently loaded cell, it will work fine.... Otherwise you will need to create a virtual zombie I just needed to know how to get co-ordinates for changing the spawn point on our server. Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 10, 2014 Share Posted March 10, 2014 I just needed to know how to get co-ordinates for changing the spawn point on our server. checkout RoboMats Co-ordinate Viewershould give you the info you need speckle77 1 Link to comment Share on other sites More sharing options...
speckle77 Posted March 10, 2014 Share Posted March 10, 2014 I just needed to know how to get co-ordinates for changing the spawn point on our server. checkout RoboMats Co-ordinate Viewershould give you the info you need HA! Gorgeous. Thanks a bunch! Link to comment Share on other sites More sharing options...
ToastedFishSandwich Posted March 25, 2014 Share Posted March 25, 2014 You just answered a question I had on another post regarding the co-ordinates. THANK YOU!!! As long as the co-ordinates are in the currently loaded cell, it will work fine.... Otherwise you will need to create a virtual zombie And how would one create a virtual zombie? Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 26, 2014 Share Posted March 26, 2014 And how would one create a virtual zombie? I really have no idea.... Its not in VirtualZombieManager anyways Link to comment Share on other sites More sharing options...
EnigmaGrey Posted March 26, 2014 Share Posted March 26, 2014 addZombiesToMap, createHordeFromTo, I suppose. Ignoring the various RealZombie ones. Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 26, 2014 Share Posted March 26, 2014 aye... it appears your right from VirtualZombieManager.class public void createHordeFromTo(float x, float y, float x2, float y2) { VirtualZombie z = new VirtualZombie(); z.targx = (int)x2; z.targy = (int)y2; z.x = x; z.y = y; z.doneMergeAttempt = true; z.Count = (200 + Rand.Next(80)); this.virtualZombies.add(z); } public void createHordeFromTo(float x, float y, float x2, float y2, int count) { VirtualZombie z = new VirtualZombie(); z.targx = (int)x2; z.targy = (int)y2; z.x = x; z.y = y; z.doneMergeAttempt = true; z.Count = count; this.virtualZombies.add(z); }However addZombiesToMap() adds them randomly to the chunk I would suggestfunction duplicateFunction(zombie) X = zombie:getX(); Y = zombie:getY(); Z = zombie:getZ(); getVirtualZombieManager():createHordeFromTo(X, Y, X, Y, 2);enduntested Note, I only used Zed = in my example because, when I was using createRealZombieNow() in NecroForge, I wanted to set them as not forceFakeDead & make them talk in a different function ToastedFishSandwich 1 Link to comment Share on other sites More sharing options...
ToastedFishSandwich Posted March 26, 2014 Share Posted March 26, 2014 What's not forceFakeDead? I'm guessing it makes them lie down until they notice the player, right? That sounds really awesome. Right, I looked at the Javadocs and found two variables. fake dead and force fake dead. What's the difference? It makes them into crawlers. Link to comment Share on other sites More sharing options...
ExcentriCreation Posted March 26, 2014 Share Posted March 26, 2014 from time to time createRealZombieNow would spawn a crawler but if you set force fake dead to false then he'll get up n party ToastedFishSandwich 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now