Half-Life 2

Half-Life 2

View Stats:
NickStod Oct 26, 2014 @ 9:05am
I need a console command or something
I was wondering of any of you guys know of a console command that disables gun lowering on friendly npcs and lets you kill them? Like Black Mesa and HL1, that would be cool. Plus, I accidentally spawned a citizen so I want to get rid of him. Help?
< >
Showing 1-7 of 7 comments
phillippi2 Oct 26, 2014 @ 10:49am 
You can kill them. Just, they tend to have insanely high hp and take a lot of bullets.
NickStod Oct 26, 2014 @ 1:29pm 
Originally posted by phillippi2:
You can kill them. Just, they tend to have insanely high hp and take a lot of bullets.
I do shoot them, but no blood or anything shows.
NickStod Nov 3, 2014 @ 7:23pm 
*bump
cyberwiz97 Nov 4, 2014 @ 1:48am 
Originally posted by NickTheGamer:
I was wondering of any of you guys know of a console command that disables gun lowering on friendly npcs and lets you kill them? Like Black Mesa and HL1, that would be cool. Plus, I accidentally spawned a citizen so I want to get rid of him. Help?
To remove a NPC, try .....

impulse 203

Last edited by cyberwiz97; Nov 4, 2014 @ 7:01am
NanoPi Nov 5, 2014 @ 3:02pm 
not much luck so far, but I ended up messing with the game in many ways

ent_fire !picker use

allowed me to pick up objects from extreme distance (caution: using it twice through this makes the object stuck in air)

ent_fire !player setmodelscale 0.25

be tiny. default size is 1 (caution: 0 crashes)

I'll keep trying to find a way to remove that gun limit

update: an entity with the classname "ai_relationship" can control whether the player can damage the npc. I just need to find a way to spawn one in-game with all the required keyvalues, or modify an existing one. if I manage to do so, I'll put the answer in a new reply.

http://forums.steampowered.com/forums/showpost.php?p=6850085&postcount=6

https://developer.valvesoftware.com/wiki/List_of_default_AI_relationships

https://developer.valvesoftware.com/wiki/Ai_relationship

(these links contain related information, but no direct answers)
Last edited by NanoPi; Nov 5, 2014 @ 6:47pm
Mandrew Aug 7, 2015 @ 9:02am 
You can remove him by ent_remove you can do it to any object or npc
gryvidy Aug 22, 2024 @ 6:33am 
I'm sorry for replying to this very old thread but I have a solution for you:

ent_create ai_relationship subject player target npc_citizen disposition 1 startactive 1

This command will allow you to damage citizens. If you want to damage anything you want, use this:

ent_create ai_relationship subject player target * disposition 1 startactive 1

Some npcs have damage filter enabled so they won't receive damage. If you want to deal damage to them as well, use this command:

ent_fire * setdamagefilter
Last edited by gryvidy; Aug 22, 2024 @ 6:35am
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Oct 26, 2014 @ 9:05am
Posts: 7