[HELP] Someone can tell me how that work ?

Making or wanting help making your own asset? Check in here
Post Reply
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

[HELP] Someone can tell me how that work ?

Post by Ryan1506 »

Hello everyone, so i love tweak the weapons of this mod, but i have a question about deviation and recoil system..

How work the files with many things like v_arg and things like that ? PR have only one file with alls the weapons déviation, i want to create something like this , i look everywhere but can't find any tutorial about that

Thank you for explain me how that work :)
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

Re: [HELP] Someone can tell me how that work ?

Post by Ryan1506 »

For exemple, recoil.con located into weapon_server.zip
rem ===========================================================================
rem ====================== * Recoil Weapon Category File * ====================
rem ===========================================================================

rem All names and paths are always lowercase.

rem ========================= Recoil weapon categories =======================

if v_arg1 == "assaultrifle"
include handheld/assaultrifle.tweak v_arg2 v_arg3 v_arg4
elseIf v_arg1 == "rifle"
include handheld/rifle.tweak v_arg2
elseIf v_arg1 == "marksman"
include handheld/marksman.tweak v_arg2 v_arg3
elseIf v_arg1 == "sniper"
include handheld/sniper.tweak v_arg2
elseIf v_arg1 == "ugl"
include handheld/ugl.tweak v_arg2
elseIf v_arg1 == "shotgun"
include handheld/shotgun.tweak v_arg2 v_arg3
elseIf v_arg1 == "pistol"
include handheld/pistol.tweak v_arg2
elseIf v_arg1 == "smg"
include handheld/smg.tweak v_arg2 v_arg3
elseIf v_arg1 == "lmg"
include handheld/lmg.tweak v_arg2 v_arg3
elseIf v_arg1 == "gpmg"
include handheld/gpmg.tweak v_arg2
elseIf v_arg1 == "antiarmor"
include recoil/antivehicle/antiarmor.tweak v_arg2
elseIf v_arg1 == "antiair"
include recoil/antivehicle/antiair.tweak v_arg2 v_arg3
elseIf v_arg1 == "melee"
include handheld/melee.tweak v_arg2
elseIf v_arg1 == "hmg"
include recoil/mounted/hmg.tweak v_arg2
elseIf v_arg1 == "gmg"
include recoil/mounted/gmg.tweak v_arg2 v_arg3
elseIf v_arg1 == "rws"
include recoil/mounted/rws.tweak v_arg2
elseIf v_arg1 == "coaxial"
include recoil/mounted/coaxial.tweak v_arg2
elseIf v_arg1 == "shell"
include recoil/projectile/shell.tweak v_arg2 v_arg3
elseIf v_arg1 == "missile"
include recoil/projectile/missile.tweak v_arg2 v_arg3
elseIf v_arg1 == "countermeasure"
include recoil/projectile/countermeasure.tweak v_arg2 v_arg3
elseIf v_arg1 == "common"
include recoil/common/common.tweak v_arg2
elseIf v_arg1 == "aircraft"
include recoil/aircraft/shell.tweak v_arg2 v_arg3
endIf

rem ===========================================================================

rem created by K_Rivers

rem modified by K_Rivers
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

Re: [HELP] Someone can tell me how that work ?

Post by Ryan1506 »

Does anyone have can explain how that work ? Thank you very much
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: [HELP] Someone can tell me how that work ?

Post by AlonTavor »

These files are "included" by weapon files, that can add arguments.
For example:

Code: Select all

include ../../common/recoil.con "ugl" "he"
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

Re: [HELP] Someone can tell me how that work ?

Post by Ryan1506 »

Can this can be used for sounds ?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: [HELP] Someone can tell me how that work ?

Post by AlonTavor »

which part of "this"?
What exactly are you trying to do?
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

Re: [HELP] Someone can tell me how that work ?

Post by Ryan1506 »

I want to create a file like recoil.con but with sounds for the vehicles, to add only one file to setup all the vehicles sounds
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: [HELP] Someone can tell me how that work ?

Post by AlonTavor »

Objects that use sound expect a very specific template name for the sound object, It wont save you much time as you'll have to set the template name for each vehicle manually anyways.
Ryan1506
Posts: 30
Joined: 2020-01-12 18:34

Re: [HELP] Someone can tell me how that work ?

Post by Ryan1506 »

Okay thanks @AlonTavor
Other question, i look a way to increase the number of decals draw at the same time, i know we can increase the time to live, but how increase the number of decals ?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: [HELP] Someone can tell me how that work ?

Post by AlonTavor »

No idea, but I'm not seeing a variable for it. Probably hardcoded to depend on video settings.
Post Reply

Return to “PR:BF2 Community Modding”