Home » MODDING HQ 1.13 » v1.13 Coding Talk » Folding Stock Revamp
Re: Folding Stock Revamp[message #284955]
|
Tue, 28 June 2011 21:27 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
Wil473 |
![](http://thepit.ja-galaxy-forum.com/images/avatars/mistery_man.png) ![](/images/ranks/liutenant.png) |
Messages:2815
Registered:September 2004 Location: Canada |
|
|
Essentially too I wasn't happy with the "official" folding stock system which is something along the lines of: assuming that the stock is folded for a fraction of the time on average, incur a fraction of benefits and penalties at all times... (StarWalker can explain the official system better than I can.) And I decided to see what could be done purely with XML manipulation.
Folding Stock System (now in its 3rd iteration, 4th if you count the NCTH addon's) is on the surface described by the following from page 10 of the UC-1.13 documentation:
Quote:Use of the folding stock will change a weapon from one form (item index) to another. Each form will have different stats, but in general:
Folded Stock - Lower AP costs vs. Lower To-Hit%
Extended Stock - Higher To-Hit% vs. Higher AP Costs
To use:
1. Stock in Top Right Stock Slot is for folded out/extended/in-use stock
2. Stock in Bottom Right Stock Slot is for folded away/retracted/in-storage stock
3. two clicks are required, first to convert the stock, second to attach to the wanted stock slot
Under the hood, v2 and v3 uses an unexpected property of New Attachment System (NAS), where an item that is set to attach to a specific slot will not trigger any mergers it is also setup for with the weapon. Each weapon with a folding stock is set with a single slot the Folding Stock System (FSS) item will attach to. Moving the FSS item to any other slot will trigger a merger. Another property is that the slot moves relative to the other form of the weapon, so there is the illusion that the stock's position defines its mode, in reality any attachment slot other than the "legal" slot for attachment will trigger the conversion.
Updating on what JMich noted earlier, in v3 the FSS item has no modifying attributes, all it does is trigger a non-destructive USE merger that transforms the weapon into a copy of the weapon with additional modifiers to represent its stock folded/unfolded mode.
Though some consider the overhead high (even without a working XMLEditor at the time, it wasn't that bad):
- very specific traits for the alternate form of each weapon, instead folded stock always = 30% lower AP, etc...
- Graphical representation of when the stock is folded, this is the high overhead part, but it was entirely my choice to create graphics of each gun in its alternate stock mode
For more information please see UC-1.13 v3.50 (and the v3.51 Cumulative Patch) that is noted in my signature.
[Updated on: Tue, 28 June 2011 21:56] by Moderator Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue Feb 11 21:10:24 GMT+2 2025
Total time taken to generate the page: 0.00683 seconds
|