Your Ad Here

Subscribe
 Post #1
 28th June 2010
Gold Member
CowThing's Avatar
November 2006
2,829 Posts
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.


Console commands are:
Manually set the proficiency.
Code:
npc_prof [NPC_NAME] [PROFICIENCY]
Open the menu pictured above.
Code:
npc_prof_menu
Download
This ONLY affects NPCs that hold guns!
 Post #2
 28th June 2010
Gold Member
Occlusion's Avatar
March 2008
4,199 Posts
I wish there were a way to change the range at which npcs saw/attacked you.
 Post #3
 28th June 2010
Dennab
October 2009
138 Posts
Awesome add-on, mate! You've got my DL!
 Post #4
 28th June 2010
Flubadoo's Avatar
August 2009
1,089 Posts
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!
 Post #5
 28th June 2010
Flubadoo's Avatar
August 2009
1,089 Posts
Ok this improves combine accuracy a shitload. Now they feel like real supersoldiers! :)
 Post #6
 28th June 2010
Gold Member
Kung Fu Jew's Avatar
November 2006
3,955 Posts
I wish there were a way to change the range at which npcs saw/attacked you.
Same here, maps that are anything more than CQC are a cakewalk because you can engage without them retaliating.
 Post #7
 3rd July 2010
Flubadoo's Avatar
August 2009
1,089 Posts
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?
 Post #8
 4th July 2010
MrClean's Avatar
June 2009
419 Posts
I wish there were a way to change the range at which npcs saw/attacked you.
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.
 Post #9
 5th July 2010
randomgibberish's Avatar
October 2009
64 Posts
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.
 Post #10
 5th July 2010
KonerBiller's Avatar
June 2010
26 Posts
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...
 Post #11
 5th July 2010
Aspirin's Avatar
February 2010
18 Posts
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!
 Post #12
 5th July 2010
Gold Member
CowThing's Avatar
November 2006
2,829 Posts
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.
This doesn't even have a stool, remove the old version.
 Post #13
 5th July 2010
randomgibberish's Avatar
October 2009
64 Posts
Right. Sorry.

Edited:

Sigh... lua error:
Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value)
Picture:
 Post #14
 5th July 2010
Flubadoo's Avatar
August 2009
1,089 Posts
Right. Sorry.

Edited:

Sigh... lua error:
Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value)
Picture:
Im getting the same error when I use the SetCurrentWeaponProficiency function on my new sweps D:
 Post #15
 5th July 2010
Frosty701's Avatar
March 2010
63 Posts
What does this even do?
 Post #16
 6th July 2010
Raptoid's Avatar
July 2005
61 Posts
What does this even do?
It changes how accurate NPCs are with weapons.
 Post #17
 6th July 2010
Aspirin's Avatar
February 2010
18 Posts
Oh, could you please make it so that it saves your preferences for this script?
Doesn't seem to remember my settings.
 Post #18
 6th July 2010 Last edited by Geist; 6th July 2010 at 07:58PM..
Geist's Avatar
February 2005
27 Posts
Nevermind, I figured it out. Read a bit more lul.
 Post #19
 6th July 2010
Gold Member
CowThing's Avatar
November 2006
2,829 Posts
Right. Sorry.

Edited:

Sigh... lua error:
Hook 'NPC Proficiency' Failed: autorun/NPCProflist.lua:125: attempt to call method 'SetCurrentWeaponProficiency' (a nil value)
Picture:
Could you explain a little more? What weapon was the NPC holding, what did you try changing the proficiency to.
 Post #20
 10th July 2010
randomgibberish's Avatar
October 2009
64 Posts
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.
 Post #21
 10th July 2010
Gold Member
CowThing's Avatar
November 2006
2,829 Posts
I can't recreate the error, maybe another Addon is conflicting.
 Post #22
 20th July 2010
Dennab
July 2010
1 Posts
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

(User was permabanned for this post ("Warezing gmod" - PLing))
 Post #23
 20th July 2010
Flubadoo's Avatar
August 2009
1,089 Posts
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
Then don't pirate gmod, you idiot. And don't tell us that you did.
 Post #24
 20th July 2010
Gold Member
Dennab
May 2008
2,317 Posts
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
Reported you for warez, enjoy your ban.
 Post #25
 20th July 2010
GMOD Moderator
PLing's Avatar
February 2005
21,493 Posts
Reported you for warez, enjoy your ban.
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.
 Post #26
 2 Weeks Ago
ketpia's Avatar
February 2009
3 Posts
Oh, could you please make it so that it saves your preferences for this script?
Doesn't seem to remember my settings.
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.
Reply

All times are GMT. The time now is 06:43AM.

Facepunch Studios 2010 - Server 'MARGE'