- Jan 31, 2008
- 234
- 52
So here's what I did, I wanted to get the arrows that show up on the HUD in CTF maps to point towards the mine cart in my map es_cave.
Now the item_teamflag can't be parented to another object, but I found away around that.
- I parented an 'env_entity_maker' to the cart.
- Made a template of an 'item_teamflag', which was set to team blu.
- Made a 'logic_timer' set with a time of 1 second.
- Gave the timer two outputs, one output will delete the 'item_teamflag' that was spawn the second before, the second output will create a new 'item_teamflag' (with the same name as the old one) in a new position (directly below the cart).
It worked perfectly, when playing as blue, the blue arrow would always point towards the cart, at the 'flag' would constantly be deleted and respawned as the cart moved.
However there are two problems;
- The CTF has has two arrows, one for the blu flag, and one for the red flag.
So what I did was put a red flag at the red place (where no one can get it).
So the Blu arrow would point towards the cart, and the red arrow would point towards where the cart had to go (i.e. the red base)
- The second problem, which made it unacceptable imo, was everytime the blu flag was deleted and respawned, the hud arrow would flicker (from arrow to no arrow, then back to arrow), which would become very annoying.
I tried a few methods to get around the flicking, but so far nothing has work.
However if we could fix the flicker, then this setup would work great on escort maps. So if anyone has any ideas on how to make this work, please post them.
Here is a link to my escort cart setup
http://rapidshare.com/files/103453940/es_escort.vmf.html
Download it and have a look how it works.
I try a few more things with my experiments and uploaded a vmf of my setup if anyone wants to have a look.
Thanks
- Spacemonkey
Now the item_teamflag can't be parented to another object, but I found away around that.
- I parented an 'env_entity_maker' to the cart.
- Made a template of an 'item_teamflag', which was set to team blu.
- Made a 'logic_timer' set with a time of 1 second.
- Gave the timer two outputs, one output will delete the 'item_teamflag' that was spawn the second before, the second output will create a new 'item_teamflag' (with the same name as the old one) in a new position (directly below the cart).
It worked perfectly, when playing as blue, the blue arrow would always point towards the cart, at the 'flag' would constantly be deleted and respawned as the cart moved.
However there are two problems;
- The CTF has has two arrows, one for the blu flag, and one for the red flag.
So what I did was put a red flag at the red place (where no one can get it).
So the Blu arrow would point towards the cart, and the red arrow would point towards where the cart had to go (i.e. the red base)
- The second problem, which made it unacceptable imo, was everytime the blu flag was deleted and respawned, the hud arrow would flicker (from arrow to no arrow, then back to arrow), which would become very annoying.
I tried a few methods to get around the flicking, but so far nothing has work.
However if we could fix the flicker, then this setup would work great on escort maps. So if anyone has any ideas on how to make this work, please post them.
Here is a link to my escort cart setup
http://rapidshare.com/files/103453940/es_escort.vmf.html
Download it and have a look how it works.
I try a few more things with my experiments and uploaded a vmf of my setup if anyone wants to have a look.
Thanks
- Spacemonkey