PDA

View Full Version : Add a turret to my location - Possible?


Limbi
24-11-2004, 02:11 AM
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!

Snowknight26
24-11-2004, 03:19 AM
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)

Edcrab
24-11-2004, 03:24 AM
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.

Limbi
24-11-2004, 12:41 PM
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!

Clavius
24-11-2004, 01:01 PM
How about trying it with noclip on? thats the way it works in Ut2004 :rolleyes: just a tought.

Limbi
24-11-2004, 01:48 PM
Already tried with noclip. Didn't work.

chriso20
24-11-2004, 02:16 PM
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 :)

Limbi
24-11-2004, 02:18 PM
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?

chriso20
24-11-2004, 02:29 PM
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 :)

Limbi
24-11-2004, 02:49 PM
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
24-11-2004, 06:14 PM
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!!

Incoming
24-11-2004, 08:52 PM
I'm interested in this too.
It would be so fun to play around with some allied turrets !

*BUMP*

Dead-Inside
24-11-2004, 08:55 PM
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.....

SimonomiS
24-11-2004, 08:56 PM
Maybe its like the Grav Gun, load up a save where the turrets are friendly and try spawning them.

Limbi
24-11-2004, 10:18 PM
@simonomis: Already tried... Not working. There must be an another name for the friendly turrets. Mappers also have no idea?

Incoming
25-11-2004, 12:03 AM
If you need to find out the name of those "friendly" turrets, maybe the information in this post - made by MagicalMonkey (http://www.halflife2.net/forums/showpost.php?p=1023829&postcount=148) could be of some help ?

Limbi
25-11-2004, 02:04 AM
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.

Edcrab
25-11-2004, 02:13 AM
Hmm, "SetRelationship" sounds promising... obviously a global variable of some sort. We'll have to do some experimenting!

Acert93
25-11-2004, 02:22 AM
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!

Edcrab
25-11-2004, 02:27 AM
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...

Limbi
25-11-2004, 06:11 PM
Did any1 some experiments? I'm going to do some next hour.

DieScreaming
25-11-2004, 06:40 PM
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?

Incoming
26-11-2004, 07:45 AM
*bump*

Limbi
26-11-2004, 05:00 PM
We have perhaps to wait until some more details come out of this game...

Limbi
27-11-2004, 02:06 AM
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?

Limbi
27-11-2004, 02:32 AM
Any idea?

MagicalMonkey
27-11-2004, 12:44 PM
ent_setname whatever

jamesko20
27-11-2004, 03:06 PM
It would be cool if this worked :)