Search the Community
Showing results for tags 'sidechat'.
Found 2 results
-
My whole life I've been wondering how to use custom callsigns for my squads and my side HQ in OFP. I just came back to game editing to instantly figure it out by opening and analyzing BIS' CONFIG.BIN. I created my own addon where I defined various callsigns. Here's how to do it: Make a config.cpp. Type in: class CfgPatches { class MYCustomGroups { units[] = {}; weapons[] = {}; requiredVersion = 1.28; }; }; class CfgHQIdentities { class EAGLE { name = "EAGLE"; speaker = John; pitch = 1.10; }; class EAGLE_BASE { name = "EAGLE_BASE"; speaker = John; pitch = 1.10; }; class NOGOVA { name = "NOGOVA"; speaker = John; pitch = 1.10; }; class GERONIMO { name = "GERONIMO"; speaker = John; pitch = 1.10; }; class TASMANIAN_DEVIL { name = "TASMANIAN_DEVIL"; speaker = John; pitch = 1.10; }; }; class CfgWorlds { class GroupNameList { letters[] = {"Roman","Nogova","Geronimo","Tasmanian"}; }; class GroupNames { class Roman { name = "Roman"; image = ""; }; class Nogova { name = "Nogova"; image = ""; }; class Geronimo { name = "Geronimo"; image = ""; }; class Tasmanian { name = "Tasmanian"; image = ""; }; }; class GroupColorList { colors[] = {"GroupCustom1","GroupCustom2"}; }; class GroupColors { class GroupCustom1 { name = "Custom1"; image = ""; }; class GroupColors { class GroupCustom2 { name = "Custom2"; image = ""; }; }; }; In CfgHQIdentities we define our custom HQ callsigns. For example instead of using: [east, "base"] sideChat "some text" I can now use my custom callsign: [east, "EAGLE_BASE"] sideChat "some text" You will see EAGLE_BASE displayed instead of PAPA_PEAR. As for the custom group callsigns we first define a list of them and then we define each one. player setGroupId ["Tasmanian", "GroupColor0"]; player sideChat "some text" will display Tamsnian (Playername): some text instead of the usual Alpha Black 1 (Playername): some text You can also add custom colours, though you are not limited to putting a color inside the string, you can put anything you want in it. This is done in the GroupColorList and GroupColors sections. Finally put your config.cpp inside a folder, name the folder the same way you named your class after CfgPatches, turn it into a .pbo file, put it in the addons folder and you're good to go and call your own defined callsigns.
- 2 replies
-
- 2
-
- setgroupid
- sidechat
-
(and 1 more)
Tagged with:
-
Hello. I want players to broadcast to all other players on sideChat when they click on an rscbutton to edit their weapon sway. How is this done? https://community.bistudio.com/wiki/sideChat https://community.bistudio.com/wiki/remoteExec I was reading this https://forums.bistudio.com/topic/150634-sidechat-on-dedicated-servers/ Example: action = "player setCustomAimCoef 0.1; player sidechat 'I set my Weapon Sway to 10%';"; text = "10% Sway"; tooltip = ""; Thank you.