Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: The NAS Receiver[message #303932]
|
Thu, 26 April 2012 10:07
|
|
Wil473 |
|
Messages:2815
Registered:September 2004 Location: Canada |
|
|
A single bitmask should be able to accomplish taking that list down further. Again this is based on my own project as it already has various families of guns using adapters to add RIS. Basically if a set of three or more attachments are common to a couple of guns it gets a "receiver":
0 None
1 pistol under barrel rail
2 pistol modular sights - Match, Reflex, Compact Holo Sights
4 RIS Optics
8 Russian Small Arms (RSA) Optics
16 SVD Optics
32 Scope Rings
64 HK Clamp Optics - Aim-Point-Projector, Clamp 4x Scope, RIS rail
128 AR-15 Carrying Handle - optics and a RIS rail
256 Modular Tactical Stock - yes I know one bit isn't going going to be enough for AIMNAS and all its stocks
512 Light RIS Hand Guard - RIS Grips, RIS Bipods, LAM
1024 Medium RIS Hand Guard - above + M203QD
2048 Heavy RIS Hand Guard - above + all RIS Launchers
4096 Top RIS Hand Guard - LAM's and RIS Bipod (weapon hangs from bipod)
8192 AK Hand Guard - Bipod, Grip, GP-30, RIS Handguard
16384 MP5 Hand Guard - Bipod, Grip, RIS Tri-Rail
32768 G3 Hand Guard - above + HK79
65536 M16 Hand Guard - Bipod, Grip, M203, three sizes of RIS Quad
131072 M4 Hand Guard - Bipod, Grip, two sizes of RIS Quad incl. the MWS which allows short barrel M203QD to be attached
262144 Pistol Suppressors
524288 Magnum Suppressors
1048576 Intermediate Cartridge Suppressor
2097152 AK Suppressors
4194304 Hi-Power Ammo Suppressor
8388608 40mm NATO Grenades
16777216 40mm Russian Grenades
33554432 37mm Grenades
67108864 Basic Vest Attachments
With bitmasks the above should be able to cover all the most common attachments. Magazine Adapters I'd think would work better on a case by case basis in Attachments.XML.
EDIT: Examples, and it took a while for me to complete the list...
AK-74 = 8 + 8192 = 8200 (RSA optics, AK Handguard)
AK-107 = 8 + 16 + 8192 = 8216 (Russian/Soviet NV optics mount = RSA + SVD optics)
AK-74 Tactical Stock = 8 + 256 + 8192
M16 = 128 + 256 + 65536 = 65920 (early model M16)
M16A4 = 4 + 256 + 65536 = 65796 (Flat Top M16)
REC7 = 4 + 256 + 2048 = 2308 (comes with Quad RIS handguard)
M4A1 = 4 + 256 + 131072 = 131332 (almost like a Flat Top M16, but it will never allow large launchers to be attached)
The above actually now looks more like ChrisL's NAS 0.7 than Warmsteel's NAS 0.6, either way nesting bundles of attachments.
[Updated on: Thu, 26 April 2012 10:29] by Moderator Report message to a moderator
|
|
|
|
|
|
(New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: The NAS Receiver
By: Flugente on Wed, 25 April 2012 01:45
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: Flugente on Wed, 25 April 2012 02:49
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: Wil473 on Wed, 25 April 2012 18:51
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: Wil473 on Thu, 26 April 2012 10:07
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: Wil473 on Thu, 26 April 2012 16:48
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: Wil473 on Thu, 26 April 2012 18:16
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
|
|
|
Re: The NAS Receiver
By: JMich on Fri, 27 April 2012 10:50
|
|
|
(New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Fri, 27 April 2012 18:19
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Sun, 29 April 2012 23:20
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Sun, 03 June 2012 18:14
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Thu, 07 June 2012 22:38
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Sun, 02 August 2015 01:44
|
|
|
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)
By: Wil473 on Sun, 07 April 2013 19:19
|
Goto Forum:
Current Time: Fri Jan 10 10:28:16 GMT+2 2025
Total time taken to generate the page: 0.02305 seconds
|