project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
24 Oct 2020, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2020-09-19, 01:21   #1
Ryan1506

Ryan1506's Avatar
Default [HELP] Someone can tell me how that work ?

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 is offline Reply With Quote
Old 2020-09-19, 13:44   #2
Ryan1506

Ryan1506's Avatar
Default Re: [HELP] Someone can tell me how that work ?

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 is offline Reply With Quote
Old 2020-09-19, 13:45   #3
Ryan1506

Ryan1506's Avatar
Default Re: [HELP] Someone can tell me how that work ?

Does anyone have can explain how that work ? Thank you very much
Ryan1506 is offline Reply With Quote
Old 2020-09-19, 15:26   #4
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: [HELP] Someone can tell me how that work ?

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

Code:
include ../../common/recoil.con "ugl" "he"
AlonTavor is offline Reply With Quote
Old 2020-09-19, 17:02   #5
Ryan1506

Ryan1506's Avatar
Default Re: [HELP] Someone can tell me how that work ?

Can this can be used for sounds ?
Ryan1506 is offline Reply With Quote
Old 2020-09-19, 20:46   #6
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: [HELP] Someone can tell me how that work ?

which part of "this"?
What exactly are you trying to do?
AlonTavor is offline Reply With Quote
Old 2020-09-19, 21:44   #7
Ryan1506

Ryan1506's Avatar
Default Re: [HELP] Someone can tell me how that work ?

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
Ryan1506 is offline Reply With Quote
Old 2020-09-19, 23:25   #8
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: [HELP] Someone can tell me how that work ?

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.
AlonTavor is offline Reply With Quote
Old 2020-09-20, 18:03   #9
Ryan1506

Ryan1506's Avatar
Default Re: [HELP] Someone can tell me how that work ?

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 ?
Ryan1506 is offline Reply With Quote
Old 2020-09-20, 21:04   #10
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: [HELP] Someone can tell me how that work ?

No idea, but I'm not seeing a variable for it. Probably hardcoded to depend on video settings.
AlonTavor is offline Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 15:20.