• 0
Kronons

Infistar allowedActions_player[] help

Question

@infiSTAR Hi I have a bit of a dilemma. I am able to get other action mods to be allowed through infistar, but there are two I can not figure out how to add to inifistar allowed actions. Exad parachute and halo jump and rearm mod. They both use format to make their title. Any ideas on how to add their titles to the list? Thanks!

 

ExAd_ACTION_PARACHUTE = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_PARACHUTE"], {[] spawn ExAd_fnc_pullParachute}, [], 6, true, true, "", "call ExAd_fnc_showParachute"];
ExAd_ACTION_EJECT = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_HALO"], {call ExAd_fnc_ejectPlayer}, [], 6, false, true, "", "call ExAd_fnc_showEject;"];
_actionTitle = [format["Repair %1",getText (configFile >> "Cfgvehicles" >> typeOf _vehicle >> "displayName")], _costs] call _fnc_actionTitle;
SP_repair_action = _vehicle addAction [format["<img size='1.5'image='\a3\Ui_f\data\IGUI\Cfg\Cursors\iconrepairvehicle_ca.paa'/> %1",_actionTitle], _folder + "service_point_repair.sqf", [_servicePoint, _costs, _repair_repairTime], -1, false, true, "", _actionCondition];

_actionTitle = [format["Rearm %1 %2 with %3", _weaponName,_curturret,_ammoname], _costs] call _fnc_actionTitle;
SP_rearm_action = _vehicle addAction [format["<img size='1.5'image='\a3\Ui_f\data\IGUI\Cfg\WeaponIcons\mg_ca.paa'/> %1",_actionTitle], _folder + "service_point_rearm.sqf", [_servicePoint, _costs, [_weaponName,_ammoclass,_ammoname,_GlobalMagazineMAX,_deny_already_armed_with,_curturret]], -1, false, true, "", _actionCondition];
SP_rearm_actions set [count SP_rearm_actions, SP_rearm_action];

 

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

 

17 minutes ago, Kronons said:

@infiSTAR Hi I have a bit of a dilemma. I am able to get other action mods to be allowed through infistar, but there are two I can not figure out how to add to inifistar allowed actions. Exad parachute and halo jump and rearm mod. They both use format to make their title. Any ideas on how to add their titles to the list? Thanks!

 


ExAd_ACTION_PARACHUTE = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_PARACHUTE"], {[] spawn ExAd_fnc_pullParachute}, [], 6, true, true, "", "call ExAd_fnc_showParachute"];
ExAd_ACTION_EJECT = player addaction [format["<t color='#E48A36'><img image='\a3\ui_f\data\gui\cfg\CommunicationMenu\supplydrop_ca.paa' />%1</t>", localize "STR_ExAd_HALOPARACHUTE_ACTIONS_HALO"], {call ExAd_fnc_ejectPlayer}, [], 6, false, true, "", "call ExAd_fnc_showEject;"];

_actionTitle = [format["Repair %1",getText (configFile >> "Cfgvehicles" >> typeOf _vehicle >> "displayName")], _costs] call _fnc_actionTitle;
SP_repair_action = _vehicle addAction [format["<img size='1.5'image='\a3\Ui_f\data\IGUI\Cfg\Cursors\iconrepairvehicle_ca.paa'/> %1",_actionTitle], _folder + "service_point_repair.sqf", [_servicePoint, _costs, _repair_repairTime], -1, false, true, "", _actionCondition];

_actionTitle = [format["Rearm %1 %2 with %3", _weaponName,_curturret,_ammoname], _costs] call _fnc_actionTitle;
SP_rearm_action = _vehicle addAction [format["<img size='1.5'image='\a3\Ui_f\data\IGUI\Cfg\WeaponIcons\mg_ca.paa'/> %1",_actionTitle], _folder + "service_point_rearm.sqf", [_servicePoint, _costs, [_weaponName,_ammoclass,_ammoname,_GlobalMagazineMAX,_deny_already_armed_with,_curturret]], -1, false, true, "", _actionCondition];
SP_rearm_actions set [count SP_rearm_actions, SP_rearm_action];

 

This Bad Action Check only makes problems if for example R3F, igiload or Ream script use and there will be much more scripts.

The best option is BadActionCheck = "false";

I hope this is fixed in the next infistar version :)

Share this post


Link to post
Share on other sites
  • 0

i can agree with the poster above...the best way right now ist to go through the whole AHAT config really carefully and disable or change some features you dont really need on your machine...doesnt mean that @infiSTAR is not doing a great job with the new features, i really love them, but it just takes some time to set it up properly..then there shouldnt be any problems so far!

Share this post


Link to post
Share on other sites
Advertisement
  • 0

I appreciate the help. If this is a new anti-hack feature. I want to have it setup properly on the get  go. Instead of disabling it. Currently I have it configured to allow most of my action menu mods, but I have no idea how to make infistar allow dynamic title names instead of static ones. If @infiSTAR you can shed some light that would be awesome. 

Share this post


Link to post
Share on other sites
  • 0

there is nothing to fix.... its not broken... its the way it works...

so whitelist your actions or disable the function... simple as that

 

to get the right string to whitelist check your rpt log... it will tell you which actions arent whitelisted... you put these strings in your infi cfg and et voila... its done...

 

i wonder what some guys will do if they encounter real problems in their life for once...

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, AFC~Gagi2~ said:

there is nothing to fix.... its not broken... its the way it works...

so whitelist your actions or disable the function... simple as that

 

to get the right string to whitelist check your rpt log... it will tell you which actions arent whitelisted... you put these strings in your infi cfg and et voila... its done...

 

i wonder what some guys will do if they encounter real problems in their life for once...

Wow talk about someone who is really ignorant. Try putting in none static strings and see if you can get it to work. Static strings work fine, but with strings such as rearm it queries the code and generates a new string each time a new object is acted upon.  Same thing with halo jump. Read and think before you post. Lastly when did I say it needed fixing? Go away troll. Thank you.

Edited by Kronons

Share this post


Link to post
Share on other sites
  • 0
14 hours ago, Kronons said:

Wow talk about someone who is really ignorant. Try putting in none static strings and see if you can get it to work. Static strings work fine, but with strings such as rearm it queries the code and generates a new string each time a new object is acted upon.  Same thing with halo jump. Read and think before you post. Lastly when did I say it needed fixing? Go away troll. Thank you.

well... i wasnt talking to you directly... but feel free to ask ^^

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, AFC~Gagi2~ said:

well... i wasnt talking to you directly... but feel free to ask ^^

Ah my apologies. Please do use the quote functionality next time so we know who you are directing. Thanks.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.