Jump to content

Adding vehicles to admin menu


Hux

Recommended Posts

I know this has been asked many times but all the threads I've found are for older versions of epoch.

I can't seem to find where to add new vehicles to the built in admin menu.

Could someone point me in the right direction?

 

Thank you.

Link to comment
Share on other sites

Vehicles will show on the admin menu if they have a price, 
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgPricing.hpp#L999

Only exception to that is we did not add "Tanks" category. This is the part of the Epoch Admin Panel code that populates the vehicles list: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/init/server_securityfunctions.sqf#L1786-L1833

Link to comment
Share on other sites

4 hours ago, vbawol said:

Vehicles will show on the admin menu if they have a price, 
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgPricing.hpp#L999

Only exception to that is we did not add "Tanks" category. This is the part of the Epoch Admin Panel code that populates the vehicles list: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/init/server_securityfunctions.sqf#L1786-L1833

Ok, I added B_Plane_CAS_01_F  to the CfgPricing file and it showed up in admin menu just as you said.

 

Thank you very much.

Link to comment
Share on other sites

On 5/22/2016 at 2:50 PM, Hux said:

Ok, I added B_Plane_CAS_01_F  to the CfgPricing file and it showed up in admin menu just as you said.

 

Thank you very much.

Where did you find cfgpricing? I see it in the sources file but is that the exact file we edit?

Thank you.

Link to comment
Share on other sites

2 hours ago, tux-box1 said:

Where did you find cfgpricing? I see it in the sources file but is that the exact file we edit?

Thank you.

CfgPricing.hpp is in your mission pbo under epoch_config/Configs

Yes that's where you add vehicles with prices.

Link to comment
Share on other sites

  • 2 weeks later...
On 5/26/2016 at 10:43 PM, Hux said:

CfgPricing.hpp is in your mission pbo under epoch_config/Configs

Yes that's where you add vehicles with prices.

I tried the same thing. Here is the exact entry in "mpmissions\epoch.Altis\epoch_config\Configs\CfgPricing.hpp"

I added on line 999

"class B_Plane_CAS_01_F {price = 10000;};"

When I check the admin menu under V: Air nothing new is there.

Can you tell me if you did the same?

FWIW, I rePBO'ed the file.

Link to comment
Share on other sites

If someone who actually got this working can check my post and write back and let me know if I'm doing this right. I would be very thankful.

I have done the following: unPBOed the mission file Altis.

Opened up  mpmissions\epoch.Altis\epoch_config\Configs\CfgPricing.hpp  using notepad ++

Added  class B_Plane_CAS_01_F {price = 10000;};  on line 999

I saved the file, rePBOed the epoch.Altis folder.

Loaded up the server and checked all spawn menus. 

Result: no change.

 

Link to comment
Share on other sites

On 6/10/2016 at 5:17 PM, tux-box1 said:

I tried the same thing. Here is the exact entry in "mpmissions\epoch.Altis\epoch_config\Configs\CfgPricing.hpp"

I added on line 999

"class B_Plane_CAS_01_F {price = 10000;};"

When I check the admin menu under V: Air nothing new is there.

Can you tell me if you did the same?

FWIW, I rePBO'ed the file.

I added mine under CUP vehicles line 1094: class B_Plane_CAS_01_F {price = 2400;};

And a few other vehicles:

    class B_Boat_Armed_01_minigun_F {price = 2400;};
    class I_Plane_Fighter_03_CAS_F {price = 2400;};
    class B_Heli_Attack_01_F {price = 2400;};

They all showed up in admin spawns.

I'm using infistar now so I'm no longer messing with this but it did work for me...

Hope this helps.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...