Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)[message #304063] Mon, 30 April 2012 06:11 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
For the Flash Hider, you would just OR the records together for the various barrels. For instance:

[Code]
Pistol barrel. 1
Revolver barrel 2
AR barrel. 4
Sniper barrel. 8
Shotgun barrel. 16
Open barrel. 15 (=1+2+4+8, for flash hider and any other item that would work)
[Code]

Having 10 available fields for AvailableAttachmentPoint doesn't eliminate all the manual OR'ing, but it makes things much simpler.

We do have this interface for the bitmask fields, but it's not currently calculating the values for you.

If you look at the latest XML editor in the svn gamedir, there's a prototype (and hidden from the ui) bitmask combiner tool for CAF that can be accessed by pressing ctrl-shift-alt-a. It just groups records as checkboxes into columns by first name, and then calculates the result of selected checkboxes; after that you can type in a name for the new record and add it to the table with a button press.

Report message to a moderator

First Sergeant

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Stealth Mechanics
Next Topic: [IDEA] New Magazine System
Goto Forum:
  


Current Time: Fri Jan 10 10:33:46 GMT+2 2025

Total time taken to generate the page: 0.02334 seconds