I'm trying to make some raider NPCs for a Fallout RP server I'm on.
So far I have the NPC part down.
[url]http://www.youtube.com/watch?v=wHrwIHtxMaM[/url]
It's not enough though. They make combine sounds upon death and use combine animations. I'd like them to use citizen animations but still be hostile. In addition I've ripped a bunch of taunts from Fallout 3. I want to use them on the raiders so they randomly say some threatening one-liners, say some things when they're engaged with an enemy, and make proper death sounds.
Plus I want them to be able to function on a map without nodes. I know it sounds dumb. However I don't give a shit if the NPC decides to rambo it's way into combat head on. I mean, it's a raider. That's what they do.
I have no idea what I'm doing, and I can't find an understandable guide to SNPCs. I checked the Gmod wiki page on SNPCs, but it's useless on account of not telling me HOW to code for MYSELF.
[url]http://wiki.garrysmod.com/?title=Basic_Scripted_NPC[/url] <- That's the wiki page.
Now mind you I have no experience with LUA coding. Zero. So if you care to explain how to make an SNPC, make sure it's absolutely retard proof.
[b]Edit:[/b] Realized I posted this in the wrong forum a split second after posting. Would a mod be so kind as to move it? I can't figure out how to delete it. "Go Advanced" isn't working on my browser.
Basically everything in cl_init.lua and shared.lua can be copied and pasted. The init.lua is where you do your own tasks, which are pretty straight forward. It even includes an example of one task.
[QUOTE=Kamern;32476030]Basically everything in cl_init.lua and shared.lua can be copied and pasted. The init.lua is where you do your own tasks, which are pretty straight forward. It even includes an example of one task.[/QUOTE]
Is that so? Well ok, now what about where I actually put these files?
For sake of reference I still want to know what everything does.
Download a random NPC off garrysmod.org and see how they did it. (you will soon see all the little mistakes they have in them)
[QUOTE=_NewBee;32476210]Download a random NPC off garrysmod.org and see how they did it. (you will soon see all the little mistakes they have in them)[/QUOTE]
[b]S[/b]NPC.
The S stands for Scripted. I already made a crappy random NPC. See video.
Sorry, you need to Log In to post a reply to this thread.