-
Notifications
You must be signed in to change notification settings - Fork 37
Attachment Parameters
These can be found in lua/arccw/shared/attachments/default.lua
Many of these can be used in the weapon script itself, especially hooks
99.99% of all ArcCW hooks have wep
as their first parameter.
string
Long name of the attachment used in the spawnmenu and in the Customization UI preview.
string
Abbreviated short name used in the Customization UI attachment selection list.
IMaterial
Icon used in the spawnmenu and Customization UI.
string
Description of attachment used in the Customization UI.
table
List of positives used in the Customization UI.
EX:
att.Desc_Pros = {
"This describes a positive of the attachment"
}
table
List of negatives used in the Customization UI.
EX:
att.Desc_Cons = {
"This describes a negative of the attachment"
}
table
List of neutral information used in the Customization UI.
EX:
att.Desc_Neutrals = {
"This describes something neutral about the attachment or some controls"
}
table
OR string
List or string used to dictate what slots this attachment can go on to.
EX:
att.Slot = "optic"
att.Slot = {"optic_sniper", "optic"}
boolean
Generate an entity for this attachment.
boolean
Whether only administrators should be allowed to spawn and attach this attachment.
boolean
Whether ArcCW should invalidate this attachment's existance.
string
If set to another attachment, owning this will own that one as well.
boolean
Whether this attachment is always available to anyone regardless of them owning it.
boolean
Should Pick X ignore this attachment and not increment the counter?
boolean
Whether this attachment is invisible to the UI.
boolean
If the attachment cannot be attached due to flag restrictions, it is invisible to the UI.
boolean
If the attachment isn't owned, it is invisible to the UI.
boolean
Whether the attachment should be disallowed to be attached through a random roll.
number
Random rolling weight. Defaults to 1. To avoid issues, it should be an integer.
boolean
NPCs will not randomly spawn with this weapon or attachment.
string
Adds a prefix to the weapon name.
string
Adds a suffix to the weapon name.
table
A very powerful system to allow changing of stats by the player.
EX:
NO EXAMPLE YET!
NO EXAMPLE YET!
NO EXAMPLE YET!
NO EXAMPLE YET!
NO EXAMPLE YET!
NO EXAMPLE YET!
boolean
Whether this optic should keep the original ironsight position intact.
boolean
Whether the original ironsights should the first one used.
table
Flags to give when this attachment is installed.
table
Flags to require for this attachment to be installed.
table
Flags that will not allow this attachment to be installed.
function
Parameters are wep, data
data
is a table
I'm not sure.
Any strings present in data will be added to the weapon's flags.
table
A very powerful system to allow additional slots to be added to the weapon.
UNFINISHED. DO NOT USE.
number
Defines how many of these attachments are allowed to be installed on this weapon.
string
Model to use to represent this attachment.
boolean
Don't draw the model.
string
String of bodygroups that should be toggled on the model.
EX:
att.ModelBodygroups = "01120000"
number
The skin that should be used on this model.
Vector
Scale applied to the model.
Vector
Offset applied to the model.
Angle
Angle offset applied to the model.
boolean
Whether the model should have a collision model.
number
How much penetration an ArcCW weapon should have to shoot through this shield.
string
Which bone the shield model should be attached to.
boolean
Whether this attachment should be a charm.
string
Not 100% sure.
string
Model to use for the charm.
Vector
Offset applied to the charm.
Vector
Scale applied to the charm.
number
Skin used on the charm model.
string
Bodygroups used on the charm model.
number
Health used for breakable attachments.
Vector
Offset applied to the shield collision model.
Angle
Angle to apply to the shield collision model.
number
Damage to apply to the attachment on weapon fire.
number
Damage to apply to the attachment when the weapon is reloaded.
number
Damage to apply every second to the attachment.
function
Parameters are wep, element, wm
element
is a ??? Entity maybe ???
wm
is a ??? Entity maybe ???
ArcCW is made by a team of pretty good modders.
Contribute at https://github.com/HaodongMo/ArcCW