Turrets that dont kill you
Quote from Spam Nugget on September 15, 2011, 7:59 amI was wondering if anyone could help me, I need an unusual turret for part of a map im making.
Basically, I need it to open up like its going to attack, but not. It also needs to follow the player with its laser like they normally do, and then retract on command. Ive experimented with placing walls of varying textures (invisible, nodraw, blockbullets, etc.) in front of the turrets but none suffice. (the player cant get to the turrets anyway) Ive tried playing around with options for the entity, but the closest I can come is the out of ammo flag, which does everything required but has a flashing laser instead of a steady one. Basically, im thinking now that im going to have to play around with code, which i have no experience with (and in fact I cant even find the relevant codes)
So if anyone here can help me it would me much appreciated.
EDIT: also, i dont know if this is relevant, but I will want several, and I dont want them to talk.
I was wondering if anyone could help me, I need an unusual turret for part of a map im making.
Basically, I need it to open up like its going to attack, but not. It also needs to follow the player with its laser like they normally do, and then retract on command. Ive experimented with placing walls of varying textures (invisible, nodraw, blockbullets, etc.) in front of the turrets but none suffice. (the player cant get to the turrets anyway) Ive tried playing around with options for the entity, but the closest I can come is the out of ammo flag, which does everything required but has a flashing laser instead of a steady one. Basically, im thinking now that im going to have to play around with code, which i have no experience with (and in fact I cant even find the relevant codes
)
So if anyone here can help me it would me much appreciated.
EDIT: also, i dont know if this is relevant, but I will want several, and I dont want them to talk.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from ChickenMobile on September 15, 2011, 9:25 amWell obviously you've been putting the wrong texture in. Try BlockLOS (Block Line Of Sight). This will make the turret not be able to shoot you, however I do not know if they open up to attack.
P.S. Isn't there a flag on the turrets that make them have no bullets? Or more importantly: does this work?
Well obviously you've been putting the wrong texture in. Try BlockLOS (Block Line Of Sight). This will make the turret not be able to shoot you, however I do not know if they open up to attack.
P.S. Isn't there a flag on the turrets that make them have no bullets? Or more importantly: does this work?
Quote from satchmo on September 15, 2011, 9:31 amAs the original poster said, he does not like the "out of ammo" option because the laser flashes.
But I think that may be the best option for him.
As the original poster said, he does not like the "out of ammo" option because the laser flashes.
But I think that may be the best option for him.
Vengeance
Olympic
[SP] Interception
Interception PeTI
Herman
Uprise
Unified
Quote from Rubrica on September 15, 2011, 12:14 pmI don't know if this would work, but there is a 'citizen modified (friendly)' flag on the turret entity.
I don't know if this would work, but there is a 'citizen modified (friendly)' flag on the turret entity.
Quote from satchmo on September 15, 2011, 3:04 pmRubrica wrote:I don't know if this would work, but there is a 'citizen modified (friendly)' flag on the turret entity.I tried that before. The "friendly" turret would just sit there silently, doing nothing. The laser would be on, but it wouldn't track the player.
Actually, it would be equivalent of a normal turret, except that the player would appear invisible to it.
I tried that before. The "friendly" turret would just sit there silently, doing nothing. The laser would be on, but it wouldn't track the player.
Actually, it would be equivalent of a normal turret, except that the player would appear invisible to it.
Vengeance
Olympic
[SP] Interception
Interception PeTI
Herman
Uprise
Unified
Quote from Random on September 15, 2011, 3:38 pmWhat exactly goes wrong when you use the blockbullets texture? Is it because it blocks the eye-laser? If so, I agree the out-of-ammo flag is probably the best fit.
And to have them not talk, use the "turret is gagged" option.
What exactly goes wrong when you use the blockbullets texture? Is it because it blocks the eye-laser? If so, I agree the out-of-ammo flag is probably the best fit.
And to have them not talk, use the "turret is gagged" option.
Quote from Spam Nugget on September 15, 2011, 7:38 pmyeah,, ive tried blockLOS and blockbullets-the former means the turret doesnt open up or follow you (as it cant see you) the latter blocks the eye laser. I think i may have found a soloution though, in making a wall of blockbullets but with a small hole for the laser to go through. i just have to tweak the size a bit to get the appropriate field of view for the turret and to make a hole it cant shoot through.
thanks for your suggestions.
yeah,, ive tried blockLOS and blockbullets-the former means the turret doesnt open up or follow you (as it cant see you) the latter blocks the eye laser. I think i may have found a soloution though, in making a wall of blockbullets but with a small hole for the laser to go through. i just have to tweak the size a bit to get the appropriate field of view for the turret and to make a hole it cant shoot through.
thanks for your suggestions.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from spongylover123 on September 15, 2011, 8:00 pmSpam Nugget wrote:yeah,, ive tried blockLOS and blockbullets-the former means the turret doesnt open up or follow you (as it cant see you) the latter blocks the eye laser. I think i may have found a soloution though, in making a wall of blockbullets but with a small hole for the laser to go through. i just have to tweak the size a bit to get the appropriate field of view for the turret and to make a hole it cant shoot through.
thanks for your suggestions.Is this turret a character (has a role)?
You can set the maximum range to 0, it won't track you like you want, but it's laser isn't going to flicker, anyway, just an idea
thanks for your suggestions.
Is this turret a character (has a role)?
You can set the maximum range to 0, it won't track you like you want, but it's laser isn't going to flicker, anyway, just an idea
Quote from Spam Nugget on September 15, 2011, 8:11 pmspongylover123 wrote:Spam Nugget wrote:yeah,, ive tried blockLOS and blockbullets-the former means the turret doesnt open up or follow you (as it cant see you) the latter blocks the eye laser. I think i may have found a soloution though, in making a wall of blockbullets but with a small hole for the laser to go through. i just have to tweak the size a bit to get the appropriate field of view for the turret and to make a hole it cant shoot through.
thanks for your suggestions.Is this turret a character (has a role)?
You can set the maximum range to 1, (anyway, just an idea)Thanks for the idea, but the turret just ignores you completely. And the turrets are kind of a charector i guess, I juust want a bunch of them sitting there looking menacing and ready to kill you while GLaDOS will talk to the player.
thanks for your suggestions.
Is this turret a character (has a role)?
You can set the maximum range to 1, (anyway, just an idea)
Thanks for the idea, but the turret just ignores you completely. And the turrets are kind of a charector i guess, I juust want a bunch of them sitting there looking menacing and ready to kill you while GLaDOS will talk to the player.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from spongylover123 on September 15, 2011, 8:26 pmYou mean like at [spoiler]The end when you ride up the elevator and the door opens and 4 turrets track you and then play a song?[/spoiler]
You may need to edit the models and the turret scripts, because the laser comes separately
You mean like at
You may need to edit the models and the turret scripts, because the laser comes separately
