Jump to content
Sign in to follow this  
malow

Find asset names of weapons from a mod?

Recommended Posts

Hey, so I play a lot of Wasteland on Sa-Matra's Chernarus servers, and they use some mods for different weapons and stuff there. So I figured I would make a simple Death-match mission that spawns you with a random weapon from said mods just to practice my aiming skills against some of my friends for when we play Wasteland. I found this link: https://community.bistudio.com/wiki/Arma_3_Assets and I've been able to figure out so this runs every time a player spawns:

_weapons_mags = [["srifle_EBR_ARCO_pointer_F", "20Rnd_762x51_Mag"], ["arifle_MXM_RCO_pointer_snds_F", "30Rnd_65x39_caseless_mag"], [“srifle_DMR_01_MRCO_Fâ€, “10Rnd_762x54_Magâ€], [“LMG_Mk200_MRCO_Fâ€, “200Rnd_65x39_cased_Boxâ€], [“LMG_Zafir_ARCO_Fâ€, “150Rnd_762x54_Boxâ€], [“srifle_EBR_ARCO_pointer_snds_Fâ€, “20Rnd_762x51_Magâ€], [“srifle_GM6_SOS_Fâ€, “5Rnd_127x108_APDS_Magâ€], [“srifle_LRR_LRPS_Fâ€, “7Rnd_408_Magâ€], [“arifle_Katiba_Fâ€, “30Rnd_65x39_caseless_greenâ€], [“arifle_Katiba_C_ACO_Fâ€, “30Rnd_65x39_caseless_greenâ€], [“arifle_MXC_Holo_pointer_snds_Fâ€, “30Rnd_65x39_caseless_magâ€], [“arifle_MXC_ACO_pointer_Fâ€, “30Rnd_65x39_caseless_magâ€], [“arifle_TRG21_Fâ€, “30Rnd_556x45_Stanagâ€], [“arifle_TRG20_ACO_pointer_Fâ€, “30Rnd_556x45_Stanagâ€]. [“arifle_Mk20C_ACO_pointer_Fâ€, “30Rnd_556x45_Stanagâ€]];
_count = count _weapons_mags;
_weap_mag = (_weapons_mags select floor random _count);
_weap = _weap_mag select 0;
_mag = _weap_mag select 1;
_this addWeaponGlobal _weap;
for "_i" from 0 to 10 step 1 do {_this addMagazine _mag};

However on the asset-wiki a lot of weapons used in Wasteland is missing, I'm guessing they're located in the mod WSWeapons. How would I go about finding the names of weapons from this mod so that I can add them to my script so that players can spawn with them? I've made another mission like a target range already and I added every crate I could find in the editor in that, and that has all or most of the weapons I want to add in this mission too, if there's no way to find the weapon-names easily, can I debug-print the name of the weapon my player is holding in some way when I play my target range mission so that I can go through each weapon I want to add by looting it from a crate and then printing it's name and write that down to add to my other mission later?

Thanks

Share this post


Link to post
Share on other sites

Have you tried setting your mod parameters to load the @WSweapons? I think they may even use some mods from @WSRHS. You can add them through the launcher in the parameters and then they will be available in the editor.

http://zk-clan.de/styles/pop_nobly/template/image/Arma%20III%20Launcher.png (729 kB)

Edited by Treoctone
spelling

Share this post


Link to post
Share on other sites
Have you tried setting your mod parameters to load the @WSweapons? I think they may even use some mods from @WSRHS. You can add them through the launcher in the parameters and then they will be available in the editor.

http://zk-clan.de/styles/pop_nobly/template/image/Arma%20III%20Launcher.png (729 kB)

Yeah when I'm making my mission in the editor I use the same mods as the Wasteland server, and I think you might be right about the @WSRHS being used as well. But loading the mods with my mission isn't my problem, finding the name of the weapon assets in said mods so I can use them in my scripts is the problem. Like in the asset-list I linked before I need to find the "class" name and "magazine" name to be able to add these weapon to my script, and I don't know where to find these for the weapons in the mods. For example if I want to add an Mk18 ABR I can find it in the asset list above and find out the class-name: "srifle_EBR_F" and use that for my script to add it. But I don't know how to do the same with for example M60E4 which I think is one of the weapons from the mods, so I need to find the string that is something like "srifle_m60e4_F" or whatever it might be called, and the string for the ammo that fits it as well.

Share this post


Link to post
Share on other sites

I found this. Hope it helps.

https://forums.arma.su/forum/main-category/main-forum/18498-sa-matra-wasteland-chernarous-weapons-guide

edit: I realize that the link I provided does not have their class names, but the below has a list of assets with classes for the RHS mod.

http://doc.rhsmods.org/index.php/Main_Page

You can also load the mods and find the weapons you are looking for in virtual arsenal and use Ctrl+shift+c to copy to it to clipboard and paste in notepad to get the weapon. I found the

M60e4(hlc_lmg_M60E4) class name that way. It is in @WSWeapons by the way.

Edited by Treoctone
added more useful info

Share this post


Link to post
Share on other sites
I found this. Hope it helps.

https://forums.arma.su/forum/main-category/main-forum/18498-sa-matra-wasteland-chernarous-weapons-guide

edit: I realize that the link I provided does not have their class names, but the below has a list of assets with classes for the RHS mod.

http://doc.rhsmods.org/index.php/Main_Page

You can also load the mods and find the weapons you are looking for in virtual arsenal and use Ctrl+shift+c to copy to it to clipboard and paste in notepad to get the weapon. I found the

M60e4(hlc_lmg_M60E4) class name that way. It is in @WSWeapons by the way.

Oh my, I didn't even know about the virtual arsenal. This is perfect, thank you so much! :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×