Themes
Report article RSS Feed Difficulty Scaling

Half Life 2 made you weaker, enemies tougher, and gave you less ammo. We intend to push things a little more.

Posted by Mxthe on Jul 7th, 2013
Basic Mapping/Technical.

When playing Half Life 2 on Hard Difficulty, the only differences you'll notice are:

  1. You die more easily.
  2. Enemies are harder to kill.
  3. When you pick up ammo, you get less of it.

Since we don't like to turn enemies into bullet sponges, we decided to diminish the edge the enemies get on Hard difficulty, and simply to add more of them in certain areas.

More Bad Guys

Therefore, we added a couple of keyvalues and inputs to the npc_maker and npc_template_maker entities, that look a little like this:

Keyvalues

code:
"MaxNPCCountHard"
"MaxLiveChildrenHard"

Inputs

code:
"AddMaxChildrenHard"
"SetMaxChildrenHard"
"SetMaxLiveChildrenHard"

For everyone who knows how the NPC Makers work, this is pretty straightforward.
Basically we added Values for making NPCS that are prioritized based on the Hard difficulty.

Therefore if I were to "SetMaxChildren" to 10, and "SetMaxChildrenHard" to 20, then 20 NPCs would spawn when playing on Hard difficulty, and only 10 would spawn on Easy and Normal.
Difficulty settings are also adjustable during play, and the entities should dynamically adapt to the settings, so if you are finding one spot too hard for your particular skills, you can always lower the difficulty to your preference.
But then again, if you're playing on Hard, it's because you're a sucker for challenge, aren't you?

Less Random Loot

The second step we have taken to raise the difficulty of the game, is to lower the amount of random loot you will encounter throughout the environment.
For those of you who have read the Item_Random for random loot ! tutorial, you'll notice that the chance of an item NOT spawning is decided by the "nothing" keyvalue of the entity.

Therefore, we added a few Console VARiables, that dictate a multiplier based on difficulty.

code:
sk_itemrandom1 0.75
sk_itemrandom2 1.00
sk_itemrandom3 1.50

This multiplier will make it so LESS (0.75) "nothing" is selected on Easy (therefore more items)
Normal amount (1.00) on Normal
And MORE (1.50) "nothing" on Hard difficulty (therefore less items)

This way, when playing on Hard, players will be required to manage their inventory more carefully, as well as their ammunition, they will be facing more foes with less resources, turning the game into a rougher survival experience.

Just remember, for most situations, fighting isn't the only option.


Programming by Carlos "Charly" Sotelo

Post comment Comments
U-Jooy
U-Jooy Jul 7 2013, 7:53am says:

"Since we don't like to turn enemies into bullet sponges.." I really appreciate this decision. I've played enough games, with enemies made out of kevlar, like Far Cry 2.

+35 votes     reply to comment
JoshZemlinsky
JoshZemlinsky Jul 7 2013, 12:26pm replied:

I agree.
I love the way they've done this :D

+10 votes     reply to comment
boredgunner
boredgunner Jul 7 2013, 12:27pm replied:

Yeah glad to see Underhell isn't doing that. That's a thing of the past, it should stay buried.

+13 votes     reply to comment
Forsete
Forsete Jul 7 2013, 1:20pm replied:

Yeah, I absolutely hate bullet sponge enemies. That's why I usually play games on Easy or Normal nowadays. It's a lazy design decision imo.

Blood is a great example of making the difficulty levels vastly different from each other. Not only do they add more enemies but they progressively get more aggressive and they aim a lot better on harder difficulties. Some enemies even receive new abilities (eg. the cultists only use their primary gun on the two easier skills levels while on normal they can throw a stick of dynamite at you. On the harder levels though they throw a PACK of dynamite!).

+10 votes     reply to comment
Hell_Diguner
Hell_Diguner Jul 9 2013, 3:53am replied:

I like hard(core) game modes that add or remove features to make the game harder. Dead Space 2 reduced the number of times you could save to three, and disabled autosaves. Doom 1+2 made enemies constantly respawn. Doom 3 made your health constantly drain to 25% and removed many of the health items. Bastion let you change difficulty mid-game, which in addition to the obvious - made enemies drop more money.

+3 votes     reply to comment
Jonex_
Jonex_ Jul 7 2013, 8:04am says:

Bullet sponge enemies is what I hated about playing Half Life 2 on hard. Thanks for not following that path :D

+10 votes     reply to comment
56er
56er Jul 7 2013, 8:06am says:

Okay, you coices are reasonable, but still, the only thing that really makes a game go hard mode for me, is when the devs manage to get the ai. on a level better than they were on normal and still not in god mode.
More enemies don't really seem like the key if they are still all as dumb as in normal. It would be better to have the same ammount as in normal, but have them use more & advanced tactics(& equitment maybe) just bring me as a player to play in new ways, rather than doing the same thing I did on normal with twice the enemies.

+6 votes     reply to comment
orang3dragon612
orang3dragon612 Jul 7 2013, 9:59am replied:

Here's how I see it. It's not just another group of enemies, it's additional sentry's and guards blocking your way, and making a empty hallway on easy or normal suddenly have guards that you need to keep out of sight from. I do agree with the above, but AI is difficult to do, some of the best being from FEAR, and some of the worst being from, well, many other games. Equipment, I think, will be conditioned to the situation, so not every group of baddies will come equipped with NV goggles on hard, only if you've been spotted or something like that. Anyways, just what I think, sure Mxthe will replay properly in due time.

+5 votes     reply to comment
NeoKabuto
NeoKabuto Jul 8 2013, 1:54pm replied:

The AI itself wouldn't need to be much smarter, it just needs to be tweaked a little and managed better. Easy AIs could ignore any sounds short of gunshots and need you to move faster to see you in the dark, while hard AIs would have their senses not as limited. Easy AIs could be given equipment that makes them easier to fight for you (if you favor taking out targets from a distance, it could spawn more guards with shotguns), but Hard AIs could adapt to your tactics themselves (so in that case they would have better ranged weapons, smoke grenades to cover themselves, and stay closer to cover).

+2 votes     reply to comment
vol4ok
vol4ok Jul 7 2013, 8:29am says:

Nice to see sightings of progress :)

+5 votes     reply to comment
orang3dragon612
orang3dragon612 Jul 7 2013, 9:55am says:

Mxthe, I'm curious. A few years ago I made the wildly incorrect statement that you might have upwards 7 chapters. Now I know that's wrong, but I'm wondering will this be the final chapter? Seeing how long it's taking, and how much of your life that you need to spend on it, I'm not sure if you want to plunge headlong into another full chapter.
It doesn't help that your an essentially one man team, slowing the whole process down compared to what a full part time team could do. Anyways, it continues to look great, and thanks for the tutorials, gives me ideas for programming.

+5 votes     reply to comment
DarkShift
DarkShift Jul 7 2013, 10:45am replied:

He said 5 chapters, a few months ago. The whole mod will be over around 2023, I guess.
We faced worse... (such as waiting 14 years for DNF, for example).

+6 votes     reply to comment
Mr.Scary
Mr.Scary Jul 7 2013, 11:10am replied:

As they say "People can wait for a good thing" and I can wait for something like Underhell.

+7 votes     reply to comment
Torr3
Torr3 Jul 7 2013, 11:50am says:

love it

+3 votes     reply to comment
MattyBoi
MattyBoi Jul 7 2013, 12:01pm says:

All this amazing work and modding and yet this thing HASN'T been greenlit on steam but "Yogventures" and "Angry Video Game Nerd Adventures" has?!

+5 votes     reply to comment
[FH]Gorgutz
[FH]Gorgutz Jul 7 2013, 3:42pm says:

Seeing an update made me spill tears of joy.

I'm also quite proud of this decision regarding a higher difficulty, by not making the AI freaking tanks while you're a pathetic little meat bag that can't even kill someone with a point blank headshot in one hit. ._.

+5 votes     reply to comment
LongNange{RUS}
LongNange{RUS} Jul 7 2013, 5:01pm says: Online

any info about release date?)

+2 votes     reply to comment
Taquito
Taquito Jul 7 2013, 10:47pm says:

Wish more games used this same system.

+2 votes     reply to comment
Serathis
Serathis Jul 8 2013, 4:56am says:

Ah the good old times. Back in the Doom days :)

+1 vote     reply to comment
SPY-maps
SPY-maps Jul 8 2013, 6:38pm says:

very interesting, this system you have thought of. i never knew it was also possible in this way. although, now to have more enemies you have to choose for Hard and maybe people would like to play on normal or even easy, but with more enemies. In my newest mod i use a system were people can choose for less or more enemies, whatever there difficulty setting is. I just used different triggers for it.

but that doesn't matter, i am glad to see this. i think more mods and games for that matter should give us the choice between less or more enemies.
great work!

Leon

+2 votes     reply to comment
andy1942liu
andy1942liu Jul 9 2013, 2:09am says:

Well in my opinion, COD is a really bad example of difficulty scaling.

+2 votes     reply to comment
mrtaterz
mrtaterz Aug 27 2013, 4:51pm replied:

Veteran is nearly impossible, depending on the level you're playing. Modern Warfare 2, the Favela mission on Veteran? Get the flop outta hurr.

+1 vote     reply to comment
charly.thorngren
charly.thorngren Jul 14 2013, 1:59pm says:

you should have that thing when u drop a mag u lose the bullets in it if u know what i mean :)

+2 votes     reply to comment
Guest
Guest Nov 12 2013, 5:47pm says:

This comment is currently awaiting admin approval, join now to view.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Underhell (Half-Life 2)
Underhell Half-Life 2 - Single Player Adventure
Related Games
Half-Life 2
Half-Life 2 Single & Multiplayer First Person Shooter