Jump to content

Recommended Posts

gf-earplugs-script-version-10-1_4.png

 

GF Earplugs Script - Mod

 

by

 

GEORGE FLOROS [GR]

 

With key interaction

 

 

Description:

GF Earplugs Script , mute or lower sound , with a key interaction , configurable key bindings.
You are free to do anything but i would like to give me Credits for this!
Simple and easy to use and adapt .
Have Fun !

 


Installation / Usage:

For usage instructions and information of how to use the GF Earplugs Script  , please refer to the included documentation and/or example mission.

Place in your mission the files . There is everything included , in the init.sqf , to copy paste in your mission .

 

 

https://community.bistudio.com/wiki/SQF_syntax
Don't try to open this with the simple notepad.

For everything that is with comment // in front or between /*
means that it is disabled , so there is no need to delete the extra lines.

You can open this ex:
with notepad++
https://notepad-plus-plus.org/

and also use the extra pluggins
(this way will be better , it will give also some certain colours to be able to detect ex. problems )
http://www.armaholic.com/page.php?id=8680

or use any other program for editing .

For the Compilation List of my GF Scripts , you can search in:

https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/

 

 

Notes:

Configurable key bindings and notification available.
The key bindings can be found here:
https://community.bistudio.com/wiki/DIK_KeyCodes

 

 

Credits & Thanks:

Thanks to All script contributors
Thanks to everyone who tries to do the best for this game!
Thanks to BIS for such a great platform .
Thanks to BIS Community and BIS Community Forums .
Thanks to Armaholic Community and Forums .

 

 

Changelog:

 

v2.1
Minor change on the code , to avoid loop.
Thanks to HazJ.
https://forums.bohemia.net/profile/773718-hazj/

 

v2.0
Added a picture notification when earplugs are in.
Added an initPlayerLocal.sqf ,
in order to run the script from there.
Mod Version is now included.

 

v1.0

 

 

Forum topic:
- Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=39897

 


 

Armaholic

download

GF Earplugs Script - Mod

  • Like 3

Share this post


Link to post
Share on other sites

Hello GEORGE, hope you are doing well.

Thank you for your work. You are bringing some cool scripts that I use for my mission.

 

I want to suggest something if you are ok with ?

I know every time script finish with GF is from you. But considering that you have finished script and working for new ones.

Are you planning to make a compilation of your script in one post, but without download link. With a link to the posts that you have already created.

Only to show people that you have other good scripts to use.

And will be easy to see all your work in one post.

 

Thank you

  • Thanks 1

Share this post


Link to post
Share on other sites
44 minutes ago, MisterOth said:

Are you planning to make a compilation of your script in one post

 

 

Hello there MisterOth !

 

I started thinking about it , because right now , there is a number of scripts available and maybe it's not that easy to follow.

 

Everything , can be also found to my profile , at the topics.

 

But generally , it's time to create a topic for theese scripts!

 

1 hour ago, MisterOth said:

I know every time script finish with GF is from you.

 

 

I am also updating my scripts , optimizing some stuff and everything will start with GF from now .

 

 

For anything that you might want feel free to ask , if it's possible to do something for this ,

after all the arma series generally , has a good and helpfull community!

 

 

Thank you Guys , for the whole support !

  • Thanks 1

Share this post


Link to post
Share on other sites

Hello, I like your earplug script. Can you convert it to a PBO file? Or upload it as a template to a creative studio? Although there are other earplug modules in the workshop, it does not support "dynamic scouting" tasks, and I prefer the prompt UI of your script, which would be easier if you could modularize it without having to reset each task。And i am an Asian player. My English is very bad. I hope it will be understood.

  • Thanks 1

Share this post


Link to post
Share on other sites
3 hours ago, Zentreya said:

Can you convert it to a PBO file?

 

Hello there Zentreya !

 

Thank you very much !

 

Generally, i prefere using scripts and not mods , because it's ideal for MP , you just add the script into the mission and everyone will be ok.!

 

I will check ,  if i have time , to make this a mod and i will sent you a message.

 

You can also try by doing this:

 

 

Share this post


Link to post
Share on other sites
4 hours ago, Zentreya said:

a PBO file

 

Hold on i will fix this right now .

I 'm sending you the mod version in private.

  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, GEORGE FLOROS GR said:

Hold on i will fix this right now .

        
I just used it. It worked! 

Thank you very much for spending yourself free time helping me.

Thank you very much. I will continue to follow the other scripts you made on the forum. They are very useful.

Thanks again for your help.

Have a nice day!:don11:

  • Thanks 1

Share this post


Link to post
Share on other sites
9 hours ago, Zentreya said:

I just used it. It worked! 

 

Thank you very much Zentreya !

 

Since you like my work you can click to follow me in oder to get a notification for my posts.

Here:

https://forums.bohemia.net/profile/1141978-george-floros-gr/

Share this post


Link to post
Share on other sites

Hello, I added more than one of your scripts in my task file yesterday, they all work properly, I like them.

But after my friends and I used the earplugs, we often forgot to take them off again, and sometimes at the end of the task we remembered that the earplugs had never been removed, and I knew it was stupid, but it did happen to me, haha.

So can you add an earplug icon for it? Icon display similar to earplugs in EXILE MOD.

When using earplugs, the earplug icon is always displayed on the right side of the screen, and when the earplug is removed, it closes.

Forgive my selfish request. If you canundefinedt update it, I still like it.

Thank you!

  • Thanks 1

Share this post


Link to post
Share on other sites
9 hours ago, Nana1999 said:

can you add an earplug icon for it?

 

Hello there Nana1999 !

 

Thank you also very much !

 

This is a nice idea and you are right about it !

I'll check a little bit on how exacly it would be better but sure it's good to have a continuous displayed notification ( icon ).

 

Share this post


Link to post
Share on other sites
14 hours ago, GEORGE FLOROS GR said:

我会稍微检查一下它会有多好,但确定连续显示通知(图标)是好的。

That's really great. I will wait for the arrival of the new version. Thank you!   :D

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, Nana1999 said:

I will wait

 

Here is a pic.

 

There is an icon added in the right side ,  up.

 

k0Y2dikvQOiBQWg6UERJ9w.png

 

An update , will be soon available !

Share this post


Link to post
Share on other sites
5 hours ago, GEORGE FLOROS GR said:

更新,即将推出!

Yeah! I can't wait to try it with my friends!  thank you !

  • Thanks 1

Share this post


Link to post
Share on other sites
11 hours ago, Nana1999 said:

to try

 

This is finally how it will be :

9Gtd-fD3SMigYsQfNrE2sw.png

 

I will update this today. !

  • Like 2

Share this post


Link to post
Share on other sites

Update:

Changelog:

v2.0
Added a picture notification when earplugs are in.
Added an initPlayerLocal.sqf ,
in order to run the script from there.
Mod Version is now included.

  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, GEORGE FLOROS GR said:

I will update this today. !

I've downloaded and used version 2.0. It's great.

Thank you for updating it. I'll put it into the missions and play with my friends right away.

 

I will keep an eye on the script you made,

thank you very much! :D

  • Thanks 1

Share this post


Link to post
Share on other sites

What the hell is going on here...

	while {GF_Earplugs_Show_Rsc} do {
	//systemchat "true";
	cutRsc ["Rsc_GF_Earplugs","PLAIN"];	
	sleep 1;
	};};

There is no need for this...

// This is how I do it, copied from my notificationSystem
"layer_notifications" cutRsc ["rsc_notifications", "PLAIN"];

https://community.bistudio.com/wiki/cutRsc

Quote

For greater efficiency and ease of modability it is recommended to use named layers available with alternative syntax since Arma 3 v1.57.134673

You may need to add it again upon respawn, can't remember right now. Just use Respawn EH. I am going to go crazy if I see anymore useless/pointless while loops when not needed, especially over EH! :rofl:

  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, HazJ said:

while loops

 

Thanks HazJ !

 

Yes , loops are CPU killers !

See what it is if you can help:

I want to have the icon displayed while the earplugs are "in".

Do you have any better solution?

Share this post


Link to post
Share on other sites
41 minutes ago, GEORGE FLOROS GR said:

Yes , loops are CPU killers !

Not true as a general whole statement.

41 minutes ago, GEORGE FLOROS GR said:

I want to have the icon displayed while the earplugs are "in".

Do you have any better solution?

As I said above. Use cutRsc with layer syntax.

When you don't want to show the earplugs icon. Remove it like so:

// layer_ is not require in front - This is just a prefix I use
"GF_Earplugs" cutRsc ["Rsc_GF_Earplugs", "PLAIN"]; // show
"GF_Earplugs" cutText ["", "PLAIN"]; // remove

https://community.bistudio.com/wiki/cutText

  • Thanks 1

Share this post


Link to post
Share on other sites
24 minutes ago, HazJ said:

Use cutRsc with layer syntax

 

Nice !

Thank you very much HazJ for your help !

Share this post


Link to post
Share on other sites
20 minutes ago, Fabien Jost said:

can you put step by step the installation of the script

 

Include in your mission the following files and codes :

 

 

add the folder GF_Earplugs

 

and :

 

description.ext

//__________________________ ***  C O P Y   T H I S  *** __________________________


class RscTitles
{
	#include "GF_Earplugs\GF_Earplugs_HPP.hpp"	
};

 

initPlayerLocal.sqf

[] execVM "GF_Earplugs\Credits.sqf";	// Please keep the Credits or add them to your Diary
[] execVM "GF_Earplugs\GF_Earplugs.sqf";

 

Share this post


Link to post
Share on other sites

ok, i do that and he don't work always stop working after 1 minute

 

if you want to try our server

 

server logs 

 

 0:07:03 "[""ahb"",""Lolodj66 (76561198023631947): addAction 5/0""]"
 0:07:32 Loading movesType CfgMovesHen_F
 0:07:32 Reading cached action map data
 0:07:39 "[""ahb"",""[DIN]BiBi8667 (76561198015490758): addAction 6/1""]"
 0:07:58 Loading movesType CfgMovesSheep_F
 0:07:58 Reading cached action map data
 0:08:05 "[""ahb"",""Lolodj66 (76561198023631947): addAction 6/1""]"
 0:08:11 Client: Remote object 5:0 not found

 

serveur IP                                      94.250.209.160:2302 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×