Half-Life 2: Deathmatch

Half-Life 2: Deathmatch

Mandrew Feb 5, 2020 @ 6:33pm
How to fix many NPCs in Half-Life 2 Deathmatch
This guide is outdated and no longer works

Summary
Ever wanted to fix npc_combine_s, npc_metropolice and other npcs? Ever wanted to get the bullets to come out of turrets and npc guns as well? This is the guide.
Step One
Download server.dll and assets
server.dll
https://drive.google.com/drive/folders/118gbn8VwcB6aVdxl0iN8cZlgEAzxsHJ5?usp=sharing

Maps and Models:
http://fastdl.hl2mp.ru/hl2mp/

Compiled and Fixed (for windows users) by me, credits to https://forums.alliedmods.net/showthread.php?t=264099 for the base of the source code.
https://steamcommunity.com/id/dani1986

skill.cfg
https://drive.google.com/open?id=1l4v9bV0PeGYQNFxlYJwFlZ6NItu0FI3v

Please keep in mind this modified server.dll also changes behavior of some weapons, the crowbar's and stunstick's firerate are increased, crossbow bolts explode after awhile and so on. There isn't really much else to say.

The modified server.dll also adds some NPCs from Half-Life 2 Episode Two! Another thing from Episode 2 is that weapon_striderbuster (The Magnusson Device) has been added.

Step Two
Right Click Half-Life 2 Deathmatch, go to "Local Files", Click "Browse Local Files".

Go to hl2mp/bin.
Create 2 new folders, one named "mod" and one named "backup".
Copy server.dll that you didn't download to "backup" and copy the server.dll you downloaded to "mod".
Now copy the server.dll in the "mod" folder to "hl2mp/bin".

Step Three
Open Npc_Assets.zip and copy the "custom" folder to the "hl2mp" folder.

Put skill.cfg in hl2mp/cfg

Important Notes
You cannot join servers with a modified server.dll. This is why we backed up both of our server.dlls so we can create our own server when we want to and join a server when we want to.

When using the custom server.dll, the server automatically runs on insecure mode, therefor you don't need to type -insecure when you want to use plugins.

If you want a friend to play with you, you have 2 options.
1. Get a plugin that automatically downloads all the assets from your custom folder.
2. Tell your friend to download Npc_Assets.zip and tell them to put the custom folder into their hl2mp folder.

Never modify client.dll in Half-Life 2 Deathmatch! If you do, you have the possibility to get VAC banned on secure servers.

Credit goes to D@Ni1986
His profile:
https://steamcommunity.com/id/dani1986

His Discussion Page:
https://steamcommunity.com/app/320/discussions/0/2673382644940773402/

A note to D@Ni1986. I created this guide for noobs since not everyone is a programmer (including myself who needed help even compiling your sourcecode!). Nor does everyone know how to compile stuff. The majority of the credit does not belong to me but to you instead. If you want me to take this down then you can let me know. Thank you for creating this.

The End
You should be done.
Please ask any quetions you may have. Thank you and I hope your cooperative experience goes well!
Last edited by Mandrew; Apr 2 @ 12:47pm
< >
Showing 1-15 of 57 comments
Mandrew Feb 5, 2020 @ 8:50pm 
Originally posted by Cyni:
all you need to do is add NPC animations to the player animations. you shouldn't have to mess with any libraries
Yes you do, bullets from NPCs don't shoot.
Mandrew Feb 5, 2020 @ 9:18pm 
Originally posted by Cyni:
all you need to do is add NPC animations to the player animations. you shouldn't have to mess with any libraries
If you spawn an npc_sniper, it will crash the game. However with this new server.dll it will fix all that. If you spawn a turret, it will shoot but bullets don't come out and only the sound and muzzle flash will show, the new server.dll will fix it.
Last edited by Mandrew; Feb 5, 2020 @ 9:18pm
Lange-Déchu Feb 15, 2020 @ 9:19am 
it also needs a plug server.so for linux.
Mandrew Feb 15, 2020 @ 12:03pm 
Originally posted by †LANGE-Déchu†:
it also needs a plug server.so for linux.
Yep, his sourcecode was built for Linux so I was able to compile it using windows.
Mandrew Feb 18, 2020 @ 2:29pm 
Originally posted by {EXILE}™GuitarSlayer:
Hi,,i have a home server i run,,i tryed what u said and i cant get in my own server that is on my pc,,either i did somthing wrong or somthing,,i do messup a lot(LOLOL),and if i can get it to work,,then noone can join unless i have them dl what u have up there,but either way i cant get on.
I've never tried to setup a dedicated server.
돌카 Jan 24, 2022 @ 11:39am 
all google drive links dead now
re-upload please:winter2019coolyul:
D@Ni1986 Jan 25, 2022 @ 10:03am 
Originally posted by 백고미:
all google drive links dead now
re-upload please:winter2019coolyul:

https://drive.google.com/drive/folders/118gbn8VwcB6aVdxl0iN8cZlgEAzxsHJ5?usp=sharing

maps/models etc
http://fastdl.hl2mp.ru/hl2mp/
Last edited by D@Ni1986; Jan 25, 2022 @ 10:13am
Mandrew Jan 26, 2022 @ 7:17pm 
Originally posted by D@Ni1986:
Originally posted by 백고미:
all google drive links dead now
re-upload please:winter2019coolyul:

https://drive.google.com/drive/folders/118gbn8VwcB6aVdxl0iN8cZlgEAzxsHJ5?usp=sharing

maps/models etc
http://fastdl.hl2mp.ru/hl2mp/
I just changed the links.
Wontairr Feb 6, 2022 @ 7:16am 
hey where can i find the "Npc_Assets.zip" file?
Wontairr Feb 6, 2022 @ 7:54am 
also how do i fix the health displayed? it says "#HL2MP_ShowHpDefault"
Ok works fine.

is it possible to switch off the HP displays or at least some of them ?
and
i would like to catch the balls with the grafity. How can I set this up?

Edit: I also notice sound errors.

Edit2: sound fix it with EmitSound
Last edited by [RocKs³]|Painkiller_Overdose; Mar 8, 2022 @ 5:21am
Andrej Mar 27, 2022 @ 1:00am 
If someone need a way to download assets from http://fastdl.hl2mp.ru/hl2mp/ you could use wget (for Windows you can find it here - https://eternallybored.org/misc/wget/) and this command from cmd

wget -r -np -nH -R index.html http://fastdl.hl2mp.ru/hl2mp/
GhostOpsZone Apr 10, 2022 @ 4:36pm 
there needs to be a new link for skill.cfg
skill.cfg

/code // HEALTH/SUIT CHARGE DISTRIBUTION
sk_suitcharger "75"
sk_suitcharger_citadel "200"
sk_suitcharger_citadel_maxarmor "200"
sk_battery "15"
sk_healthcharger "50"
sk_healthkit "25"
sk_healthvial "10"

// player damage adjusters
sk_player_head "3"
sk_player_chest "1"
sk_player_stomach "1"
sk_player_arm "1"
sk_player_leg "1"
skill_def.cfg

/code //TEST
//ai_enable_fear_behavior "1"

// ===========
// NPCs
// ============

//hgrunt
sk_hgrunt_pellets "6"
sk_hgrunt_health "90"

//Alien Grunt
sk_agrunt_health "150"
sk_plr_dmg_hornet "12"

// zombine
sk_zombie_soldier_health "130"

// Episodic APC - Experimental
sk_apc_missile_damage "50"

// Antlion air attack
sk_antlion_air_attack_dmg "25"

// Antlion worker
sk_antlion_worker_spit_speed "600"
sk_antlion_worker_health "80"
sk_antlion_worker_spit_grenade_dmg "60"
sk_antlion_worker_spit_grenade_radius "380"

// Poison headcrab
sk_headcrab_poison_npc_damage "30.0"

// advisor
//sk_advisor_health "1000"

//Gargantua
sk_gargantua_health "1600"
sk_gargantua_dmg_slash "50"
sk_gargantua_dmg_fire "1"
sk_gargantua_dmg_stomp "200"

// Hunter
sk_hunter_dmg_one_slash "20"
sk_hunter_dmg_charge "80"
hunter_flechette_max_range "2400"
sk_hunter_dmg_flechette "12"
sk_hunter_flechette_explode_dmg "30"
sk_hunter_flechette_explode_radius "256"
sk_hunter_health "340"

// Sniper
bulletspeed 9000

// Barnacle
sk_barnacle_health "60"

// Barney
sk_barney_health "100"

// Bullseye
sk_bullseye_health "35"

// Bullsquid
sk_bullsquid_health "110"
sk_bullsquid_dmg_bite "20"
sk_bullsquid_dmg_whip "25"

// Fastzombie
sk_fastzombie_health "90"
sk_fastzombie_dmg_leap "15"
sk_fastzombie_dmg_claw "9"

// Merchant
sk_merchant_health "500"

// Citizen
sk_citizen_health "120"

// Combine Soldier
sk_combine_s_health "100"
sk_combine_s_kick "30"

// Combine Guard
sk_combine_guard_health "110"
sk_combine_guard_kick "60"

// strider
sk_strider_health "750"
sk_strider_num_missiles1 "25"
sk_strider_num_missiles2 "25"
sk_strider_num_missiles3 "25"

// Headcrab
sk_headcrab_health "60"
sk_headcrab_melee_dmg "10"

// Fast Headcrab
sk_headcrab_fast_health "60"

// Poison Headcrab
sk_headcrab_poison_health "50"

// Houndeye
sk_houndeye_health "100"
sk_houndeye_dmg_blast "60"

// Manhack
sk_manhack_health "50"
sk_manhack_melee_dmg "15"

// Metropolice
sk_metropolice_health "80"
sk_metropolice_stitch_reaction "1.0"
sk_metropolice_stitch_tight_hitcount "2"
sk_metropolice_stitch_at_hitcount "1"
sk_metropolice_stitch_behind_hitcount "3"
sk_metropolice_stitch_along_hitcount "2"

// Rollermine
sk_rollermine_shock "20"
sk_rollermine_stun_delay "2"
sk_rollermine_vehicle_intercept "1"

// Scanner (City)
sk_scanner_health "80"
sk_scanner_dmg_dive "40"

// Stalker
sk_stalker_health "500"
sk_stalker_melee_dmg "6"

// Vortigaunt
sk_vortigaunt_health "120"
sk_vortigaunt_dmg_claw "10"
sk_vortigaunt_dmg_rake "25"
sk_vortigaunt_dmg_zap "30"
sk_vortigaunt_armor_charge "100"
sk_vortigaunt_armor_charge_per_token "5"
sk_vortigaunt_zap_range "10000"

// Zombie
sk_zombie_health "70"
sk_zombie_dmg_one_slash "25"
sk_zombie_dmg_both_slash "35"

// Poison Zombie
sk_zombie_poison_health "175"
sk_zombie_poison_dmg_spit "50"

//Antlion
sk_antlion_health "70"
sk_antlion_swipe_damage "12"
sk_antlion_jump_damage "50"

//Antlion Guard
sk_antlionguard_health "800"
sk_antlionguard_dmg_charge "60"
sk_antlionguard_dmg_shove "60"

//Antlion Grub
//sk_antliongrub_health "5"

//Ichthyosaur
sk_ichthyosaur_health "900"
//sk_ichthyosaur_melee_dmg "100"

// Combine Gunship
sk_gunship_burst_size "50"
sk_gunship_health_increments "7"
sk_npc_dmg_gunship "25"
sk_npc_dmg_gunship_to_plr "5"

// Combine Helicopter
sk_npc_dmg_helicopter "4"
sk_npc_dmg_helicopter_to_plr "1"
sk_helicopter_grenadedamage "15"
sk_helicopter_grenaderadius "1200"
sk_helicopter_grenadeforce "5500"
g_helicopter_maxfiringdist "10000"
sk_helicopter_health "7000"
sk_helicopter_firingcone "20"
sk_helicopter_burstcount "70"
sk_helicopter_roundsperburst "8"
sk_helicopter_num_bombs1 "10"
sk_helicopter_num_bombs2 "10"
sk_helicopter_num_bombs3 "10"

// Combine Dropship
sk_npc_dmg_dropship "8"

// Combine APC
sk_apc_health "450"
sk_apc_missile_damage 60


// =================
// WEAPONS
// =================

sk_plr_dmg_ar2 "8"
sk_npc_dmg_ar2 "3"
sk_max_ar2 "120"
sk_max_ar2_altfire "5"

sk_plr_dmg_alyxgun "5"
sk_npc_dmg_alyxgun "3"
sk_max_alyxgun "150"

sk_plr_dmg_pistol "6"
sk_npc_dmg_pistol "4"
sk_max_pistol "150"

sk_plr_dmg_smg1 "5"
sk_npc_dmg_smg1 "3"
sk_max_smg1 "250"

sk_plr_dmg_buckshot "12"
sk_npc_dmg_buckshot "3"
sk_max_buckshot "30"

sk_plr_dmg_rpg_round "100"
sk_npc_dmg_rpg_round "100"
sk_max_rpg_round "5"

sk_plr_dmg_smg1_grenade "100"
sk_npc_dmg_smg1_grenade "50"
sk_max_smg1_grenade "5"
sk_smg1_grenade_radius "250"

sk_plr_dmg_gauss "11"
sk_plr_max_dmg_gauss "150"

sk_plr_dmg_sniper_round "120"
sk_npc_dmg_sniper_round "120"
sk_max_sniper_round "15"

sk_plr_dmg_357 "60"
sk_npc_dmg_357 "50"
sk_max_357 "18"

sk_plr_dmg_crossbow "100"
sk_npc_dmg_crossbow "10"
sk_max_crossbow "15"

sk_plr_dmg_airboat "4"
sk_npc_dmg_airboat "4"

//sk_dmg_sniper_penetrate_plr "10"
//sk_dmg_sniper_penetrate_npc "100"

sk_plr_dmg_grenade "150"
sk_npc_dmg_grenade "75"
sk_max_grenade "7"

//sk_plr_dmg_crowbar "10"
//sk_npc_dmg_crowbar "5"

//sk_plr_dmg_stunstick "60"
//sk_npc_dmg_stunstick "40" // Kill a citizen in one hit

//sk_plr_dmg_satchel "150"
//sk_npc_dmg_satchel "75"
//sk_satchel_radius "150"

// Mortar Synth projectile
//sk_dmg_energy_grenade "2"
//sk_energy_grenade_radius "100"

sk_dmg_homer_grenade "20"
sk_homer_grenade_radius "100"

// Bullsquid spit
//sk_dmg_spit_grenade "5"
//sk_spit_grenade_radius "50"

//sk_plr_dmg_tripmine "150"
//sk_npc_dmg_tripmine "125"
//sk_tripmine_radius "200"

sk_plr_dmg_fraggrenade "125"
sk_npc_dmg_fraggrenade "300"
sk_fraggrenade_radius "350"

// HEALTH/SUIT CHARGE DISTRIBUTION
sk_suitcharger "75"
sk_suitcharger_citadel "500"
sk_suitcharger_citadel_maxarmor "200"
sk_battery "15"
sk_healthcharger "50"
sk_healthkit "25"
sk_healthvial "10"

// Combine balls
sk_combineball_seek_angle "15"
sk_combineball_guidefactor "1.0"
sk_npc_dmg_combineball "200"
sk_combineball_seek_kill "1"

// NPC damage adjusters
sk_npc_head "3"
sk_npc_chest "1"
sk_npc_stomach "1"
sk_npc_arm "1"
sk_npc_leg "1"

// player damage adjusters
sk_player_head "3"
sk_player_chest "1"
sk_player_stomach "1"
sk_player_arm "1"
sk_player_leg "1"

// Allies
sk_ally_regen_time "0.2"

// Jeep
sk_max_gauss_round "200"
< >
Showing 1-15 of 57 comments
Per page: 1530 50