This is my Tutorial for help beginners, there are probably mistakes, sorry for my english, i'm french
What I am going to show you will explain how to import a weapon from another mod
So how is setup a basic handheld weapon? In this tutorial I will use the aix_hk416 from Aix2, it’s available for all handheld weapons and all mods, vehicles operate more or less the same way
How a weapon is installed?
There are more files again but I will explain it after. So how work all that?
BF2all Thank you, i will make new tutorials in the futur, never try to put weapons into common ^^ always put into my weapon.zip, but i use sounds_client.zip and added into client archive with common prefix and run fine, like bf2142 and bfp4f are do
this isn't a basic tutorial, this is very detail, very helpful for beginner. Also a lot of vanilla weapons kill display name is referring to a variable inside localization file, same goes for maps name and description
rem ---BeginComp:SoldierDeviationComp ---
include ../../common/deviation.con "lmg" "undeployed" "mediumbarrel"
rem ---EndComp ---
It looks clear that this helps to use a universal set of parameters for different weapons. So the problem is I can not find this deviation.con anywhere in the zip, but the game still can run without trouble. Do you know how to use this type of technique?
Well this is not hard to understand, the file is located into Weapons/common/deviation.con
Then open it and you will see alls the arguments, that look like PR, you will find the deviation into objects_weapons_server.zip\weapons\common\deviation\handheld\lmg.tweak
Great tutorial, my only problem is that I want to use a mod weapon and give it a more "classic" style by putting the regular dds aim to it but the ShaderWrapper I finded doesn't allow to change the meshes path so you can post here in moddb the program you use for that?
For weapon velocity, can equivalent muzzle velocities be used (such as 1,030 for the M197 on AH-1 Cobra helicopter) or does it use a different, more game-engine reliant method?
Nice, good idea to make such tuts.
Other common questions for beginners are, how to install vehicle/weapons
and the basic structure of Bf2 archives.
One thing i never understood/searched for is why you can't put some common
stuff for weapons into common.zip. It wont work. Hm???
BF2all Thank you, i will make new tutorials in the futur, never try to put weapons into common ^^ always put into my weapon.zip, but i use sounds_client.zip and added into client archive with common prefix and run fine, like bf2142 and bfp4f are do
No worries, no hurry ;D
this isn't a basic tutorial, this is very detail, very helpful for beginner. Also a lot of vanilla weapons kill display name is referring to a variable inside localization file, same goes for maps name and description
Bluenix_indo yes i didn't talk about alls elements, like localization file, and alls code we can add to a weapon
Oh my Dude!! that's really an awesome tutorial !!! Très bon travail l'ami (je parles français haha)!
NanohTheGreat thank you ! merci beaucoup ! ;)
I see some mods are using this:
rem ---BeginComp:SoldierDeviationComp ---
include ../../common/deviation.con "lmg" "undeployed" "mediumbarrel"
rem ---EndComp ---
It looks clear that this helps to use a universal set of parameters for different weapons. So the problem is I can not find this deviation.con anywhere in the zip, but the game still can run without trouble. Do you know how to use this type of technique?
Well this is not hard to understand, the file is located into Weapons/common/deviation.con
Then open it and you will see alls the arguments, that look like PR, you will find the deviation into objects_weapons_server.zip\weapons\common\deviation\handheld\lmg.tweak
And look for v_arg "undeployed" "mediumbarrel"
How About Stationary Weapon,Can you Make The Tutorial?
Great tutorial, my only problem is that I want to use a mod weapon and give it a more "classic" style by putting the regular dds aim to it but the ShaderWrapper I finded doesn't allow to change the meshes path so you can post here in moddb the program you use for that?
For weapon velocity, can equivalent muzzle velocities be used (such as 1,030 for the M197 on AH-1 Cobra helicopter) or does it use a different, more game-engine reliant method?
Mesh Shader Wrapper where download