Author Topic: a little idea i have to enable a 1 button Clan/Group message  (Read 3310 times)

a Turret

  • Posts: 112
  • Turrets: +1/-1
a little idea i have to enable a 1 button Clan/Group message
« on: October 22, 2006, 11:05:44 pm »
ok i was looking through the default binds to try and find a way to make a clan chat button(kind of like how if you press T, you can type and what ever you enter it shows to everyone, so i tried like
bind g "m [com] messagemode" (sence messagemode = like pressing the T button) and then i tried
bind g "m [com] ""messagemode"

 and others like that to see if maybe i could just make itr where what ever i type in will send to all [COM] pple, but no luck, just send the message "messagemode" to every one in my clan..

so pretty much im thinking only possible way is to make a new type of messagemode, (sence theres 4 messagemodes atm, 1 for team,all,and 2 others)

so what file states what the messagemode does, and if its possible, how do i edit it.

the reason why im doing this is cause it gets annoying having to open console and type /m com <message> everytime.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
a little idea i have to enable a 1 button Clan/Group message
« Reply #1 on: October 24, 2006, 05:27:04 pm »
Try src/client/cl_console.c at about line 86

BTW, just skimming the code (and assuming these names are descriptive for what they do):
messagemode sends to everyone
messagemode2 sends to your team
messagemode3 sends to the person you are currently looking at (your crosshair is pointed at)
messagemode4 sends to the last person who attacked you

I don't know if the last two work properly on Tremulous (or ever worked properly)
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

Stof

  • Posts: 1343
  • Turrets: +1/-1
a little idea i have to enable a 1 button Clan/Group message
« Reply #2 on: October 24, 2006, 05:29:30 pm »
They work.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

a Turret

  • Posts: 112
  • Turrets: +1/-1
a little idea i have to enable a 1 button Clan/Group message
« Reply #3 on: October 25, 2006, 01:04:56 am »
Quote from: "Undeference"
Try src/client/cl_console.c at about line 86

BTW, just skimming the code (and assuming these names are descriptive for what they do):
messagemode sends to everyone
messagemode2 sends to your team
messagemode3 sends to the person you are currently looking at (your crosshair is pointed at)
messagemode4 sends to the last person who attacked you

I don't know if the last two work properly on Tremulous (or ever worked properly)


no what im wondering is how they created the "messagemode#" i already know them. like what file they went to, and entered what the command does, it must of came from some where

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
a little idea i have to enable a 1 button Clan/Group message
« Reply #4 on: October 25, 2006, 05:11:20 am »
messagemode3 and messagemore4 use vm functions to work out your target and last attacker respectively, so they are basically out of the question (in terms of a simple bind). Probably the best you could come is hacking messagemode to display arguments in the field. E.g.,
/messagemode /t [com]
would bring up the normal message thing with "/t [com]" already entered.

(Possibly look at using G_SayConcatArgs)
Of course this may mean using your own binaries/qvm/shared libraries, which probably isn't exactly what you want.

[Edit]Though, as Ksempac noted, it would be easy enough for someone to add [com] to their name and get your private messages.[/Edit]
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

a Turret

  • Posts: 112
  • Turrets: +1/-1
a little idea i have to enable a 1 button Clan/Group message
« Reply #5 on: October 25, 2006, 10:13:49 pm »
Quote from: "Undeference"
messagemode3 and messagemore4 use vm functions to work out your target and last attacker respectively, so they are basically out of the question (in terms of a simple bind). Probably the best you could come is hacking messagemode to display arguments in the field. E.g.,
/messagemode /t [com]
would bring up the normal message thing with "/t [com]" already entered.

(Possibly look at using G_SayConcatArgs)
Of course this may mean using your own binaries/qvm/shared libraries, which probably isn't exactly what you want.

[Edit]Though, as Ksempac noted, it would be easy enough for someone to add [com] to their name and get your private messages.[/Edit]


every one in my clan does have [COM], i just hate entering /m [com] everytime :P (lazy ftw)

PwNz!

  • Posts: 161
  • Turrets: +0/-0
a little idea i have to enable a 1 button Clan/Group message
« Reply #6 on: November 08, 2006, 06:29:41 am »
Quote from: "Undeference"
messagemode3 and messagemore4 use vm functions to work out your target and last attacker respectively, so they are basically out of the question (in terms of a simple bind). Probably the best you could come is hacking messagemode to display arguments in the field. E.g.,
/messagemode /t [com]
would bring up the normal message thing with "/t [com]" already entered.

(Possibly look at using G_SayConcatArgs)
Of course this may mean using your own binaries/qvm/shared libraries, which probably isn't exactly what you want.

[Edit]Though, as Ksempac noted, it would be easy enough for someone to add [com] to their name and get your private messages.[/Edit]


Doesent work. Im on a mac so it might differ.
r either hacking or asian! ~V//Arch_Enemy

Why do we kill people who are killing people to show that killing people is wrong?  ~Holly Near

To kill a man is not to defend a doctrine, but to kill a man.  ~Michael Servetus