• NPC Proficiency 2
    28 replies, posted
So I found this old addon, fixed it up a bit, and now I'll be releasing it. I doubt I'll be working on this much anymore, if any lua coders want to fix something up/add things feel free to do so. I've created a menu that lists all of the npcs and proficiencies. [img]http://i48.tinypic.com/24mc120.jpg[/img] [U]Console commands are:[/U] Manually set the proficiency. [code]npc_prof [NPC_NAME] [PROFICIENCY][/code] Open the menu pictured above. [code]npc_prof_menu[/code] [U]Download[/U] [highlight][U][B]This ONLY affects NPCs that hold guns![/B][/U][/highlight] [url=http://www.garrysmod.org/downloads/?a=view&id=102516][img]http://www.garrysmod.org/img/?t=dll&id=102516[/img][/url]
I wish there were a way to change the range at which npcs saw/attacked you.
Awesome add-on, mate! You've got my DL!
It doesn't improve that much, but when you set the rebel accuracy to horrible and combine to perfect, you got yourself a fairer match!
Ok this improves combine accuracy a shitload. Now they feel like real supersoldiers! :)
[QUOTE=Occlusion;22953043]I wish there were a way to change the range at which npcs saw/attacked you.[/QUOTE] Same here, maps that are anything more than CQC are a cakewalk because you can engage without them retaliating.
How would you integrate this into a swep when an npc uses it? I'm having trouble with SetCurrentWeaponProficiency getting an error when spawned on an npc saying that it is a nil value?
[QUOTE=Occlusion;22953043]I wish there were a way to change the range at which npcs saw/attacked you.[/QUOTE] That should not be hard to to. There is a flag for all npc entitys in source that you can check called "long visibility/shoot". Npcs have this turned off by default which explaines why they don't shoot far when spawned in gmod. I think all that needs to be done is for someone to make an addon that changes the flag whenever an npc is spawned.
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU-doesn't work for me, just like the previous version. Same, exact error. weapons\gmod_tool\stools/npcproficiency.lua:31: attempt to call method 'GetCurrentWeaponProficiency' (a nil value) Because of this, the proficiency choices don't even show up.
Awesome! I thought you forgot about me asking you to find this, and then you make a V2. Now if only I hadn't uninstalled gmod yesterday...
Man, I'm in GMod right now (I'm using the Steam Overlay Browser to post this), and I got the PlayerFactions mod. It allows me to switch sides between Combine, Rebel or Zombies, based on my playermodel. The problem is that I'd get literally OWNED if I'm on Combine. What I just did is that I set the Combine guys' proficiency on "perfect", and they LITERALLY TEAR AWAY the rebels! Thanks!! I've been looking for something to make the Combine awesome and more challenging to the others!
[QUOTE=randomgibberish;23114870]FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU-doesn't work for me, just like the previous version. Same, exact error. weapons\gmod_tool\stools/npcproficiency.lua:31: attempt to call method 'GetCurrentWeaponProficiency' (a nil value) Because of this, the proficiency choices don't even show up.[/QUOTE] This doesn't even have a stool, remove the old version.
Right. Sorry. [editline]10:57AM[/editline] Sigh... lua error: Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value) Picture: [img]http://i45.tinypic.com/2dka2kz.jpg[/img]
[QUOTE=randomgibberish;23125161]Right. Sorry. [editline]10:57AM[/editline] Sigh... lua error: Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value) Picture: [img]http://i45.tinypic.com/2dka2kz.jpg[/img][/QUOTE] Im getting the same error when I use the SetCurrentWeaponProficiency function on my new sweps D:
What does this even do?
[QUOTE=Frosty701;23134289]What does this even do?[/QUOTE] It changes how accurate NPCs are with weapons.
Oh, could you please make it so that it saves your preferences for this script? Doesn't seem to remember my settings.
Nevermind, I figured it out. Read a bit more lul.
[QUOTE=randomgibberish;23125161]Right. Sorry. [editline]10:57AM[/editline] Sigh... lua error: Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value) Picture: [img_thumb]http://i45.tinypic.com/2dka2kz.jpg[/img_thumb][/QUOTE] Could you explain a little more? What weapon was the NPC holding, what did you try changing the proficiency to.
Npc was holding all the possible guns. I didn't even get to see the proficiency choices because the function failed. I even left the npc with no weapon, as seen in the picture.
I can't recreate the error, maybe another Addon is conflicting.
Can I question you to upload it to megaupload or plunder or any other site than Garrysmod.org , because it doesn't let you download anything if you've pirated gmod. This sounds awesome, but I can't download it :S [highlight](User was permabanned for this post ("Warezing gmod" - PLing))[/highlight]
[QUOTE=tmo97;23492635]Can I question you to upload it to megaupload or plunder or any other site than Garrysmod.org , because it doesn't let you download anything if you've pirated gmod. This sounds awesome, but I can't download it :S[/QUOTE] Then don't pirate gmod, you idiot. And don't tell us that you did.
[QUOTE=tmo97;23492635]Can I question you to upload it to megaupload or plunder or any other site than Garrysmod.org , because it doesn't let you download anything if you've pirated gmod. This sounds awesome, but I can't download it :S[/QUOTE] Reported you for warez, enjoy your ban.
[QUOTE=AlfieGroove;23493394]Reported you for warez, enjoy your ban.[/QUOTE] If you reply "enjoy your ban" or similar, chances are you're going down too. Just for future reference. No need to say you've reported something, just do it and we'll see it.
[QUOTE=Aspirin;23150792]Oh, could you please make it so that it saves your preferences for this script? Doesn't seem to remember my settings.[/QUOTE] Go to your addon (.../addons/Npc Proficiency 2) and go to ".../lua/autorun." Once there open "NPCProflist.lua" with notepad. You can edit the default proficiencies for the NPCs in there, just replace the "Average" beside each NPC with the Proficiency you want (look at the top of the file for the right codes). Save the file and boot up GMod, and your NPCs will have the correct proficiency. No need to open the menu each time. ^_^ Oh, make sure you make a backup of NPCProflist first, just in case you make a mistake and break it or something.
[QUOTE=ketpia;24148893]Go to your addon (.../addons/Npc Proficiency 2) and go to ".../lua/autorun." Once there open "NPCProflist.lua" with notepad. You can edit the default proficiencies for the NPCs in there, just replace the "Average" beside each NPC with the Proficiency you want (look at the top of the file for the right codes). Save the file and boot up GMod, and your NPCs will have the correct proficiency. No need to open the menu each time. ^_^ Oh, make sure you make a backup of NPCProflist first, just in case you make a mistake and break it or something.[/QUOTE] Thank you! :D
Is there anyway CowThing could Reupload this on Gmod 13? Ever since the mods broke I've been getting really sick of the combine shooting all over the place.
[QUOTE=Mr. Oreos;39096700]Is there anyway CowThing could Reupload this on Gmod 13? Ever since the mods broke I've been getting really sick of the combine shooting all over the place.[/QUOTE] Get NPC tools.
Sorry, you need to Log In to post a reply to this thread.