Page 1 of 1

[HELP] Someone can tell me how that work ?

Posted: 2020-09-19 01:21
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 :)

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

Posted: 2020-09-19 13:44
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

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

Posted: 2020-09-19 13:45
by Ryan1506
Does anyone have can explain how that work ? Thank you very much

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

Posted: 2020-09-19 15:26
by AlonTavor
These files are "included" by weapon files, that can add arguments.
For example:

Code: Select all

include ../../common/recoil.con "ugl" "he"

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

Posted: 2020-09-19 17:02
by Ryan1506
Can this can be used for sounds ?

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

Posted: 2020-09-19 20:46
by AlonTavor
which part of "this"?
What exactly are you trying to do?

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

Posted: 2020-09-19 21:44
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

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

Posted: 2020-09-19 23:25
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.

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

Posted: 2020-09-20 18:03
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 ?

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

Posted: 2020-09-20 21:04
by AlonTavor
No idea, but I'm not seeing a variable for it. Probably hardcoded to depend on video settings.