Trigger Console Commands? Created 19 years ago2005-05-05 05:11:50 UTC by esmajor esmajor

Created 19 years ago2005-05-05 05:11:50 UTC by esmajor esmajor

Posted 19 years ago2005-05-05 05:11:50 UTC Post #107513
Is there a way to set up a trigger to carry out console commands... say an impulse code or an mat code?
Posted 19 years ago2005-05-05 05:13:07 UTC Post #107515
No.

You can bind console commands to keys though...
AJ AJGlorious Overlord
Posted 19 years ago2005-05-05 05:20:34 UTC Post #107516
i thought there was an entity for console commands? i cant remember wat it's called (i have never used it so i'm only guessing that its what it does) if not then just use what anthony says by using the "bind" command in the console.

example: "bullet time"

bind key "bullettime" "key" being whatever key u want

theres more to setting bullet time because u have to set the timescale for when the key is pressed and the timescale to revert to when u let go of the key but thats not the issue here :P
Posted 19 years ago2005-05-05 05:20:54 UTC Post #107517
Yeah I have a couple binded to my mouse buttons (not the mouse1 and 2, I have 2 other buttons)
Posted 19 years ago2005-05-05 05:22:41 UTC Post #107520
in that case my info was worthless to u : sowwie
Posted 19 years ago2005-05-05 12:33:39 UTC Post #107601
There is an entity for command-firing, Ant :|?

It's info_clientcommand, I believe. info_pointcommand? Something like that. I heard Rabid mention it awhile ago.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-05-05 12:37:42 UTC Post #107604
So for example for half-life 1, sorry, but this thread had been started, so needed just a quick answer..
It would be bind key "cvar" "B" ???
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 19 years ago2005-05-05 12:50:17 UTC Post #107614
Damn seventh beat me to it :(
Habboi HabboiSticky White Love Glue
Posted 19 years ago2005-05-05 12:57:40 UTC Post #107617
I don't think you use two sets of quote marks, Mr. B, as so:

bind kp_downarrow "sv_cheats 1"

Or, for example:

bind kp_downarrow "sv_cheats 1;noclip"

Which would execute those two consecutively. There's a "wait" command, too, which, suprise, waits for a moment before proceeding. The wait length is pretty short though, so you'll need several for anything useful.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-05-05 13:05:19 UTC Post #107621
thanks seventh. Thats all I needed to know. :D
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 19 years ago2005-05-05 16:04:57 UTC Post #107664
There is such an entity that allows map triggers to fire console commands, on the client or server side.

It's point_clientcommand, or if you want to run something as a server var, point_servercommand. (Keep in mind cheat commands won't work if the server has sv_cheats defined as 0).
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2005-05-05 22:02:41 UTC Post #107684
Seventh...

bind "m" "impulse 102"

YOu have to put the quotes I'm pretty sure. So far it works for me.
Posted 19 years ago2005-05-05 23:26:17 UTC Post #107689
With console commands that have spaces, you have to, IIRC.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 19 years ago2005-05-06 01:34:34 UTC Post #107698
Yeah, you do, otherwise it ditches the last bit, but there are no key names with spaces, so the quotes are unnecessary there.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2005-05-18 05:44:09 UTC Post #109952
i noticed with point_clientcommand that its just an entity with no flags, and only a "name" value. I suppose it takes an input with a paremeter override being the command you want?
Posted 19 years ago2005-05-18 05:53:17 UTC Post #109955
Oh. Excuse my incorrect information then.
AJ AJGlorious Overlord
You must be logged in to post a response.