Please or Register to create posts and topics.

Turrets that dont kill you

Page 1 of 3Next

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 :lol: )
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.

Image
I think in terms of boolean variables. Generally, it makes things easier.

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?

?????????????????????????????TWP Releases | My Workshop

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.

I don't know if this would work, but there is a 'citizen modified (friendly)' flag on the turret entity.

Image
ImageImageImageImage
Rubrica 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.

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.

Picture that. In your dreams.
Maps:
SP MonoPortal | Lesson 0
WIP: LaserLock Preview Images

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.

Image
I think in terms of boolean variables. Generally, it makes things easier.
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 0, it won't track you like you want, but it's laser isn't going to flicker, anyway, just an idea

spongylover123 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.

Image
I think in terms of boolean variables. Generally, it makes things easier.

You 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?

You may need to edit the models and the turret scripts, because the laser comes separately

Page 1 of 3Next