WD-40

How to remove rockets from mas helicopters

4 posts in this topic

Hi,
I would like to make my players able to buy venom without rockets but with miniguns. Where do I add removevehicleweapon function? And what weapon venom from mas uses?
Kind Regards,

WD-40

Share this post


Link to post
Share on other sites

Untested but im guessing in

@ExileServer\addons\exile_server\code\ExileServer_object_vehicle_createPersistentVehicle.sqf

as it seems that most vehicle spawns are calling this (or ExileServer_object_vehicle_createNonPersistentVehicle.sqf, depending).

Something like this before line 36(_vehicleObject). I tried to look up the MAS classnames  but im not sure these are the right ones

switch (true) do
{
    case (_className isKindOf "B_mas_UH1Y_F"):
    {
    _vehicleObject removeWeaponGlobal "missiles_mas_eli_DAGR"
    };
    case ({_class isKindOf _x} count ["O_Heli_Attack_02_F", "O_Heli_Attack_02_black_F"] > 0): //Do it to all these
    {
    _vehicleObject removeWeaponGlobal "missiles_SCALPEL";
    };
};

or maybe like this 

 if (_className isKindOf "B_mas_UH1Y_F") then 
{
    _vehicleObject removeWeaponGlobal "missiles_mas_eli_DAGR"
};

Edited by Cael817
Looked at the MAS classnames
2 people like this

Share this post


Link to post
Share on other sites
Advertisement

Did some quick testing with

switch (true) do
{
    case (_className isKindOf "Exile_Chopper_Hellcat_Green"):
    {
    _vehicleObject setFuel 0;
    };
};

And it works fine for a newly purchased vehicle (spawning with 0 fuel) but it doesn't seem to get set for vehicles loaded from the DB after a restart so please look at that before you push anything like that to your "live" server.

1 person likes this

Share this post


Link to post
Share on other sites

Hi,
I would like to make my players able to buy venom without rockets but with miniguns. Where do I add removevehicleweapon function? And what weapon venom from mas uses?
Kind Regards,

WD-40

Hi,

Have a look at the following, and just add the weapon classnames of the vehicle you want to strip, I have listed all the major A3 vehicles. Just take out the thermal bit if you still want to use thermals.


http://www.exilemod.com/topic/1420-disable-vehicle-thermal-and-certain-weapons/?do=findComment&comment=8936

Regards,

Shane

Edited by Shane Martin
2 people like this

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.