Garry's Mod

Garry's Mod

Zombie/NPC Invasion+
Skyblade799 19 Jun, 2016 @ 6:42pm
[Suggestion]: Spawn pages for Items, Entity, Prop, etc + More hero options and spawn limits
I'd like to first say that I really like the original mod, and what you've done to improve upon it is fantastic; things like the damage multiplier options for instance are what I felt were completely missing from the original.

Nonetheless, I realized while playing that I'd also like it if items, entities, props and other general gmod item types could have spawn options to them, so I could for instance have a medkit or ammobox spawn somewhere while playing.

As well, though the hero page is useful in concept, It doesn't have as many options as it could. I think it would be a lot more useful if it had most if not all of the options the normal page has (such as scale and damage multipliers).

Furthermore, perhaps adding spawn limits, such as max enemy amounts for each enemy type, and spawn timers (which would put an amount of time before a really powerful enemy could spawn again) would help make such options easier to use. Maybe even the ability to determine how rare the hero enemies are?


< >
Showing 1-15 of 39 comments
Kin 20 Jun, 2016 @ 9:45am 
This guy gets it.

I'd like to be able to also use your addon to spawn entities aswell.
Peterwilli 3 Jul, 2016 @ 7:31am 
I just made a random entity spawner based on this software, I hope to release it when there are enough people who would want this :)
moomoohk  [developer] 5 Jul, 2016 @ 5:38pm 
Hey guys, I've been absolutely swamped with work these past few weeks so I haven't been able to work on this little project...

@[CZ]Skyblade799 fantastic suggestions. Just the type of feedback I've been needing. Other people have posted about the hero options being lacking so I guess it's about time I got around to that. Top of my priority list.

@Peterwill sounds cool! Would you mind elaborating? If your changes seem good to me I can add you as a contributor and merge the two projects :)
ballsaSTEEL2001 5 Jul, 2016 @ 5:40pm 
Hey, the Chase Players mechanic's a little busted, because no matter what they will follow the players last known location, even if I've moved and now I'm beating the ♥♥♥♥ out of them. They walk to that location, even if I'm right next to them. How about instead they walk to that location UNTIL the player they're chasing or an NPC gets a certain distance close to them, then they go into default NPC attack stuff. So like the zombie is following the trail of my Scent, it's going...going... but then I move and get close to it. NOW IT ATTACKS RUB RUB RUBUR BURB. Boom, even better this distance can be modified and costimized to the admins desire. Huh? Huh? You like it? Ha ha, it's just a thought, cause I like the chase players function, it can be pretty scary some times. Oh, and when ever you step out of it's Attack Mode range, it goes back into Chase Mode.
Last edited by ballsaSTEEL2001; 5 Jul, 2016 @ 5:44pm
Skyblade799 7 Jul, 2016 @ 6:45pm 
Originally posted by moomoohk:
Hey guys, I've been absolutely swamped with work these past few weeks so I haven't been able to work on this little project...

@[CZ]Skyblade799 fantastic suggestions. Just the type of feedback I've been needing. Other people have posted about the hero options being lacking so I guess it's about time I got around to that. Top of my priority list.

@Peterwill sounds cool! Would you mind elaborating? If your changes seem good to me I can add you as a contributor and merge the two projects :)

Glad to hear it you think so! I'm also glad it's still being worked on; I'm certainly going to be watching out for any updates :squirtyay:!
Dragonold103 21 Jul, 2016 @ 12:50pm 
I only want one suggestion and that is a way to allow me to add weapons, npcs that I added from the workshop, like maybe have a soldier holding an ak-47 and not a hf2 soldier holding an hf2 smg.

allowing me to do this will be very greatful.
Last edited by Dragonold103; 21 Jul, 2016 @ 12:50pm
Skyblade799 21 Jul, 2016 @ 2:39pm 
Originally posted by Dragonold103:
I only want one suggestion and that is a way to allow me to add weapons, npcs that I added from the workshop, like maybe have a soldier holding an ak-47 and not a hf2 soldier holding an hf2 smg.

allowing me to do this will be very greatful.

I think you can already, actually. You have to find the name of the weapon the npc uses, and try to use a give command to give it to yourself. If it gives the weapon to you (albeit It will probably have a lot of console errors on a player), you can then enter that weapon's console spawn name in the blank space below npc weapon in the spawn menu. (right click and copy to clipboard doesn't work for npc only weapons too well, but the console always does).

The same works with npcs from the workshop; right click the npc icon in the npc spawn menu and click copy to clipboard, or look in the console to see the full name of the npc spawned, and then paste that in the empty white textbox below chosen npc in the spawn menu. It will use that instead of what is in the drop down as well. Include all underscores and such.

I do know what you are asking though, as it doesn't show workshop weapons and npcs as it does in the context (c) menu's drop down as of right now, so you have to do the console and clipboard manual selection for the spawner menu. I agree it would be nice for it to use the same list instead of having to manually enter each.
Last edited by Skyblade799; 21 Jul, 2016 @ 2:41pm
Dragonold103 23 Jul, 2016 @ 10:23am 
Originally posted by CZSkyblade799:
Originally posted by Dragonold103:
I only want one suggestion and that is a way to allow me to add weapons, npcs that I added from the workshop, like maybe have a soldier holding an ak-47 and not a hf2 soldier holding an hf2 smg.

allowing me to do this will be very greatful.

I think you can already, actually. You have to find the name of the weapon the npc uses, and try to use a give command to give it to yourself. If it gives the weapon to you (albeit It will probably have a lot of console errors on a player), you can then enter that weapon's console spawn name in the blank space below npc weapon in the spawn menu. (right click and copy to clipboard doesn't work for npc only weapons too well, but the console always does).

The same works with npcs from the workshop; right click the npc icon in the npc spawn menu and click copy to clipboard, or look in the console to see the full name of the npc spawned, and then paste that in the empty white textbox below chosen npc in the spawn menu. It will use that instead of what is in the drop down as well. Include all underscores and such.

I do know what you are asking though, as it doesn't show workshop weapons and npcs as it does in the context (c) menu's drop down as of right now, so you have to do the console and clipboard manual selection for the spawner menu. I agree it would be nice for it to use the same list instead of having to manually enter each.

thank you, it was very helpful and the model had to be found in the spawnlist not the npc.
xSurvivor7x 20 Aug, 2016 @ 3:17am 
EVERYONE. YOU *CAN* SPAWN ENTITIES AND WEAPONS. You have to, for whatever reason, paste them from clipboard into all of the categories... not sure why, but it worked perfectly for me without any errors.
Skyblade799 20 Aug, 2016 @ 3:53am 
Originally posted by xSurvivor7x:
EVERYONE. YOU *CAN* SPAWN ENTITIES AND WEAPONS. You have to, for whatever reason, paste them from clipboard into all of the categories... not sure why, but it worked perfectly for me without any errors.

Huh.. I'll have to try that out later.
xSurvivor7x 20 Aug, 2016 @ 2:57pm 
Originally posted by CZSkyblade799:
Originally posted by xSurvivor7x:
EVERYONE. YOU *CAN* SPAWN ENTITIES AND WEAPONS. You have to, for whatever reason, paste them from clipboard into all of the categories... not sure why, but it worked perfectly for me without any errors.

Huh.. I'll have to try that out later.

Apparently the new version of this mod removed that loophole. Unfortunate really. We had a lot of fun with it. It should still work on the older version though.

*ALSO PLEASE NOTE* Things like "npc_vj_nmrih_randz" spawn in random zombies. For some reason, these zombies are not taken into account with the NPC limit. Not a big deal, as the more specific ones are, like "npc_vj_nmrih_runmalez" <- THESE guys are taken into account. Not sure why the randoms aren't. I can only assume it is because it's spawning different class names or something like that?

As for the entities and weapons spawning alone. This at one point worked on the original ZINV pack, as stated above. I copied the LUA error that appears when I tried to spawn an AR-15 case.

( lua/autorun/server/init.lua:445: attempt to index global 'npc_info' (a nil value)
NPC list is table: 0x5fcfd648
Class name is cw_ws_ar15_case )

From what I gather, adding an entity or weapon spawn interface involves a few extra lines of code and adding or changing a variable or two. But hey, I'm only a novice so I could be tooting my own horn for no reason at all.
Peterwilli 5 Sep, 2016 @ 2:07pm 
Originally posted by xSurvivor7x:
Originally posted by CZSkyblade799:

Huh.. I'll have to try that out later.

Apparently the new version of this mod removed that loophole. Unfortunate really. We had a lot of fun with it. It should still work on the older version though.

*ALSO PLEASE NOTE* Things like "npc_vj_nmrih_randz" spawn in random zombies. For some reason, these zombies are not taken into account with the NPC limit. Not a big deal, as the more specific ones are, like "npc_vj_nmrih_runmalez" <- THESE guys are taken into account. Not sure why the randoms aren't. I can only assume it is because it's spawning different class names or something like that?

As for the entities and weapons spawning alone. This at one point worked on the original ZINV pack, as stated above. I copied the LUA error that appears when I tried to spawn an AR-15 case.

( lua/autorun/server/init.lua:445: attempt to index global 'npc_info' (a nil value)
NPC list is table: 0x5fcfd648
Class name is cw_ws_ar15_case )

From what I gather, adding an entity or weapon spawn interface involves a few extra lines of code and adding or changing a variable or two. But hey, I'm only a novice so I could be tooting my own horn for no reason at all.

Sorry for my late reply everyone!

@xSurvivor7x you are right. Unfortunately I havent got much time to improve my version. Is there a place I can post the code so others can work on it too? Like a usual place for Garry's mod people to get unfinished (but working) addons)
Hero Seeker 2 Oct, 2016 @ 8:21pm 
Great addon! I love the challange of surviving with this turned on :D. I have one suggestion though: Could you put like a Default Weapon selection for the weapons. Like have the VJ Military npcs have their own weapons and the like. It'd be great to have that. :)
VPG001 18 Dec, 2016 @ 12:52am 
@Hero Seeker How did you get the profiles to open?
Hero Seeker 24 Dec, 2016 @ 4:02am 
@VPG001 Like what do you mean? Is it giving you an error every time you try to open it?
< >
Showing 1-15 of 39 comments
Per page: 1530 50