Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
I'd like to be able to also use your addon to spawn entities aswell.
@[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
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.
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)