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 #305584] Mon, 04 June 2012 03:52 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
AttachmentPoint.xml is fine, but the item tags are a bit off.

On the attachment add:
1
20


(The "Attachment Data" tab on the item detail form is for the attachment.)

On the base items(s) add:
1


(The "Attachments" tab on the item detail form is for the base item.)

There are 10 possible AvailableAttachmentPoint flags.

Think of AvailableAttachmentPoints like hard points or locations on the gun: the stock, the muzzle, the rails, the hand guard, etc. And think of AttachmentPoint like where the attachment fits.

In your case attachment = gun and base item = explosive. This a little different than usual as the gun is normally the base item, and it could end up being a little buggy... You might also need to create a NAS layout for explosives and some slots, along with a new attachment class. It might result in being able to attach things like laser sights to the explosive when the gun is attached, which would be kind of weird.

You can check out the Experimental\Data-Test folder in my branch for some CAF examples.


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:09:29 GMT+2 2025

Total time taken to generate the page: 0.01515 seconds