Graviteam
April 30, 2024, 09:44:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: common_res.engcfg WEAPONS  (Read 4688 times)
0 Members and 1 Guest are viewing this topic.
bearcat83
Oberleutnant
**
Posts: 5


« on: February 08, 2014, 12:15:16 PM »

Hi guy´s

i´ve just build some new weapons in the common_res.engcfg, but i had some problems with the rate of fire ...

is there someone who knows the meaning of all entry´s for a weapon?

for example my MK 108 for a Me-109K
"
30mm_MK108,%FL_AUTOLOAD%,%WEAP_RBARRET%,46,30,1,0.1,0.05,0.1,100,0.1,6   ,1,0.3,0,shot_mg151,reload2,chreload1,drop1,10,txt_gun_30_mk108,gun_shot_pat,,30mm_MK108;
"
1- 30mm_MK108                                   > Config name of the gun
2- %FL_AUTOLOAD%                             > Gun Type
3- %WEAP_RBARRET%                           > Gun Type
4- 46                                                  > Barrel length
5- 30                                                  > caliber 30mm
6- 1                         >?
7- 0.1                      >?
8- 0.05                     >?
9- 0.1                       >?
10- 100                      > size of the magazine > 100 round´s
11- 0.1                     > rate of fire > one shot every 0.1seconds = 600 rounds/minute (should be...)
12- 6                        > magazine reload time > 6 seconds
13- 1                        >?
14- 0.3                     >?
15- 0                        >?
16- shot_mg151         > name of the soundfile for the shot (data/k42/loc_rus/sounds/shots)
17- reload2               >  soundfile reload  (data/k42/loc_rus/sounds/inner)
18- chreload1            > ?
19- drop1                 > ?
20-10                      > ?
21-txt_gun_30_mk108 > name of the gun "in game" (data/k42/loc_rus/text/loc_kit.text)
22-gun_shot_pat
23- ,(empty)
24- 30mm_MK108;      > Config name of the gun for "ammo" e.g. different gun´s can use the same ammo (like the F34, ZIS3 and PP27)
 
« Last Edit: February 08, 2014, 03:15:11 PM by bearcat83 » Logged
bearcat83
Oberleutnant
**
Posts: 5


« Reply #1 on: February 08, 2014, 12:18:48 PM »

"10- 0.1                     > rate of fire > one shot every 0.1seconds = 600 rounds/minute (should be...)"

but if i try the gun in a tank and change the magazine size to 600 rounds ... after one minute of firing ... still 300 rounds are left in the mag

but i´ve the KI use it in the plane ... it look´s like that it shot´s faster - maybe the 600 /min


next thing is: how can i change the accuracy of the KI using the gun´s --> like the Infantry using there rifles --> would like to make them less accurate

in the shells() part of the common_res.engcfg i can only change iit for both (player and KI)

BUL_792,0x01,%SHELL_AP%,BUL_792,797   ,40,0.5,0.3,0,1,0,0,0.0128,0,0.6,8,5   ,5   ,0.1,0,1,1,1,,,,,,fly1,0,800,1,txt_shell_bul792,apmg_expl_pat,rico_pat_bul,piece_pat
,0,1,1,1,1,0xffff4040,2,0.7,-1,-1,-1;

but i tried to put the number up to 20, 20 and the KI infantry is deadly accurate as before


 
« Last Edit: February 08, 2014, 12:26:45 PM by bearcat83 » Logged
lockie
Generalfeldmarschall
*****
Posts: 2348



« Reply #2 on: February 08, 2014, 01:50:17 PM »

Let's take the gun C53.

C53,0,%WEAP_RBARRET%,54.6,85,1,0.35,0.1,1,1,0,8,1,1,0.75,shot_f34,reload1,,drop1,1,txt_gun_C53,gun_shot_pat,,C53;

1. С53 - name
2. 0 – flags (х80- bombardment, х01-autoload), (data\k42\loc_rus\levels\levels\common\weap_defs.engcfg)
3. %WEAP_RBARRET% -  type
4. 54.6 - barrel length, cal
5. 85 - caliber, mm
6.  1 - coefficient of the recoil
7.  0.35 - back-blow, m (how long the barrel will go back after shot)
8.  0.1 - time of back-blow, s (how long the barrel goes back in sec)
9.   1 - time of uprush, s (how long the barrel goes forward in sec)
10. 1 - the number of the cartridges quantity in the magazine
11. 0 - time to replace a magazine, s (for the machine gun)
12. 8 - reload time of the one shell, s
13. 1 - dependence on the loader expirience
14. 1 - the quantity of the smoke at the shot
15.  0.75 - the value of the liftable dust
16. shot_f34 - shot sound (data/k42/loc_rus/sounds/shots)
17. reload1 - reload sound (data/k42/loc_rus/sounds/inner)
19. « » - sound of the magazine changing (data/k42/loc_rus/sounds/inner)
20. drop1 - sound of the droped-out case/shell (data/k42/loc_rus/sounds/inner)
21. 1 -  the quantity of the shots in the burst for the AI
22.  txt_gun_C53 - text name of the gun (not used in the game), (data/k42/loc_rus/text/loc_kit.text or SPM1.5 NTA 1.3_units.text )
23. gun_shot_pat - pattern of the shot
24. « » - weapon geometry (only for the wearable weapon)
25. С53 - gun marker (config name of the gun for "ammo" e.g. different gun´s can use the same ammo, like the F34, ZIS3 and PP27)
============
So, if we want to calculate the rate of fire, i.e. for our virtual MG, then we must know:

8.  time of back-blow - 0.21s
9.  time of uprush - 0.1s
11. time to replace a magazine - 1s

let's adding:
0.21+0.1+1=1.31
Finally: 60sec/1.31sec~46 shots per minute

In SF the rate of fire of all weapons is very decreased. I think because of the stupid AI who will shoot all cartridges for a couple minutes Smiley
« Last Edit: February 10, 2014, 06:36:35 AM by lockie » Logged

Provocative signature removed
bearcat83
Oberleutnant
**
Posts: 5


« Reply #3 on: February 08, 2014, 03:13:27 PM »

thank you!!!

but i can´t read  the numbers 13 - 25 .... english please!!! Cheesy

ok, anything about changing the accuracy of the gun´s Huh?
Logged
lockie
Generalfeldmarschall
*****
Posts: 2348



« Reply #4 on: February 08, 2014, 04:01:20 PM »

thank you!!!
With my pleasure Wink
In fact, will1973 informed me how to calculate the rate of fire. Thanks to him!

Quote
ok, anything about changing the accuracy of the gun´s Huh?
There nothing to add.
Parameters
Code:
17 KVO x (square deviation on X)
18 KVO y (square deviation on Y)
are exactly responsible for the accuracy. In case, if u didn't satisfy, then simply increase the value, i.e. `200` instead `20` or even `2000` Grin
« Last Edit: February 08, 2014, 04:05:26 PM by lockie » Logged

Provocative signature removed
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!