• NPC Difficulty
    32 replies, posted
  • Avatar of Anthoni_c
  • Lemme' start out by saying I got the idea from CowThing's Add-On so give that guy some thanks too. For every NPC you spawn this will set said NPC's difficulty to what ever level you wish. The default level is Legendary. There are five levels as follows: -Easy -Medium -Hard -Veteran -Legendary Use the ConCommand "npc_difficulty <level>" to set the difficult, it will be saved for the next time you play. Have Fun! Download: [url=http://www.garrysmod.org/downloads/?a=view&id=86096][img]http://www.garrysmod.org/img/?t=dll&id=86096[/img][/url] CowThing's Add-On: [url]http://www.facepunch.com/showthread.php?t=850671[/url] Note: This set's the difficulty for all NPC's spawned that use weapons. So Rebels and Combine will be on the same level. Another Note: Spawn an NPC then change the difficulty then spawn another and each will have different difficulty levels.
  • Okay, so if I'm playing and I set it to Hard, then will I have to restart my game?
  • Avatar of leiftiger
  • I don't see any reason to call it Difficulty, Rebels are still better than combine when both have the same proficiency. It is easier for combines to kill rebels now, but combines are still not better or equal to rebels & citizens..
  • Avatar of Anthoni_c
  • I've noticed that. I was thinking of making new SNPC Combine and Rebels, one's with more advanced AI. Yet, for now this is what we've got.
  • Avatar of imadaman
  • [QUOTE=Anthoni_c;19048581]Known Glitch: Spawn an NPC then change the difficulty then spawn another and each will have different difficulty levels.[/QUOTE] Personally I wouldn't consider that a Glitch.
  • Avatar of CowThing
  • Thanks! I had started working on a console command to do this too. But since you've released I'll go ahead and give you what I have: [url]http://cowthing.pastebin.com/m3230f7a9[/url] The command is: npc_prof "<npc name> <proficiency>" It works even if you spawn the npc after using the command, and this allows you to make only certain npcs more or less accurate.
  • Avatar of Scrake
  • Does it set a certain type of npc's difficulty? For example, what if you wanted an antlion guard to be on legendary, and some zombies to be on hard. That's just for an example. I don't know why you would want to do that, but it's an example.
  • Avatar of Anthoni_c
  • I really should have named it NPC Proficiency Like CowThing, because it only does NPC's that shoot. :/
  • Avatar of Tinter
  • [QUOTE=supercombine222;19933798]what do i write so i can set the difficulty sorry if bump[/QUOTE] npc_difficulty <level>
  • So what exactly does this do? Does it actually alter NPC behavior, does it increase accuracy? Does it give a higher max health? I guess what I'm trying to ask is "Is this real difficulty or artificial difficulty?"
  • Avatar of Doomednuclei
  • [QUOTE=SGTNAPALM;19954521]So what exactly does this do? Does it actually alter NPC behavior, does it increase accuracy? Does it give a higher max health? I guess what I'm trying to ask is "Is this real difficulty or artificial difficulty?"[/QUOTE] It makes the combine aim MUCH better, and I think the ai might be tweaked a bit better.
  • Avatar of leiftiger
  • [QUOTE=Doomednuclei;20200043]It makes the combine aim MUCH better, and I think the ai might be tweaked a bit better.[/QUOTE] I does only change the combines aiming. Nothing else..
  • Avatar of Thrasher1018
  • That's probably enough, the Combine are decent when you set them in groups on a map with decent nodes.
  • Avatar of Cheese123
  • [QUOTE=imadaman;19057266]Personally I wouldn't consider that a Glitch.[/QUOTE] Combine are fucking trained, And rebels are just people given a gun! Strange.
  • Avatar of Gmod_Fan77
  • I used this, and no matter what difficulty I used, all NPCs had a Poor proficiency rating when I checked with the Proficiency Tool. I think I'll just stick to using the Proficiency Tool for now. With it, I can make two Combine easily own 10 Rebels. [editline]11:07AM[/editline] [QUOTE=Thrasher1018;20234119]That's probably enough, the Combine are decent when you set them in groups on a map with decent nodes.[/QUOTE] Combine are brutal when they mass-fire like that.
  • This doesn't really seem to work. Sorry for bumping, but tell me if i'm doing anything wrong: 1. Open up console, use command. Typed in Legendary in the blank space for "npc_difficulty [level]". 2. Spawn combine with weapon. 3. Spawn Kleiner, and restrain at a set distance with phys-gun to see results. 4. Repeat step 1, but with easy. 5. Undo first combine and replace with another, using exact same gun. 6. Noticed that they both shoot horribly. This has me pretty pissed as the proficiency tool doesn't work for me. (CowThing's)
  • Avatar of Crazy Quebec
  • [QUOTE=randomgibberish;20278396]This doesn't really seem to work. Sorry for bumping, but tell me if i'm doing anything wrong: 1. Open up console, use command. Typed in Legendary in the blank space for "npc_difficulty [level]". 2. Spawn combine with weapon. 3. Spawn Kleiner, and restrain at a set distance with phys-gun to see results. 4. Repeat step 1, but with easy. 5. Undo first combine and replace with another, using exact same gun. 6. Noticed that they both shoot horribly. This has me pretty pissed as the proficiency tool doesn't work for me. (CowThing's)[/QUOTE] That's not like it's the STOOL developer's fault. They're just calling a builtin method on the NPCs. You could fit it in one line really. :smile:
  • Avatar of Xamresor
  • Can i change NPC Looking radious? [editline]11:41PM[/editline] if yes then how?
  • Avatar of mrbaus
  • It won't work for me either. I checked the console after starting a new single player game (before doing anything), and this was the last line: Hook 'NPCDifficulty' Failed: autorun/npc_difficulty.lua:46: attempt to call method 'SetCurrentWeaponProficiency' (a nil value)
  • It worked fine after I downloaded it but when I changed the difficulty to easy, I can't change the difficulty anymore. I checked the console and I saw this: Hook 'NPCDifficulty' Failed: autorun/npc_difficulty.lua:46: attempt to call method 'SetCurrentWeaponProficiency' (a nil value)
  • Avatar of Gmod_Fan77
  • This mod is unfunctional, and to make matters worse, CowThing's proficiency addon's been removed.
  • Avatar of ROFLBURGER
  • What do you mean legendary is the default? Is that the difficulty before I install the addon?
  • Avatar of Wizey!
  • This is great, Apart from you cant play half life 2 without difficulty... So i just made this to splat on the bottom of the script, Enjoy you people who want to play hl2 with DIFFICULTY! [code]function npc_difficultyauto() for k,v in pairs (ents.GetAll()) do if v:IsNPC() then v:SetCurrentWeaponProficiency( curDifficulty ) end end end hook.Add("Think","NpcDif",npc_difficultyauto)[/code]
  • Avatar of ROFLBURGER
  • Also another question; does this affect weapon damage? Or does it increase the AI? Again: [QUOTE=ROFLBURGER;20733662]What do you mean legendary is the default? Is that the difficulty before I install the addon?[/QUOTE]
  • Avatar of CptLemons
  • Perhaps you could release it b/c this one doesn't work, unless someone has cowthing's npc proficiency tool handy.