Moving targets

General mapping discussions
Post Reply
User avatar
Reaper{DKMs}
Posts: 12
Joined: Mon Sep 26, 2011 4:33 am

Moving targets

Post by Reaper{DKMs} »

Hello all,
I am currently working on a map with firing ranges. In the firing range section are 8 ranges. Range one is open. But range 2 - 8 are behind closed doors. When you go to range 1 and shot the bulls-eye, that set up as a button with health 1. When you shot it, it opens the next door. so on and so forth.

Now my question is, I want to make a range with moving targets!!!

Samething, the bulls-eye is a button and moving. Is this possible and how?

User avatar
johnnyenglish
Space cake
Posts: 898
Joined: Wed Aug 17, 2011 9:23 am
Location: Nottingham, England

Re: Moving targets

Post by johnnyenglish »

I dont think you can do this because you cannot put an entity on another entity... but I look forward to someone suggesting a novel idea.

User avatar
Reaper{DKMs}
Posts: 12
Joined: Mon Sep 26, 2011 4:33 am

Re: Moving targets

Post by Reaper{DKMs} »

Yea I didn't think so. But I was kinda hoping, lol :D

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: Moving targets

Post by Rayne »

Reaper{DKMs} wrote:Yea I didn't think so. But I was kinda hoping, lol :D

well you could......no it wont work, or maybe.....nah that wont work either....sorry but i can't think of a way this can be done.
I got one idea that more than likely wont work.
Make a target a 2D image. Place the target on the right side of a 1024x256 canvas (canvas width determines the distance target will travel so you have to adjust it). Add alpha channel to the image, so you mask out everything but the target.
Now I got absolutely no idea if this would work. But if you apply a shader to this image that will make parts of the image painted black by the alpha channel transparent, add surfaceparm missile clip to it, i think the transparent area should not stop bullets but the target itself will (again i have no clue if this will work, probably wont).
Add tcmod scroll to the shader, so the target moves in desired direction, and i think you MIGHT have a working moving target that can be used for a button.

User avatar
v3nd3tta
Posts: 82
Joined: Thu Aug 18, 2011 12:49 pm
Location: Germany
Contact:

Re: Moving targets

Post by v3nd3tta »

move the cover in front of a huge button around, that would work.

User avatar
ValkoVer
Posts: 176
Joined: Mon Aug 22, 2011 11:01 am
Location: Poland

Re: Moving targets

Post by ValkoVer »

Image

bludshot
Posts: 111
Joined: Fri Sep 23, 2011 12:12 am

Re: Moving targets

Post by bludshot »

I'm not sure I really understand the image above, but here's is my idea:

Instead of a small bullseye target, make a large red wall (solid color would work best for the illusion) and if you shoot this wall anywhere you have hit the target. Then, in front of that wall, make another wall that moves around, and put a hole in that wall. You can do the graphics of the map in a tricky illusion way that makes it look to the player that there is a red circle moving around :)

User avatar
Reaper{DKMs}
Posts: 12
Joined: Mon Sep 26, 2011 4:33 am

Re: Moving targets

Post by Reaper{DKMs} »

Dude, thats genius! Thanks everyone

Teerasas
Posts: 6
Joined: Wed Sep 21, 2011 6:29 pm

Re: Moving targets

Post by Teerasas »

lol, ive made that: ive made some normal non- moving targets with func_buttons and made the room the players are in move, and that worked alrite, noone noticed it was the room actually moving

User avatar
theRipper
Posts: 223
Joined: Tue Aug 30, 2011 1:57 pm
Contact:

Re: Moving targets

Post by theRipper »

clever. n1
Image

Post Reply