Home   Help Search Login Register  

Author Topic: Chatting and MP, scripting possible?  (Read 1620 times)

0 Members and 3 Guests are viewing this topic.

Offline KTottE

  • Former Staff
  • ****
Chatting and MP, scripting possible?
« on: 10 Jul 2003, 20:30:47 »
Well, what I'm doing is I'm creating a TACBE script (possibly an addon if I get around to it) which will, when activated, relay emergency information back to HQ about your whereabouts and status (health for instance), this is of course to be used mostly by shot down pilots and such. Now, since I don't want them to be able to tell everyone where they are over the chat, I was wondering if anyone knew what the MP chat was related to (sideChat perhaps?) and if it could be switched off for individual players.

Anyone?
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Chatting and MP, scripting possible?
« Reply #1 on: 10 Jul 2003, 22:59:00 »
Not sure if it is possible.  1 way would be to disableuserinput true but then nobody could do anything until you set it to false.  That is probably not the desired result, and I don't know if will stop the voice over net either, but it does stop the typing chat, I use it in cutscenes all the time.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Chatting and MP, scripting possible?
« Reply #2 on: 11 Jul 2003, 16:00:48 »
all you would need is to add an addaction command to be selected by the player in his pulldown menu.
Sending back info on health, location, ammunition etc is all possible through scripting. And yes you can do it through side, vehicle, groupchat, or even just to the commander, if say for instance you have named the commander player W1
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:Chatting and MP, scripting possible?
« Reply #3 on: 11 Jul 2003, 17:31:45 »
depends on what you mean.
If you mean: give the player some scripted commands that result in sidechats, yeah sure.  The sidechat command is local-only, so you can publicvariable some indices (like: player transmitting, and a number corresponding to a message), and have a monitor script that excludes certain players.

If you mean, allow the player to use the chat buffer and talk to specific players, the short answer is no.
THe longer answer is, absolutely yes.  Bn880's CoC_NetworkServices available at www.thechainofcommand.com has a demonstration application a dialog that allows players to transmit private text messages to individual other players via the laptop.
Dinger/Cfit

Offline KTottE

  • Former Staff
  • ****
Re:Chatting and MP, scripting possible?
« Reply #4 on: 11 Jul 2003, 17:48:24 »
I think I've made a mistake by explaining exactly what I was going to do.
You seem to have missed the important part:

Now, since I don't want them to be able to tell everyone where they are over the chat, I was wondering if anyone knew what the MP chat was related to (sideChat perhaps?) and if it could be switched off for individual players.

Or in the short version: Can I disable players from chatting?

And just disable the chatting, not disableInput. I have already got the TACBE working, and will sort the actual broadcast later today. Am also thinking about taking some code from toady's Operation Lo-jack, so it will beep instead of sideChat a message.

So, is it possible to disable chatting for just one player?
Disable chatting completely that is.

"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Tactician

  • Guest
Re:Chatting and MP, scripting possible?
« Reply #5 on: 11 Jul 2003, 20:51:39 »
Nope, that sounds quite impossible via scripting.  Maybe you could look in some of the bin resources (read, make a mod out of it).

Offline KTottE

  • Former Staff
  • ****
Re:Chatting and MP, scripting possible?
« Reply #6 on: 12 Jul 2003, 11:18:47 »
Since it seems impossible to disable someone from chatting without disabling user input completely, I'll just have to do a work-around.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"