Garry's Mod

Garry's Mod

[CW2] KK HK416 (2016)
 This topic has been pinned, so it's probably important
Knife Kitty  [developer] 18 Jan, 2015 @ 5:00am
Using my attachment model compiles/code in your packs
Im ok with that as long as you can keep it compatible with my release. Compatibility can be assured by following one of 2 sets of options described below.

#1: Copying
If you want to use any assets in their current state, you can make hard copy of required files but make sure you correctly
  • change file names of luas
  • change att.names IN luas

  • change file names(or paths) of copied models
  • change material PATHS IN modified models(.mdl files)(includes editing vmts)

  • change file names(or paths) of copied reticle materials
  • change material paths in luas to match modified reticle material names

  • change file names(or paths) of copied sounds
  • change sound paths in luas to match modified sounds names
  • change sound script/names in luas
Examples:
#2: Addon Dependency
Alternatively, if you dont want to waste your time in hex and text editors, you can enable my attachments only when my HK416 swep is present by checking state of global CustomizableWeaponry_KK_HK416. That way you ll use my release, no need to copy or edit any files, not even after I release update. Simple as that.

Examples:
If you have any questions related to this topic, ask below in Replies section.

Update #March 3rd 2015:
Regarding backup sights and holosight:
I recommend using these attachments the #2nd way.
Their state should be considered stable-wip rather than finished.
Last edited by Knife Kitty; 27 Jun, 2015 @ 12:40pm