Jump to content
  • 0
theduke

Remove rockets from helis

Question

Ok, so i've been banging my head for a while with this script.  Players have been asking for me to put in some helicopters, but they have rockets. Last thing i need lol

So i found this script which removes weapons/rockets, that after a little playing around with, i got it to work properly with the 1051 epoch version.

http://opendayz.net/threads/release-remove-weapons-ammunition-thermal-from-vehicle-epoch-version.18044/

This is my issue.  For ALL helicopters, after the script was added if i got in the pilots seat, the rockets would still be there. The second i turn on Manual Fire, the rockets were not accessible lol go figure, its arma.

Also in the gunner seat the rockets were not accessible.  So i thought, lets force players into manual fire mode while in pilot seat.

This worked well...on my test server lol

When i put it live, i had 2 of my admins try it out. When 2 players get into the heli, the gunner receives a spam chat because the pilot cannot be in manual fire mode while having a gunner... soo yeah lol

So now im trying to find a way, or if someone has experienced this.. I cannot leave the code for forcing players in manual fire...

Here is a snippet from my code

Spoiler

if (_object isKindof "AH1Z") then {
         _object magazinesTurret [-1];
         _object removeMagazinesTurret ["38Rnd_FFAR",[-1]];
         _object WeaponsTurret [-1];
         _object removeWeapon "FFARLauncher";
         _object WeaponsTurret [-1];
         _object removeWeapon "HellfireLauncher";
         _object WeaponsTurret [-1];
        _object removeWeapon "SidewinderLaucher_AH1Z";
    };

I also tried using removeWeaponGlobal

And i noticed some threads talked about RemoveWeaponTurret...but the BI wiki says its just for arma 3.. i tried anyways and it didnt work lol

Theres also a second method in that script, but all it does is remove the ammo from that weapon.. with my rearm script, you can rearm the hydras.

Any advice would be great...even if its DUKE ITS NOT POSSIBLE... then great, ill stop banging me head lol

Thanks

 

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0
6 hours ago, theduke said:

Theres also a second method in that script, but all it does is remove the ammo from that weapon.. with my rearm script, you can rearm the hydras.

 

1 hour ago, Casual_Jeff said:

Maybe you have a solution here. I have use it 2 years ago to remove ammo at pop.

 

 

Share this post


Link to post
Share on other sites
  • 0

My rearm setting in service point.

Spoiler

// rearm settings
_rearm_enable = true; // enable or disable the rearm option
//_blockedWeaponNames=["S-5","Hydra","CRV7"]; // weapon names you wish to exclude from rearming.  Leave empty [] to allow all
_blockedWeaponNames=["S-5","Hydra","CRV7","HellfireLauncher","S8Launcher","SmokeLauncher","VikhrLauncher"]; // Weapon names you wish to exclude from rearming.  Leave empty [] to allow all
_blockedAmmoNames = [ // Ammo names you wish to exclude from rearming. Leave empty [] to allow all
    "192Rnd_57mm",
    "128Rnd_57mm",
    "1200Rnd_762x51_M240",
    "SmokeLauncherMag",
    "60Rnd_CMFlareMagazine",
    "120Rnd_CMFlareMagazine",
    "240Rnd_CMFlareMagazine",
    "60Rnd_CMFlare_Chaff_Magazine",
    "120Rnd_CMFlare_Chaff_Magazine",
    "240Rnd_CMFlare_Chaff_Magazine",
    "4Rnd_AT2_Mi24D",
    "4Rnd_Ch29",
    "8Rnd_Hellfire",
    "2Rnd_Sidewinder_AH1Z",
    "80Rnd_80mm",
    "40Rnd_80mm",
    "40Rnd_S8T",
    "80Rnd_S8T",
    "12Rnd_Vikhr_KA50",
    "150Rnd_30mmAP_2A42",
    "150Rnd_30mmHE_2A42",
    "38Rnd_FFAR",
    "12Rnd_CRV7",
    "1500Rnd_762x54_PKT",
    "2000Rnd_762x54_PKT",
    "150Rnd_30mmAP_2A42",
    "150Rnd_30mmHE_2A42", 
    "230Rnd_30mmAP_2A42", 
    "230Rnd_30mmHE_2A42",
    "4000Rnd_762x51_M134"    
    ]; 
 

 

Share this post


Link to post
Share on other sites
  • 0

you must have a different rearm script than i use... If i add this in, the variable  _blockedWeaponNames is not within my script... interesting though.. thanks

Share this post


Link to post
Share on other sites
  • 0
37 minutes ago, theduke said:

you must have a different rearm script than i use... If i add this in, the variable  _blockedWeaponNames is not within my script... interesting though.. thanks

this is my version of service points for 1.0.6+ https://github.com/oiad/service_points

You can block individual weapons from being rearmed in there.

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, salival said:

this is my version of service points for 1.0.6+ https://github.com/oiad/service_points

You can block individual weapons from being rearmed in there.

well it partially works, but only while in gunner seat.  If im in pilot seat, not in manual fire, i still get the option to rearm.

Here is the block of code i did the change to

_fnc_getWeapons = {
        private ["_vehicle","_role","_weapons"];
        _vehicle = _this select 0;
        _role = _this select 1;
        _weapons = [];
        if (count _role > 1) then {
                private ["_turret","_weaponsTurret"];
                _turret = _role select 1;
                _weaponsTurret = _vehicle weaponsTurret _turret;
                {
                        private "_weaponName";
                        _weaponName = getText (configFile >> "CfgWeapons" >> _x >> "displayName");
						if !(_WeaponName in _rearm_ignore) then {
                        _weapons set [count _weapons, [_x, _weaponName, _turret]];
						};
                } forEach _weaponsTurret;
        };
        _weapons
};

and i added 

_rearm_ignore = ["Horn","Laser Marker","FFARLauncher"];

Share this post


Link to post
Share on other sites
  • 0

I am able to disable individual weapons properly, you just need to add the right weapon name to the list:

_rearm_costs = [
	["Flares",2000],
	["M240",5000],
	["PKM",5000],
	["PKT",5000],
	["M197","disabled"],
	["AIM-9L Sidewinder","disabled"],
	["AGM-114 Hellfire","disabled"],
	["Hydra","disabled"]
];

This example would completely disable the AH1Z from being able to be rearmed.

You need to add the text that is displayed in the menu not the actual  weapon or ammo name.

I.e Hydra is the text name, FFARLauncher is the weapon name. So you would use Hydra

 

*edit* it also looks like the version you're using is older, you should update to the latest one: https://github.com/oiad/service_points

Share this post


Link to post
Share on other sites
  • 0

well that didnt work either lol

When i get in the gunner seat, i see the name "rearm hydra" and it disappears right away...so the script works.... but while in pilot seat, I still have the option...

I guess Ill just wait till i do the move to 106...still trying to install coins and figure out the banking lol

Thanks @salival and @Casual_Jeff for the advice!

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, theduke said:

well that didnt work either lol

When i get in the gunner seat, i see the name "rearm hydra" and it disappears right away...so the script works.... but while in pilot seat, I still have the option...

I guess Ill just wait till i do the move to 106...still trying to install coins and figure out the banking lol

Thanks @salival and @Casual_Jeff for the advice!

I've only just  clicked you're not using my version for 1.0.6 (so tired)

Did you port my version over to yours? I don't think you can disable individual weapons in the original version like you can in mine

Share this post


Link to post
Share on other sites
  • 0

no you cant with the original. And yes i tried to port that part of code into the one i was using. (but again my knowledge haha)

Its all good, im working to make a 106 server..so the players can wait lol

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By 2DayZ2Retirement
      -PROBLEM SOLVED-
       
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch 1.0.6.2
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
      Cheers.
    • By Brian Soanes
      To unlock vehicles left in your traders over a server restart, open your epoch_server.pbo

      In epoch_server\compile\epoch_vehicle\EPOCH_load_vehicles.sqf
      Find
      if (_allowDamage) then { Just above that, add this
      A3E_SafeZonePosArray = [ [[18451.9,14278.1,0]], //Altis East trader [[13333.5,14494.3,0]], //Altis Central trader [[6192.46,16834,0]] //Altis West trader ]; { if (_vehicle distance (_x select 0) < 200) then { _vehicle lock false; diag_log format["Vehicle %1 left in trader unlocked @ %2", _class, mapGridPosition _vehicle]; }; } forEach A3E_SafeZonePosArray; Pack pbo and you're good to go
    • By calinova22
      How would I go about adding custom vehicles to my server? I want to have an F35B with no weapons. I know how to remove the weapons, just cant find the file for the jet itself to edit.
    • By Irradiated Beef
      Howdy folks, sorry to ask what should be an obvious and easy thing, but my searches over the last two days haven't found me a current answer.
      Apparently in the older versions of Epoch, you would add vehicles by editing the allowedvehicleslist,  however that seems to have changed in later versions, as the list is no longer there. I found some documents that state it's in the mission.pbo, some that state it's in the epochconfig.hpp (there's a reference to it but no actual list), and some that state it should be somewhere else in the epoch_server_settings, but I've come up completely blank.
      Does anyone happen to know where this is in the current (Epoch 1.0) release? 
      Considering most documentation I'm finding is several years old, I can only assume I'm looking in the wrong places. :( 
    • By Cyrus
      Hi,
      I have successfully set up an Arma 3 Epoch altis server (private for now) with a bunch of server side mods running. One of them is the Black Market Trader found elsewhere in the forums. My question is how do i add weapons and gear from the DLC expansions (MARK, HELI) etc. more specifically gear and weapons. I have seen on the BMS server they have gear specific to APEX and helis specific to HELI DLC. My black market trader does not have any of the DLC gear and weapons but only some of the heli's like the Huron and Taru. I own all of the DLC's and they are all present on the server folder structure. I cannot spawn them either using the builtin Anti Hack admin menu as they aren't present.
       
      I there any way that i can make them visible th AH menu and black market trader?
       
      Thanks in advance
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...