@@ -290,6 +290,7 @@ pubg["M16A4"] = function ()
290
290
291
291
return pubg .execOptions ({
292
292
ratio = 1 ,
293
+ ctrlmodeRatio = 0.8 ,
293
294
interval = 108 ,
294
295
ballistic = {
295
296
{1 , 0 },
@@ -310,6 +311,7 @@ pubg["SCAR-L"] = function ()
310
311
311
312
return pubg .execOptions ({
312
313
ratio = 1 ,
314
+ ctrlmodeRatio = 0.8 ,
313
315
interval = 96 ,
314
316
ballistic = {
315
317
{1 , 0 },
@@ -329,6 +331,7 @@ pubg["Beryl M762"] = function ()
329
331
330
332
return pubg .execOptions ({
331
333
ratio = 1 ,
334
+ ctrlmodeRatio = 0.8 ,
332
335
interval = 86 ,
333
336
ballistic = {
334
337
{1 , 0 },
@@ -351,6 +354,7 @@ pubg["Tommy Gun"] = function ()
351
354
352
355
return pubg .execOptions ({
353
356
ratio = 1 ,
357
+ ctrlmodeRatio = 0.8 ,
354
358
interval = 84 ,
355
359
ballistic = {
356
360
{1 , 0 },
@@ -367,6 +371,7 @@ pubg["G36C"] = function ()
367
371
368
372
return pubg .execOptions ({
369
373
ratio = 1 ,
374
+ ctrlmodeRatio = 0.8 ,
370
375
interval = 80 ,
371
376
ballistic = {
372
377
{1 , 0 },
@@ -385,6 +390,7 @@ pubg["Vector"] = function ()
385
390
386
391
return pubg .execOptions ({
387
392
ratio = 1 ,
393
+ ctrlmodeRatio = 0.8 ,
388
394
interval = 55 ,
389
395
ballistic = {
390
396
{1 , 0 },
@@ -402,6 +408,7 @@ pubg["Micro UZI"] = function ()
402
408
403
409
return pubg .execOptions ({
404
410
ratio = 1 ,
411
+ ctrlmodeRatio = 0.8 ,
405
412
interval = 46 ,
406
413
ballistic = {
407
414
{1 , 0 },
@@ -420,6 +427,7 @@ pubg["UMP45"] = function ()
420
427
421
428
return pubg .execOptions ({
422
429
ratio = 1 ,
430
+ ctrlmodeRatio = 0.8 ,
423
431
interval = 94 ,
424
432
ballistic = {
425
433
{1 , 0 },
@@ -436,6 +444,7 @@ pubg["AKM"] = function ()
436
444
437
445
return pubg .execOptions ({
438
446
ratio = 1 ,
447
+ ctrlmodeRatio = 0.8 ,
439
448
interval = 99 ,
440
449
ballistic = {
441
450
{1 , 0 },
@@ -455,6 +464,7 @@ pubg["M416"] = function ()
455
464
456
465
return pubg .execOptions ({
457
466
ratio = 1 ,
467
+ ctrlmodeRatio = 0.8 ,
458
468
interval = 85 ,
459
469
ballistic = {
460
470
{1 , 0 },
@@ -476,6 +486,7 @@ pubg["QBZ"] = function ()
476
486
477
487
return pubg .execOptions ({
478
488
ratio = 1 ,
489
+ ctrlmodeRatio = 0.8 ,
479
490
interval = 87 ,
480
491
ballistic = {
481
492
{1 , 0 },
@@ -495,6 +506,7 @@ pubg["DP-28"] = function ()
495
506
496
507
return pubg .execOptions ({
497
508
ratio = 1 ,
509
+ ctrlmodeRatio = 0.8 ,
498
510
interval = 100 ,
499
511
ballistic = {
500
512
{1 , 0 },
@@ -566,6 +578,7 @@ function pubg.execOptions (options)
566
578
amount = # ballisticConfig2 , -- Number of bullets
567
579
interval = options .interval , -- Time of each bullet
568
580
ballistic = ballisticConfig2 , -- ballistic data
581
+ ctrlmodeRatio = options .ctrlmodeRatio , -- Individual recoil coefficient for each gun when squatting
569
582
}
570
583
571
584
end
@@ -590,6 +603,7 @@ function pubg.init ()
590
603
gunCount = gunCount + 1 -- Accumulative number of firearms configuration files
591
604
pubg .gun [type ][gunCount ] = gunName -- Adding available firearms to the Arsenal
592
605
pubg .gunOptions [type ][gunCount ] = pubg [gunName ]() -- Get firearms data and add it to the configuration library
606
+
593
607
-- 单独设置连发
594
608
pubg .gunOptions [type ][gunCount ].autoContinuousFiring = ({ 0 , 0 , 1 })[
595
609
math.max (1 , math.min (gunState + 1 , 3 ))
@@ -673,7 +687,7 @@ function pubg.getRealY (options, y)
673
687
end
674
688
675
689
if userInfo .aimingSettings == " ctrlmode" and IsModifierPressed (" lctrl" ) then
676
- realY = realY * 0.8
690
+ realY = realY * options . ctrlmodeRatio
677
691
end
678
692
679
693
return realY
0 commit comments