In fact I found this InstallGlobalChangeCallback but can't use it coz I'm
not able to get this alias as a ConCommand. There's probably somethiing
different to a standard ConCommand.

J.

2010/4/9 Janek <[email protected]>

> I try to find where this callback could be hook for any alias but didn't
> succeed ;-( Still searching.
>
> 2010/4/9 Skillet <[email protected]>
>
> I don't know if checking at "runtime" whether commands are being executed
>> in
>> a batch as an alias command is possible but it certainly is possible to
>> change the callback for the engine alias ConCommand so you can check the
>> contents before it is fed to the engine.  If you're trying to disallow the
>> use of particular primitive commands in aliases, that's the way to go.
>>
>> On Thu, Apr 8, 2010 at 4:41 PM, Janek <[email protected]> wrote:
>>
>> > Hi,
>> >
>> > In Source, you can write alias in autoexec.cfg file ala : alias
>> > "name_of_alias" "cmd1; cmd2; cmd3".
>> >
>> > I'd like to be able to check each command in the alias when this alias
>> is
>> > executed. I thought it was possible by studying pszCurrentBinding in int
>> > CInput::KeyEvent( int down, ButtonCode_t code, const char
>> > *pszCurrentBinding
>> > ) in in_main.cpp but it failt as pszCurrentBinding is containing the
>> alias
>> > "name_of_alias" and not the primitive command.
>> > As it is returning 1, it is up to the engine to process this command. I
>> > imagine that the engine is able to properly parse the primitive
>> commands.
>> > I'd like to know if there is an other location to get these primitive
>> > commands. How would you proceed ?
>> >
>> > Thank you in advance for your help.
>> >
>> > -------------------
>> > j...@nek
>> > _______________________________________________
>> > To unsubscribe, edit your list preferences, or view the list archives,
>> > please visit:
>> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
>> >
>> >
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> --
> -------------------
> j...@nek
>



-- 
-------------------
j...@nek
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to