1. Post #1
    Anthoni_c's Avatar
    June 2007
    321 Posts
    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:


    CowThing's Add-On:
    http://www.facepunch.com/showthread.php?t=850671

    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.
    Reply With Quote Edit / Delete Reply United States Show Events Useful Useful x 4Winner Winner x 1 (list)

  2. Post #2
    Gold Member
    Dr Pepper's Avatar
    October 2008
    3,543 Posts
    Okay, so if I'm playing and I set it to Hard, then will I have to restart my game?
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 8Disagree Disagree x 1 (list)

  3. Post #3
    Anthoni_c's Avatar
    June 2007
    321 Posts
    Nope.
    Reply With Quote Edit / Delete Reply United States Show Events Disagree Disagree x 6Agree Agree x 1 (list)

  4. Post #4
    Gold Member
    leiftiger's Avatar
    November 2009
    274 Posts
    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..
    Reply With Quote Edit / Delete Reply Sweden Show Events Agree Agree x 5 (list)

  5. Post #5
    Anthoni_c's Avatar
    June 2007
    321 Posts
    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.
    Reply With Quote Edit / Delete Reply United States Show Events Bad Reading Bad Reading x 1Agree Agree x 1 (list)

  6. Post #6
    Gold Member
    imadaman's Avatar
    August 2008
    10,987 Posts
    Known Glitch: Spawn an NPC then change the difficulty then spawn another and each will have different difficulty levels.
    Personally I wouldn't consider that a Glitch.
    Reply With Quote Edit / Delete Reply Finland Show Events Agree Agree x 14Zing Zing x 1 (list)

  7. Post #7
    moo
    CowThing's Avatar
    November 2006
    4,964 Posts
    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: http://cowthing.pastebin.com/m3230f7a9

    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.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Lua Helper Lua Helper x 1 (list)

  8. Post #8
    Anthoni_c's Avatar
    June 2007
    321 Posts
    Cool I'll add that in, and tag your name onto the dev-list in the next release.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Friendly Friendly x 1 (list)

  9. Post #9
    Scrake's Avatar
    August 2009
    494 Posts
    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.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  10. Post #10
    Anthoni_c's Avatar
    June 2007
    321 Posts
    I really should have named it NPC Proficiency Like CowThing, because it only does NPC's that shoot. :/
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  11. Post #11
    supercombine222's Avatar
    September 2009
    51 Posts
    what do i write so i can set the difficulty sorry if bump
    Reply With Quote Edit / Delete Reply Puerto Rico Show Events Bad Reading Bad Reading x 3Dumb Dumb x 2 (list)

  12. Post #12
    Gold Member
    Tinter's Avatar
    March 2008
    9,370 Posts
    what do i write so i can set the difficulty sorry if bump
    npc_difficulty <level>
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Denmark Show Events Zing Zing x 1 (list)

  13. Post #13
    Gold Member
    SGTNAPALM's Avatar
    October 2007
    27,035 Posts
    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?"
    Reply With Quote Edit / Delete Reply United States Show Events Bad Reading Bad Reading x 1Agree Agree x 1 (list)

  14. Post #14
    Doomednuclei's Avatar
    May 2009
    42 Posts
    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?"
    It makes the combine aim MUCH better, and I think the ai might be tweaked a bit better.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Zing Zing x 1 (list)

  15. Post #15
    Gold Member
    leiftiger's Avatar
    November 2009
    274 Posts
    It makes the combine aim MUCH better, and I think the ai might be tweaked a bit better.
    I does only change the combines aiming. Nothing else..
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Sweden Show Events Agree Agree x 1 (list)

  16. Post #16
    Gold Member
    Thrasher1018's Avatar
    June 2006
    871 Posts
    That's probably enough, the Combine are decent when you set them in groups on a map with decent nodes.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  17. Post #17
    Cheese123's Avatar
    February 2010
    1,134 Posts
    Personally I wouldn't consider that a Glitch.
    Combine are fucking trained,
    And rebels are just people given a gun!
    Strange.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 1Funny Funny x 1 (list)

  18. Post #18
    Gold Member
    Gmod_Fan77's Avatar
    January 2009
    4,425 Posts
    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.

    Edited:

    That's probably enough, the Combine are decent when you set them in groups on a map with decent nodes.
    Combine are brutal when they mass-fire like that.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  19. Post #19

    October 2009
    62 Posts
    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)
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  20. Post #20
    Gold Member
    Crazy Quebec's Avatar
    May 2008
    2,449 Posts
    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)
    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.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Canada Show Events Zing Zing x 1 (list)

  21. Post #21
    Xamresor's Avatar
    February 2010
    26 Posts
    Can i change NPC Looking radious?

    Edited:

    if yes then how?
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Latvia Show Events Optimistic Optimistic x 1 (list)

  22. Post #22
    mrbaus's Avatar
    December 2009
    16 Posts
    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)
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Late Late x 1 (list)

  23. Post #23

    March 2010
    1 Posts
    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)

  24. Post #24
    Gold Member
    Gmod_Fan77's Avatar
    January 2009
    4,425 Posts
    This mod is unfunctional, and to make matters worse, CowThing's proficiency addon's been removed.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Agree Agree x 1 (list)

  25. Post #25
    KING
    of OVER – REACTING
    “No jokes allowed!!!”
    ROFLBURGER's Avatar
    May 2009
    29,998 Posts
    What do you mean legendary is the default? Is that the difficulty before I install the addon?
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Canada Show Events Funny Funny x 1 (list)

  26. Post #26
    Gold Member
    Wizey!'s Avatar
    October 2008
    2,064 Posts
    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)
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Lua King Lua King x 2Agree Agree x 1 (list)

  27. Post #27
    KING
    of OVER – REACTING
    “No jokes allowed!!!”
    ROFLBURGER's Avatar
    May 2009
    29,998 Posts
    Also another question; does this affect weapon damage? Or does it increase the AI?

    Again:
    What do you mean legendary is the default? Is that the difficulty before I install the addon?
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Canada Show Events Late Late x 1 (list)

  28. Post #28
    Gold Member
    Kung Fu Jew's Avatar
    November 2006
    5,679 Posts
    just makes them aim better.

    and yes they are automatically tuned up to the best
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 2 (list)

  29. Post #29
    DocDoomsday's Avatar
    May 2009
    1,003 Posts
    Lol I have a script that does something like this but its by number variables..
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Artistic Artistic x 1 (list)

  30. Post #30
    CptLemons's Avatar
    May 2009
    508 Posts
    Perhaps you could release it b/c this one doesn't work, unless someone has cowthing's npc proficiency tool handy.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Disagree Disagree x 1 (list)

  31. Post #31
    Nino's Avatar
    July 2005
    138 Posts
    Does this work on zombies too? like that they dont get killed with a single shot from a pistol to head?
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Finland Show Events Late Late x 1 (list)

  32. Post #32
    frankster112's Avatar
    December 2008
    9 Posts
    This is very useful. now my combine wont die with one shot.
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. United States Show Events Funny Funny x 1 (list)

  33. Post #33
    supercombine's Avatar
    February 2010
    65 Posts
    now if only i can put the npcs in squads when i spawn them in the spawn menu
    Reply With Quote Edit / Delete Reply THIS BUG NEEDS FIXING, BUT I DONT KNOW WHAT CAUSES IT, SO SHUT UP AND STOP POSTING ABOUT IT. Thanks. Puerto Rico Show Events Agree Agree x 1 (list)