Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: The NAS Receiver[message #303910]
|
Wed, 25 April 2012 20:21
|
|
Madd_Mugsy |
|
Messages:634
Registered:July 2005 Location: Canada |
|
|
Quote:
Summary, is the following how the system will work for BR display of attachments and in-game use:
Total Attachment List = Attachments defined by proposed Receiver System + direct to item in Attachments.XML + attachments-added-by-attachments (can attachments make use of the Receiver System?)
Yep.
And the attachments themselves can have the nasReceiver tag set on them. When the game looks at an object for its nasReceiver tag, it will also add on any nasReceiver tags set by attachments. This is similar to the way the nasLayoutClass tag works now.
You could have a gun with a "NATO + Assault Rifle" receiver, and add an attachment with a "RIS Tri-Rail" receiver to get a gun with all three receivers.
I'm playing around with this now, using NATO, AK and RIS receiver tags, each broken down into Small, Medium, Large and Sniper values. I've also created tags for most sizes and types of weapons.
My test data looks something like this (including all OR'ed tags):
0 None
1 Pistol Small
2 Pistol Medium
4 Pistol Large
7 Any Pistol
8 Revolver
16 Revolver Large
24 Any Revolver
32 Machine Pistol
39 Any Pistol / Machine Pistol
63 Any Handgun
64 Submachinegun
128 Shotgun
256 Hunting Rifle
512 Assault Rifle
576 Assault Rifle / SMG
1024 Sniper Rifle
2048 Light Machinegun
2624 Assault Rifle / SMG / LMG
4096 WWII Rifle
4352 Hunting / WWII Rifle
8000 Guns - Two Handed (Not Shotguns)
8128 Guns - Two Handed
8148 Guns - Medium-Large
8191 Any Gun
8192 NATO Small
8193 NATO Pistol Small
8194 NATO Pistol Medium
8196 NATO Pistol Large
8200 NATO Revolver
8208 NATO Revolver Large
8224 NATO Machine Pistol
8255 NATO Handgun
16384 NATO Medium
16448 NATO Submachinegun
32768 NATO Large
32896 NATO Shotgun
33024 NATO Hunting Rifle
33280 NATO Assault Rifle
34816 NATO Light Machinegun
36864 NATO WWII Rifle
49152 NATO Medium / Large
65536 AK Small
65537 AK Pistol Small
65538 AK Pistol Medium
65540 AK Pistol Large
65568 AK Machine Pistol
65599 AK Handgun
131072 AK Medium
131136 AK Submachinegun
262144 AK Large
262272 AK Shotgun
262400 AK Hunting Rifle
262656 AK Assault Rifle
264192 AK Light Machinegun
266240 AK WWII Rifle
393216 AK Medium / Large
524288 26.5mm GL
1048576 40mm GL
1048704 40mm GL / Shotgun
2097152 40mm VOG GL
4194304 40mm MS GL
8388608 43mm GL
16777216 37mm GL
33554432 30mm GL
67108864 RIS Bottom
134217728 20mm GL
268435456 25mm GL
536870912 RIS Small
536879105 RIS NATO Pistol Small
536879106 RIS NATO Pistol Medium
536879108 RIS NATO Pistol Large
536879136 RIS NATO Machine Pistol
1073741824 RIS Medium
1073758272 RIS NATO Submachinegun
1073872960 RIS AK Submachinegun
2147483648 RIS Large
2147516544 RIS NATO Shotgun
2147516672 RIS NATO Hunting Rifle
2147516928 RIS NATO Assault Rifle
2147518464 RIS NATO Light Machinegun
2147520512 RIS NATO WWII Rifle
2147746304 RIS AK Assault Rifle
2147749888 RIS AK WWII Rifle
3221225472 RIS Medium / Large
4294967296 NATO Sniper
4294968320 NATO Sniper Rifle
4294972416 NATO WWII Sniper Rifle
4295000064 NATO Large / Sniper
4295001600 NATO DMR Rifle
4295016448 NATO Medium / Large / Sniper
4295024640 NATO Any
8589934592 AK Sniper
8589935616 AK Sniper Rifle
8590196736 AK Large / Sniper
8590198272 AK DMR Rifle
8590327808 AK Medium / Large / Sniper
8590393344 AK Any
17179869184 RIS Sniper
19327352832 RIS Large / Sniper
20401094656 RIS Medium / Large / Sniper
20937965568 RIS Any
21474837504 RIS NATO Sniper Rifle
23622354432 RIS NATO DMR Rifle
24696094720 RIS Medium/Large/Sniper or NATO Large/Sniper
25232990208 RIS Any or NATO Any
25769804800 RIS AK Sniper Rifle
27917551104 RIS AK DMR Rifle
33286291456 Any Large/Sniper (or RIS Medium)
34359738368 HK Receiver
34359754816 HK NATO Submachinegun
34359771648 HK NATO Assault Rifle
34359773184 HK NATO Light Machinegun
35433496640 HK RIS NATO Submachinegun
36507255296 HK RIS NATO Assault Rifle
36507256832 HK RIS NATO Light Machinegun
38654706688 HK NATO Sniper Rifle
38654739968 HK NATO DMR Rifle
55834575872 HK RIS NATO Sniper Rifle
57982092800 HK RIS NATO DMR Rifle
It's probably overkill BTW, I set it to use "Decimal" in the editor and UINT128 in the game so that there are lots of possible tags. Also notice the GL tags -- this approach works for launchers too.
I think we could do muzzle attachments with tags as well, but there gets to be a point where this approach becomes more work than its worth
I'm using a lot of AIMNAS attachments in my testing, and I did manage to get the list of attachments from Attachments.xml for a given gun down by around 75%.
More examples, for those interested:
(These are not going to be 100% accurate to real life)
Attachments
ISM-V-IR Aiming Module RIS Medium / Large / Sniper
Battle Scope, 7x RIS Medium/Large/Sniper or NATO Large/Sniper
Reflex Sight RIS Any or NATO Any (I don't allow these on AK weapons in my games)
Old Aimpoint Projector HK Receiver
Rifle LAM RIS Large / Sniper
Bipod Any Large/Sniper (or RIS Medium)
PSO-1 Scope AK Large / Sniper
Laser Sight Any Gun
Small Scope, 2x Guns - Medium-Large
Duckbill Shotgun
Guns
Glock 18 NATO Pistol Medium
Colt Anaconda NATO Revolver Large
AKS-74 AK Assault Rifle
Barrett M468 RIS NATO Assault Rifle
HK G36 HK NATO Assault Rifle
HK G36 RAS HK RIS NATO Assault Rifle
FN SCAR-H SV RIS NATO DMR Rifle
I'm still working on adding GLs to the NATO/AK/RIS mix. EDIT: Wow, those were pretty easy actually.
In general, I think this system works best for attachments which have a wide variety of possible receivers, and it isn't worth the headache of setting it up if an attachment only works on a few items.
[Updated on: Wed, 25 April 2012 20:30] 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 09:58:34 GMT+2 2025
Total time taken to generate the page: 0.01740 seconds
|