Binding keys to say stuff in teamsay

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Binding keys to say stuff in teamsay

Post by Bashe »

All right, I want to bind some sayings to certain keys. I go like this, but it doesn't work:

bind kp0 say_team "I've got the flag"

It won't do anything when I press the key 0 on the far right side of the keyboard. What do I have to do to make it actually say the whole thing and not just one word?
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

It seems it is just like the hud messages in ACS. You have to use \ in front of the quotes. Like this:

bind kp0 "say_team \"I've got the flag\""
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

wrong, it's like this.

bind kp0 "say_team I've got the flag"
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Post by Bashe »

That's not right, either. They didn't work.
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

bind kp0 "sayteam \"I got the flag!"\"?
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

Hmm... Odd. :? Mine worked for me. I tested it before I posted it.
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Post by Bashe »

Well, it works for Zdoom, but I actually want it to work with Zdaemon, which is like Zdoom 1.23. Is there a way to do that with Zdaemon? Viper's method does not work in that.
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

Good luck getting anything to work with Zdaemon.
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Post by Bashe »

Damn!
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Can't you just put the binds into the ini?
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

Like he said, he is trying to do this with Zdaemon, wich is such an old version of zdoom, only made buggier and shittier, and alot of zdoom stuff tends to have issues in it. Get Skulltag!
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Post by Bashe »

I've got that, but it tends to be unpopulated half the damn time.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Oh, whoops, didn't read the whole thing, I see the problem now... ZDaemon uses the old ZDoom with the i_remapkeypad function in it, which when turned on always interprets the numeric keypad inputs as their non-numeric values.

So you've got two options:

1) In the console, type

Code: Select all

i_remapkeypad 0
and do what cutmanmike said.

OR

2) In the console, type

Code: Select all

bind ins "say_team I've got the flag!"
and leave i_remapkeypad as true. The second option will override any other bind you had set to the "real" Insert key, however.
User avatar
Bashe
Posts: 1680
Joined: Mon Nov 10, 2003 11:32 am
Location: Ohio
Contact:

Post by Bashe »

Vaecrius wrote:Oh, whoops, didn't read the whole thing, I see the problem now... ZDaemon uses the old ZDoom with the i_remapkeypad function in it, which when turned on always interprets the numeric keypad inputs as their non-numeric values.

So you've got two options:

1) In the console, type

Code: Select all

i_remapkeypad 0
and do what cutmanmike said.
That's what I did, but when I bound the text to a key in teamsay mode, it still comes up as a normal message (not red).
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Have you tested this to see if the other team really doesn't see it? Like, start up a game with someone, join opposite teams, hit the key, join the same team, hit the key, etc.?
Post Reply

Return to “General”