Garry's Mod

Garry's Mod

Half-Life Co-op
 此主题已被置顶,因此可能具有重要性
upset  [开发者] 2018 年 12 月 14 日 上午 11:24
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
最后由 upset 编辑于; 2020 年 6 月 14 日 下午 7:00
< >
正在显示第 1 - 15 条,共 77 条留言
Cool Smoking Skeleton 2018 年 12 月 17 日 上午 3:32 
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  [开发者] 2018 年 12 月 17 日 上午 3:33 
Done
最后由 upset 编辑于; 2020 年 7 月 26 日 上午 1:50
Aris 2018 年 12 月 19 日 下午 8:31 
For example how i put the knifes SWEP addon in the half life co-op?
upset  [开发者] 2018 年 12 月 19 日 下午 9:03 
You need to know an entity name
possible to replace the weapons with cw 2.0 with working attatchments and ammo?
upset  [开发者] 2018 年 12 月 20 日 下午 6:31 
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  [开发者] 2018 年 12 月 20 日 下午 6:50 
To get ammo, click at weapon in swepmenu multiple times
Takahashi 2018 年 12 月 21 日 下午 3:03 
Is it possible to replace one NPC type with multiple types? like replacing human grunts with combine soldiers and metrocops?
upset  [开发者] 2018 年 12 月 21 日 下午 3:30 
If you set multiple values, it will pick random one for each NPC. Like this:
hl1coop_npcrepl_hgrunt npc_combine_s npc_metropolice
meowburt 2018 年 12 月 21 日 下午 7:57 
Do you know how to find the entity names for a SWEP add-ons?
upset  [开发者] 2018 年 12 月 21 日 下午 8:05 
In Sandbox, right click > copy to clipboard
swepmenu in HL Co-op also shows entity names
最后由 upset 编辑于; 2018 年 12 月 21 日 下午 8:05
Aris 2019 年 1 月 1 日 下午 6:52 
How do I see the ammo name of the glock of the M9K Pack add-on?
upset  [开发者] 2019 年 1 月 2 日 上午 2:20 
Pick the gun up in singleplayer and type at console
lua_run print(Entity(1):GetActiveWeapon().Primary.Ammo)
Little Jacob 2019 年 1 月 31 日 上午 1:41 
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.
< >
正在显示第 1 - 15 条,共 77 条留言
每页显示数: 1530 50