FORUM
MANUAL
GET TREMULOUS
Tremulous forum
May 24, 2013, 09:25:41 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Come Chat with us live! Learn how
HERE!
Home
Help
Search
Login
Register
T R E M U L O U S
>
General
>
General Discussion
>
a little idea i have to enable a 1 button Clan/Group message
Pages: [
1
]
Go Down
Print
Author
Topic: a little idea i have to enable a 1 button Clan/Group message (Read 1336 times)
a Turret
Turrets: +1/-1
Posts: 112
a little idea i have to enable a 1 button Clan/Group message
«
on:
October 22, 2006, 10: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.
Logged
Undeference
Tremulous Developers
Turrets: +122/-45
Posts: 1207
Ingar and carry on.
a little idea i have to enable a 1 button Clan/Group message
«
Reply #1 on:
October 24, 2006, 04: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)
Logged
Need help?
Ask intelligently.
If you find a solution on your own, please share it so others can benefit.
Quote from: tuple on February 15, 2008, 11:54:10 PM
Thats what we need, helpful players, not more powerful admins.
Looking for more
Tremulous maps
?
Stof
Turrets: +1/-1
Posts: 1344
a little idea i have to enable a 1 button Clan/Group message
«
Reply #2 on:
October 24, 2006, 04:29:30 PM »
They work.
Logged
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
Turrets: +1/-1
Posts: 112
a little idea i have to enable a 1 button Clan/Group message
«
Reply #3 on:
October 25, 2006, 12: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
Logged
Undeference
Tremulous Developers
Turrets: +122/-45
Posts: 1207
Ingar and carry on.
a little idea i have to enable a 1 button Clan/Group message
«
Reply #4 on:
October 25, 2006, 04: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]
Logged
Need help?
Ask intelligently.
If you find a solution on your own, please share it so others can benefit.
Quote from: tuple on February 15, 2008, 11:54:10 PM
Thats what we need, helpful players, not more powerful admins.
Looking for more
Tremulous maps
?
a Turret
Turrets: +1/-1
Posts: 112
a little idea i have to enable a 1 button Clan/Group message
«
Reply #5 on:
October 25, 2006, 09: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
(lazy ftw)
Logged
PwNz!
Turrets: +0/-0
Posts: 161
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.
Logged
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
Pages: [
1
]
Go Up
Print
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> General Discussion
=> Troubleshooting
=> Feedback
=> Official Servers
-----------------------------
Community
-----------------------------
=> Servers
===> Server Admin Contacts
=> Clans
===> Individual Clan Threads
=> Strategies and Tactics
=> Mod Ideas and Desires
=> Off Topic
-----------------------------
Media
-----------------------------
=> Mapping Center
=> Map Releases
=> Modeling Center
=> Other Tremulous Media
-----------------------------
Mods
-----------------------------
=> Modding Center
=> Mod Releases
===> HUDs
===> Gameplay Changing
===> Non-Gameplay Changing
===> Tools and Utilities
Loading...