Please or Register to create posts and topics.

Two Issues: portal ghosting and key binding

Greetings,

I have created a new (as far as I know) map type and everything in the map works; however, there are two outstanding issues with accessibility:

1. I would like to be able to disable portal ghosting for one linkage_id. Using portal_draw_ghosting disables/enables ghosting for all portal sets. Does anyone know if there is a solution for this? If there isn't, I will completely disable ghosting (not ideal).

2. The map type requires a key binding. My first thought was to use an existing key that isn't used in single player (such the taunt menu key, or ping key) but I cannot find a way to bind to the key that one of those actions is already bound to; I can return the key using 'key_findbinding' but I do not know how to take advantage of the returned value.

Is there a method of key binding that I can use that will not be destructive to the users current binding? If this is completely impossible, I will include a mini faq on key binding in the map's description - obviously not ideal.

I'm open to any solutions/alternatives. Thanks in advance.

Unfortunately, I don't think either of those is possible. You could "bind" the key using something like a game_ui or logic_playerproxy, I suppose, using one of the existing actions such as crouching or jumping.

Falsi sumus crusto!

Well that's unfortunate. The ghosting isn't a huge loss but forcing a manual keybind will probably be too annoying for most players. Perhaps I'll just release my maps as proof-of-concept maps so people won't be as antagonistic about the situation.

I've played around with the game_ui solution but using an existing action doesn't work for what is required.

Thanks anywho.

Why not the "bind" command? (bind h "ent_fire help trigger" or bindtoggle h "portal_draw_ghosting 0")

Not sure if the bind toggle will work for bool convars, but you can attach the bind to an entity that toggles it. Just enter it in a client command OnMapSpawn.

:A Little Higher: :Tornate: :Blue Portals: :Vectronic: :Youtube: :Twitter: : ModDB: :Old Sig:

The more you give, the less appreciated it will be received.
reepblue wrote:
Not sure if the bind toggle will work for bool convars, but you can attach the bind to an entity that toggles it. Just enter it in a client command OnMapSpawn.

The problem isn't being able to bind, it's knowing where to bind: I don't want to be re-binding anything that they (the user) already have bound. And binding ghosting doesn't help at all: the porblem isn't being able to turn ghosting on, it's that it affects all portal linkage_ids.