3 New Notifications

New Badge Earned
Get 1K upvotes on your post
Life choices of my cat
Earned 210

Drag Images here or Browse from your computer.

Trending Posts
Sorted by Newest First
S
Sidorovich12 18.01.20 11:59 pm

Creating a user-friendly portable turrets by pressing. (Half-Life 2)

Many times I've searched for how easy it is to create a friendly turret, as in Nova Prospekt, but as here and in other forums found information that had a lot of lines several times to enter in the console to display at least 1 turret and it did not work as it should, the eternal problems with recognition of friendly cella. By default, the turret sravnivala console was hostile to GG and the rebels that are friendly to the Alliance. But I want to describe a way with a single key, not steaming each time inserting 10 rows into the console.
This must be in the folder Half-Life 2\hl2\cfg create a file named for example create_turret.cfg . Then you need to open the file with Notepad and score lines given below:

ent_create npc_turret_floor
ent_fire npc_turret_floor setrelationship !player D_LI 9999 citizen
ent_fire npc_turret_floor setrelationship npc_barney D_LI 9999
ent_fire npc_turret_floor setrelationship npc_alyx D_LI 9999
ent_fire npc_turret_floor setrelationship npc_citizen D_LI 9999
ent_fire npc_turret_floor setrelationship npc_rebel D_LI 9999
ent_fire npc_turret_floor setrelationship npc_vortigaunt D_LI 9999
ent_fire npc_turret_floor setrelationship npc_combine_s D_HT 9999
ent_fire npc_turret_floor setrelationship npc_metropolice D_HT 9999
ent_fire npc_turret_floor setrelationship npc_cscanner D_HT 9999
ent_fire npc_turret_floor setrelationship npc_manhack D_HT 9999
ent_fire npc_turret_floor setrelationship npc_stalker D_HT 9999
ent_fire npc_turret_floor setrelationship npc_antlion D_HT 9999
ent_fire npc_turret_floor setrelationship npc_antlionguard D_HT 9999
ent_fire npc_turret_floor setrelationship npc_hunter D_HT 9999
______
where:
D_LI - friendly 1 to 2 NPC.
D_HT - hostility 1 to 2 NPC.
Then save the file.
Then run the game, open the console and enter the command:
bind t exec create_turret.cfg where t the desired key, which in principle can be replaced by any other. In General, load the save game (not advised to create turrets in the early game at least. The inability to move on in the game when you kill harvesters provided), press the desired key, surrounded by the turrets and enjoy the shooting range.
Created the sentry is user-friendly to HS, rebels and civilians, the vortigaunt and hostile to the Marines of the Alliance of small technology Alliance, scanners, Manheim, ant lions, zombies, the headcrabs of all types, and so on. To add to the list of hostile armored vehicles and acacio no sense, since the turret is unable to break them.
The teams added to the file crammed with the names of the models of the main NPC (npc_hunter, npc_antlionguard, etc.) and included those to whom a turret by default, hostile.
By the way, and more. The name of the model turret npc_turret_floor can be replaced by any other NPC, for example npc_combinegunship.
And the map will be a friendly attack aircraft to fly above and strike enemies in the dust.
Mogie probably already know about how to create such an NPC, but for those who do not know will be useful.
Screenshot
10 Comments
Sort by:
I
IMIDJ 18.01.20

I would like to add:
I have it working, all did as it should, would take the team ent_create npc_turret_floor and so Unknown command: ent_create
Then I created the Notepad that create_turret.cfg and copied there the code above, in the first line, where ent_create npc_turret_floor replaced ent on npc turned out npc_create npc_turret_floor" and vaul, it works, the turret appears in a given key, GG and other friendly attack, and the Alliance and zombie shoots, that is all other teams to replace was not necessary, only the first row.
Note to those who have happened to such

s
spectre from TM 18.01.20

note: this CCF when you call make friendly all the turrets on the map, it can be corrected if, after creating turrets to assign it a unique name using ent_setname, and relationship to appoint for the given name (in order to Satnam load, sight in the time of the call should look at the turret, if you create it on the floor she will allegedly default on the line of the cursor)

s
serafim240309 18.01.20

thank you it worked

C
Certain_Gek 19.03.21

It's funny, because of this config, my turrets started shooting at each other. Otherwise, everything works.
The line ent_fire npc_turret_floor setrelationship "npc_turret_floor D_LI 9999" does not help the situation, and the line ent_fire npc_turret_floor setrelationship "npc_turret_floor D_HT -9999" generally makes the player aggro.

r
rrrr567 28.10.21

And what to do if writes 'create_turret.cfg' not present; not executing. '?

d
definitely not a cheater 19.01.22

prr567
same thing

d
definitely not a cheater 19.01.22

writes: 'create_turret.cfg' not present; not executing.
=(

G
Guest 22.08.23

i did everything but it says "turret_friend.cfg not present, not executing." how do i fix that?

G
Guest 22.08.23

i did everything but it says "turret_friend.cfg not present, not executing." how do i fix that?

G
Guest 22.08.23

sorry for the spam