-
Nov 10 2002, 02:35
#1
I'm finally starting to figure out how to get my weapons into OFP. I'm practicing with my RPK-74 from Ghost Recon.
I've just opened a config.cpp file for the first time, and I want to know if I can specify different capacity magazines for a parent weapon type.
For example, the RPK-74 will have a 45 rnd magazine because it is a support weapon, but they are interchangeable with 30rnd AK-74 mags in real life, so can I have the RPK-74 start with 45rnd mags, but be able to reload with AK-74 mags?
I guess the game needs to differentiate between 30 and 45 rnd mags. What about making two weapon modes (like the AK74 + GP25 grenade launcher) the first mode is:
'RPK-74 (45rnd)' which only uses 45rnd mags.
the next mode, instead of a grenade launcher, is
'RPK-74 (30rnd)' and when the game starts, the ammo is 0.
Both modes would be identical, except they would be handled by the game as two different weapon types - so they each have their magazine types.
Would this work, and do you think it would be feasible in the game?
Hmm, i guess this wouldn't really be right, because you could reload both weapon types for a total of 75 rounds without having to change a magazine.
Any ideas?
-
Thats not nessacary. you can just define two types of magazine
just create your two different classes for the ammo. you can define a class for your first magazine and then have the other sort inhherit the characteristics of that, and just change the number of rounds (Count = 30 and Count = 45)
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
magazines[] = {"RPK74_45","RPK74_30"}
[/QUOTE]<span id='postcolor'>
-
The HK pack has something similar for its G8 , it fires belts, drums and mags, each has a different model too, its very good.
-
Nov 10 2002, 20:02
#4
Okay, thanks vade_101. I don't want to create a new RPK 30rnd mag, I want to have the option of using AK74 mags that are found on the battlefield if the gunner runs out of 45rnd mags. That's still possible, right?
Is there a way that I can make my RPK 45rnd mag work with standard AK74's from the original game, or would I need to create a new AK74 config for that to work?
-
I made this:
magazines[]={"RFRPK74M", "RFAK74M"};
(this is example code from my addon)
In this list may be Ak47 in place of RFAK74M and RPK74 in place of RFRPK74M. BUT! Name of weapon changed to AK74. Cartridge capacity will be 30 rounds.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules