Kurewe

Using the UCAV Sentinel drone from the new DLC on your server

64 posts in this topic

After adding the UCAV Sentinel, I realized that it's a NATO bird and that (Independant/Guer) players would not be able to use it. So, I added the UAVHacker trait to the players so that the sentinel could be hacked with the UAV Terminal.

Here's what to do:

NOTE 1: I'm not going to explain how to setup overwrites in this post. There's plenty of info in the forums on how to do that.

NOTE 2: If you run infiSTAR, your BadActionCheck and/or BadActionContentCheck setting(s) in the EXILE_AHAT_CONFIG.hpp might cause players to get kicked/banned. You will either need to set both to false or add "Hack UAV" to the allowed actions.

Setup overwrites for ExileServer_object_player_database_load.sqf and ExileServer_object_player_createBambi.sqf if you haven't already done so for another feature/function/addon.
If you already have overwrites for these files, just edit those files.
 

ExileServer_object_player_database_load.sqf

After this line:
_player setVariable ["ExileXM8IsOnline", false, true];

Add this line:
_player setUnitTrait ["UAVHacker" ,true];


ExileServer_object_player_createBambi.sqf

After this line:
_bambiPlayer setVariable ["ExileLocker", (_accountData select 4), true];

Add this line:
_bambiPlayer setUnitTrait ["UAVHacker" ,true];

 

Edited by Kurewe
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

looks legit, this should make it work with non-AAF drones from Apex as well. Will test tomorrow, thank you for sharing!

  • Like 1

Share this post


Link to post
Share on other sites
43 minutes ago, q-p said:

looks legit, this should make it work with non-AAF drones from Apex as well. Will test tomorrow, thank you for sharing!

You know, I was so busy with other stuff that I didn't even think about any other non-AAF UAVs/Drones. Thanks to you for kicking me in the backside. LOL

  • Like 1

Share this post


Link to post
Share on other sites

Here is the list of available drones (including CUP) in case anyone was wondering...

Spoiler

    // UAVs (From Spec Ops Trader)
    I_UavTerminal                        // UAV Terminal AAF (IND)
    I_UAV_01_backpack_F            // AR-2 Darter (IND)
    O_UAV_01_backpack_F            // Tayran AR-2 (OPFOR)
    B_UAV_01_backpack_F            // AR-2 Darter (BLUFOR)
    
    // Drones (From Aircraft Vendor)
    CUP_B_AH6X_USA                    // Unmanned Littlebird (BLUFOR)
    CUP_B_Pchela1T_CDF            // Pchela1T (CDF) (BLUFOR)
    CUP_O_Pchela1T_RU                // Pchela1T (RU) (OPFOR)
    CUP_B_USMC_MQ9                    // MQ-9 Reaper (BLUFOR)
    B_UAV_02_F                            // MQ-4A Greyhawk (BLUFOR)
    B_UAV_02_CAS_F                    // MQ-4A Greyhawk (CAS) (BLUFOR)
    I_UAV_02_F                            // K40 Ababil-3 (IND)
    I_UAV_02_CAS_F                    // K40 Ababil-3 (CAS) (IND)
    O_UAV_02_F                            // K40 Ababil-3 (OPFOR)
    O_UAV_02_CAS_F                    // K40 Ababil-3 (CAS) (OPFOR)
    B_T_UAV_03_F                        // MQ-12 Falcon (CAS) (BLUFOR)
    O_T_UAV_04_CAS_F                // KH-3A Fenghuang
    B_UAV_05_F                            // UCAV Sentinel (BLUFOR)
        
    // UGVs (From Vehicle Vendor)
    B_UGV_01_F                                    // Stomper (BLUFOR)
    B_UGV_01_rcws_F                            // Stomper RCWS (BLUFOR)
    I_UGV_01_F                                    // Stomper (IND)
    I_UGV_01_rcws_F                            // Stomper RCWS (IND)
    O_UGV_01_F                                    // Saif (OPFOR)
    O_UGV_01_rcws_F                            // Saif RCWS (OPFOR)
    O_T_UGV_01_ghex_F                        // Saif GHEX (OPFOR)
    O_T_UGV_01_rcws_ghex_F            // Saif RCWS GHEX (OPFOR)

 

  • Like 1

Share this post


Link to post
Share on other sites

wanted to say this worked perfectly! had been looking way too long to find a working solution! thank you!!

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, q-p said:

wanted to say this worked perfectly! had been looking way too long to find a working solution! thank you!!

No problem. Always happy to share the neat tricks I find along the way.

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, Kurewe said:

I've not had that issue on my server. What are the exact circumstances of the infiSTAR ban?

no logs it just goes straight though to bans.txt

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.