Add a turret to my location - Possible?

L

Limbi

Guest
Hi all

I'd like to add turrets into a map, wich hasn't any turrets located inside to my place.

How to manage? Any idea? I just want to play arround with them... I love them. ;)

I already played HL2 to the end.

I found a command "npc_create_equipment". This will help you perhaps to find the correct command.

Sorry for my english. German answers are welcome!
 
Limbi said:
Hi all

I'd like to add turrets into a map, wich hasn't any turrets located inside to my place.

How to manage? Any idea? I just want to play arround with them... I love them. ;)

I already played HL2 to the end.

I found a command "npc_create_equipment". This will help you perhaps to find the correct command.

Sorry for my english. German answers are welcome!

What kind of turret? The ones in the ground (near the end), or the ones you can move with the manipulator (like in the jail)
 
The movable ones can be spawned with npc_create (or give, if you want it spawned in your exact location) npc_turret_floor, I believe.

So typing npc_create npc_turret_floor should give you a turret, but be warned, every time I try and do this my game crashes the moment it touches the floor.
 
Edcrab said:
The movable ones can be spawned with npc_create (or give, if you want it spawned in your exact location) npc_turret_floor, I believe.

So typing npc_create npc_turret_floor should give you a turret, but be warned, every time I try and do this my game crashes the moment it touches the floor.

Nice idea! give npc_turret_floor is working, but your right! It's crashing.
But where does my turret spawn if I use npc_create npc_turret_floor? I do not see any turret.

How can I manage it without crashing? Help please!
 
How about trying it with noclip on? thats the way it works in Ut2004 :rolleyes: just a tought.
 
npc_create_aimed maybe?

i know in CSS if you spawn a hosty with hostage_entity then it'l crash unless its _aimed aswel.


try that :)
 
Ok is it correct, that I have to write to console first npc_create_aimed npc_turret_floor and second give npc_turret_floor? Right?
 
Limbi said:
Ok is it correct, that I have to write to console first npc_create_aimed npc_turret_floor and second give npc_turret_floor? Right?

"npc_create_aimed npc_turret_floor" should just create a turret (if possible) where you're looking, so look at the floor :)
 
IT IS WORKING!!!

bind "b" "npc_create npc_turret_floor"

This is working now! Thank you!

But there is a problem: These turrets aren't friendly! They are attacking me and no combines! How can I make these turrets come friendly?
 
Limbi said:
IT IS WORKING!!!

bind "b" "npc_create npc_turret_floor"

This is working now! Thank you!

But there is a problem: These turrets aren't friendly! They are attacking me and no combines! How can I make these turrets come friendly?

No idea?? Please!!
 
I'm interested in this too.
It would be so fun to play around with some allied turrets !

*BUMP*
 
Actually killing your fellow resistance figthers should prove to be quite fun aswell.

Maybe you can hook up some long pointy things and then... yes... yes.....
 
Maybe its like the Grav Gun, load up a save where the turrets are friendly and try spawning them.
 
@simonomis: Already tried... Not working. There must be an another name for the friendly turrets. Mappers also have no idea?
 
Thanks! Here the ent_info list for npc_turret_floor.
Any idea now? Mappers?

I can use these information for ent_fire npc_turret_floor [action] [value]

] ent_info npc_turret_floor
output: OnDeploy
output: OnRetire
output: OnTipped
output: OnPhysGunPickup
output: OnPhysGunDrop
output: OnDamaged
output: OnDeath
output: OnHalfHealth
output: OnFoundEnemy
output: OnLostEnemyLOS
output: OnLostEnemy
output: OnFoundPlayer
output: OnLostPlayerLOS
output: OnLostPlayer
output: OnHearWorld
output: OnHearPlayer
output: OnHearCombat
output: OnDamagedByPlayer
output: OnDamagedByPlayerSquad
output: OnDenyCommanderUse
output: OnRappelTouchdown
output: OnWake
output: OnIgnite
output: OnUser1
output: OnUser2
output: OnUser3
output: OnUser4
input: Toggle
input: Enable
input: Disable
input: SetRelationship
input: SetHealth
input: BeginRappel
input: SetSquad
input: Wake
input: ForgetEntity
input: IgnoreDangerSounds
input: Break
input: StartScripting
input: StopScripting
input: GagEnable
input: GagDisable
input: physdamagescale
input: KilledNPC
input: skin
input: SetBodyGroup
input: Ignite
input: SetLightingOriginHack
input: TeamNum
input: SetTeam
input: Kill
input: KillHierarchy
input: Use
input: Alpha
input: Color
input: SetParent
input: SetParentAttachment
input: ClearParent
input: SetDamageFilter
input: EnableDamageForces
input: DisableDamageForces
input: DispatchEffect
input: DispatchResponse
input: AddContext
input: RemoveContext
input: ClearContext
input: DisableShadow
input: EnableShadow
input: AddOutput
input: FireUser1
input: FireUser2
input: FireUser3
input: FireUser4

How can I make, that the turret will not shot on me? Can some1 test some commands? I don't understand some words in this list.
 
Hmm, "SetRelationship" sounds promising... obviously a global variable of some sort. We'll have to do some experimenting!
 
Limbi said:
IT IS WORKING!!!

bind "b" "npc_create npc_turret_floor"

This is working now! Thank you!

But there is a problem: These turrets aren't friendly! They are attacking me and no combines! How can I make these turrets come friendly?

Why was this command not working (crashing) and now it is? What changed?

I also want friendly turrets!
 
It's all to do with sound caching- in my experience, if you spawn a turret with give it always crashes, but if you spawn with npc_create it'll only crash in the rare instance that the relevant sound (for the turret hitting the floor) isn't precached. With npc_create, a falling turret is near-impossible to produce anyway...
 
Still lost on how to make them friendy i ahve tried


ent_fire npc_turret_floor SetTeam 1 1
ent_fire npc_turret_floor SetTeam 2 1
ent_fire npc_turret_floor SetTeam 0 1

ent_fire npc_turret_floor TeamNum 0 1
ent_fire npc_turret_floor TeamNum 2 1
ent_fire npc_turret_floor TeamNum 1 1

ent_fire npc_turret SetRelationship 0 1
ent_fire npc_turret SetRelationship 2 1
ent_fire npc_turret SetRelationship 1 1

Does anyone know the values for these?
 
We have perhaps to wait until some more details come out of this game...
 
I found a new entity - show - command: ent_show_response_criteria (or something like this).

Look to a turret and try this command! How can I change these values?

Please! Test some more thinks with the turrets! I do it all the time!

The entityname of the friendly turrets is "turret_buddy". So How can I change an entityname?
 
If anyone wants to know how to make NPCs friendly, here's how it works:
The first thing you have to do is make the NPC an entity(e.g. looking at a turret and typing "ent_setname turret").
Next, you can change it's relationship status in relation to any other type of entity, for example, if you want to make a turret named "turret" like you, you would put "ent_fire turret setrelationship "player d_li"".
In this case "turret" is the entity you are applying it to,"player" is what entity the relationship is relevant to, and "d_li" is the relationship itself. Note that "d_li" is a positive relationship while "d_ht" is a negative one (li = like, ht = hate).
I actually have a small script that I wrote to set the NPC you're looking at's name to pet, and makes it like all the NPCs that you do while also hating every NPC that would attack you. Here it is if you're interested:

ent_setname pet;wait;ent_fire pet setrelationship "player d_li";ent_fire pet setrelationship "npc_monk d_li";ent;ent_fire pet setrelationship "npc_citizen d_li";ent_fire pet setrelationship "npc_alyx d_li";ent_fire pet setrelationship "npc_barney d_li";ent_fire pet setrelationship "npc_kleiner d_li";ent_fire pet setrelationship "npc_mossman d_li";ent_fire pet setrelationship "npc_vortigaunt d_li";ent_fire npc_citizen setrelationship "pet d_li";ent_fire npc_alyx setrelationship "pet d_li";ent_fire npc_barney setrelationship "pet d_li";ent_fire npc_mossman setrelationship "pet d_li";ent_fire npc_vortigaunt setrelationship "pet d_li";ent_fire npc_eli setrelationship "pet d_li";ent_fire npc_kleiner setrelationship "pet d_li";ent_fire pet setrelationship “npc_metropolice d_ht”;ent_fire pet setrelationship “npc_combine_s d_ht”;ent_fire pet setrelationship “npc_breen d_ht”;ent_fire pet setrelationship “npc_antlion d_ht”;ent_fire pet setrelationship “npc_antlionguard d_ht”;ent_fire pet setrelationship “npc_zombie d_ht";ent_fire pet setrelationship “npc_poisonzombie d_ht";ent_fire pet setrelationship “npc_fastzombie d_ht";ent_fire pet setrelationship “npc_headcrab d_ht";ent_fire pet setrelationship “npc_headcrab_black d_ht";ent_fire pet setrelationship “npc_headcrab_fast d_ht";ent_fire pet setrelationship “npc_rollermine d_ht";ent_fire pet setrelationship “npc_sniper d_ht";ent_fire pet setrelationship “npc_stalker d_ht";ent_fire pet setrelationship “npc_strider d_ht";ent_fire pet setrelationship “npc_turret_floor d_ht";ent_fire pet setrelationship “npc_turret_ceiling d_ht";ent_fire pet setrelationship “npc_zombie_torso d_ht";ent_fire pet setrelationship “npc_zombie_fast_torso d_ht";ent_fire pet setrelationship “npc_hunter d_ht";ent_fire pet setrelationship “npc_barnacle d_ht"

Hope this helps people! :)
 
Back
Top