OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: KTottE 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?
-
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.
-
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
-
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.
-
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.
-
Nope, that sounds quite impossible via scripting. Maybe you could look in some of the bin resources (read, make a mod out of it).
-
Since it seems impossible to disable someone from chatting without disabling user input completely, I'll just have to do a work-around.