Updated Notable Changes from ArcCW (markdown)

TheOnly8Z 2023-01-23 14:56:21 -06:00
parent 35a92d7305
commit b3b44f27bb

@ -224,8 +224,59 @@ SWEP.EnterSightsSound = ""
SWEP.ExitSightsSound = ""
```
## Animations
Several variables are renamed and some are removed. Unless specified otherwise, they will work identically.
| ArcCW | ARC9 |
| ---------------- | ----------- |
| SoundTable | EventTable |
| ShellEjectAt | EjectAt |
| LastClip1OutTime | MagSwapTime |
| LHIK* | N/A |
| LHIKTimeline | IKTimeLine* |
| TPAnim | N/A |
* LHIK: Related variables are also removed - use IKTimeline.
* IKTimeLine: Can also set `rhik` in addition to `lhik`.
## AttachmentElements
VM / WM distinctions are no longer necessary - simply set `Skin` instead of `VMSkin`, etc.
* `VMBodygroups = {{ind = 1, bg = 1}}` is now `Bodygroups = {{1, 1}}`.
* For `AttPosMods`, use `Pos` and `Ang` instead of `vpos` and `vang`.
* `VMElements` is now `Models` - see shared.lua for specific variable changes.
# Slots
wip
With the introduction of Subslots, slots have also undergone notable changes.
### Flags and Elements
Flags are entirely replaced by elements.
```lua
-- ArcCW
{
RequireFlags = {}, -- if the weapon does not have all these flags, hide this slot
ExcludeFlags = {}, -- if the weapon has this flag, hide this slot
GivesFlags = {}, -- give these slots if something is installed here
DefaultFlags = {}, -- give these slots UNLESS something is installed here
InstalledEles = {},
DefaultEles = {},
}
-- ARC9
{
RequireElements = {},
ExcludeElements = {},
InstalledElements = {}, -- Replaces both GivesFlags and InstalledEles
UnInstalledElements = {}, -- Replaces both DefaultEles and DefaultFlags
}
```
### DefaultAttName / DefaultAttIcon
`DefaultAttName` and `DefaultAttIcon` are renamed `DefaultName` and `DefaultIcon`, and are otherwise identical.
### Integral
In ArcCW, `Integral` is a boolean value that when set, makes the slot unable to be modified.
In ARC9, `Integral` is a string value that when set, ensures that the slot should never be empty. The string value is the "default" attachment. The slot can be modified so long as the slot remains filled. This behavior also applies to subslots - if an added subslot is integral, it must be filled or the attachment cannot be added.
# Attachments
The biggest change is the new stat handling system - see https://github.com/HaodongMo/ARC-9/wiki/Stat-Handling.