Garry's Mod

Garry's Mod

Half-Life Co-op
 This topic has been pinned, so it's probably important
upset  [developer] 14 Dec, 2018 @ 11:24am
2
Replacing weapon or ammo entities or NPCs
You can replace default weapon/ammo entities with the following console commands

  • hl1coop_weprepl_crowbar
  • hl1coop_weprepl_glock
  • hl1coop_weprepl_357
  • hl1coop_weprepl_mp5
  • hl1coop_weprepl_shotgun
  • hl1coop_weprepl_crossbow
  • hl1coop_weprepl_rpg
  • hl1coop_weprepl_gauss
  • hl1coop_weprepl_egon
  • hl1coop_weprepl_hornetgun
  • hl1coop_weprepl_handgrenade
  • hl1coop_weprepl_satchel
  • hl1coop_weprepl_tripmine
  • hl1coop_weprepl_snark

Example: hl1coop_weprepl_mp5 weapon_q3_railgun
MP5 is replaced by Quake 3 Railgun now, even if it was dropped by a soldier

To reset all, type hl1coop_weprepl_reset


Ammo replacing
  • hl1coop_ammorepl_glock
  • hl1coop_ammorepl_357
  • hl1coop_ammorepl_mp5clip
  • hl1coop_ammorepl_mp5grenades
  • hl1coop_ammorepl_shotgun
  • hl1coop_ammorepl_crossbow
  • hl1coop_ammorepl_gauss
  • hl1coop_ammorepl_rpg

Can be entity name or ammo type.
Example: hl1coop_ammorepl_glock ammo_rpg
9mm clips are replaced by RPG ammo now.
Example 2: hl1coop_ammorepl_glock uranium
Glock clips give you Uranium instead of 9mm bullets now.

To reset all, type hl1coop_ammorepl_reset


NPC replacing
Default NPCs can be replaced as well with following commands
  • hl1coop_npcrepl_agrunt
  • hl1coop_npcrepl_assassin
  • hl1coop_npcrepl_babycrab
  • hl1coop_npcrepl_barney
  • hl1coop_npcrepl_bullsquid
  • hl1coop_npcrepl_cockroach
  • hl1coop_npcrepl_controller
  • hl1coop_npcrepl_garg
  • hl1coop_npcrepl_gman
  • hl1coop_npcrepl_headcrab
  • hl1coop_npcrepl_hgrunt
  • hl1coop_npcrepl_houndeye
  • hl1coop_npcrepl_scientist
  • hl1coop_npcrepl_sentry
  • hl1coop_npcrepl_slave
  • hl1coop_npcrepl_zombie

Example: hl1coop_npcrepl_scientist monster_gman
Every poor scientist is replaced by GMan now.
Example 2: hl1coop_npcrepl_hgrunt monster_alien_slave monster_alien_grunt
Human grunts are randomly replaced by vortigaunts or alien grunts
https://www.youtube.com/watch?v=ozNIGImZP2A
To reset all, type hl1coop_npcrepl_reset
Last edited by upset; 14 Jun, 2020 @ 7:00pm
< >
Showing 1-15 of 76 comments
The Creature 17 Dec, 2018 @ 3:32am 
Sorry if this is the wrong place to ask/request this, but do you think it could be possible to have this sort of thing, but for NPCs aswell? for example, replacing human grunts with combine/rebels/zombies/etc via console commands, like this? except maybe leave scientists and security guards unconfigurable, considering you need them to progress through the game at times. This is entirely just a suggestion though, it'd be quite interesting to see in the gamemode though.
upset  [developer] 17 Dec, 2018 @ 3:33am 
Done
Last edited by upset; 26 Jul, 2020 @ 1:50am
Aris 19 Dec, 2018 @ 8:31pm 
For example how i put the knifes SWEP addon in the half life co-op?
upset  [developer] 19 Dec, 2018 @ 9:03pm 
You need to know an entity name
possible to replace the weapons with cw 2.0 with working attatchments and ammo?
upset  [developer] 20 Dec, 2018 @ 6:31pm 
I think so. As I remember, CW 2.0 had some convar to make attachments available after spawn
ah okay well thats good. will hl2 ammo work with this?
upset  [developer] 20 Dec, 2018 @ 6:50pm 
To get ammo, click at weapon in swepmenu multiple times
Is it possible to replace one NPC type with multiple types? like replacing human grunts with combine soldiers and metrocops?
upset  [developer] 21 Dec, 2018 @ 3:30pm 
If you set multiple values, it will pick random one for each NPC. Like this:
hl1coop_npcrepl_hgrunt npc_combine_s npc_metropolice
meowburt 21 Dec, 2018 @ 7:57pm 
Do you know how to find the entity names for a SWEP add-ons?
upset  [developer] 21 Dec, 2018 @ 8:05pm 
In Sandbox, right click > copy to clipboard
swepmenu in HL Co-op also shows entity names
Last edited by upset; 21 Dec, 2018 @ 8:05pm
Aris 1 Jan, 2019 @ 6:52pm 
How do I see the ammo name of the glock of the M9K Pack add-on?
upset  [developer] 2 Jan, 2019 @ 2:20am 
Pick the gun up in singleplayer and type at console
lua_run print(Entity(1):GetActiveWeapon().Primary.Ammo)
Wavy 31 Jan, 2019 @ 1:41am 
I'm having an issue where I replace the grunts with VJ human SNPCs and they spawn without weapons. I'd imagine vanilla Combine would be the same but I'm not sure.
< >
Showing 1-15 of 76 comments
Per page: 1530 50