# Archetype Extensions

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FPLr9JPjfNe1z6hyjl0ln%2Fimage.png?alt=media&#x26;token=21942845-8655-435e-8cd2-a4797030025e" alt="" width="389"><figcaption></figcaption></figure>

### CExtensionDefExpression

Used for:<br>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FlSsRx06HM9aEBThAwo5v%2Fimage.png?alt=media&#x26;token=a1eec7de-ee82-495f-b2ae-88ef9a2b7309" alt="" width="381"><figcaption></figcaption></figure>

| Setting                    | Description                                |
| -------------------------- | ------------------------------------------ |
| Name                       |                                            |
| Expression Dictionary Name |                                            |
| Expression Name            |                                            |
| Creature Metadata Name     |                                            |
| Initialize on Collision    |                                            |
| Offset Position XYZ        | Extension offset relative to entity origin |

### CExtensionProcObject

Used For: Attaching / Spreading procedural objects<br>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FfVO5hrYBLu4BBsNkSZn9%2Fimage.png?alt=media&#x26;token=740fe9b1-54b4-41da-8cbd-719eedd20eb3" alt="" width="383"><figcaption></figcaption></figure>

<table><thead><tr><th width="222">Setting</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td>Extension Name</td></tr><tr><td>Radius Inner</td><td>Inside radius of a circle around the extension</td></tr><tr><td>Radius Outer</td><td>outside radius of a circle around the extension</td></tr><tr><td>Spacing</td><td>Distance between procedural objects</td></tr><tr><td>Min Scale</td><td>Lowest possible scale value</td></tr><tr><td>Max Scale</td><td>Highest possible scale value</td></tr><tr><td>Min Scale Z</td><td>Lowest possible scale value on the Z axis</td></tr><tr><td>Max Scale Z</td><td>Highest possible scale value on the Z axis</td></tr><tr><td>Min Z Offset</td><td>lowest possible offset on the Z Axis</td></tr><tr><td>Max Z Offset</td><td>Highest possible offset on the Z Axis</td></tr><tr><td>Object Hash</td><td>procedural object to use</td></tr><tr><td>Flags</td><td></td></tr><tr><td>Offset Position XYZ</td><td>Extension offset relative to entity origin</td></tr></tbody></table>

### CExtensionDefWindDisturbance

Used for:<br>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FYnOzIGWPKqDqWufE2tRq%2Fimage.png?alt=media&#x26;token=7e82bbc5-4f8d-415c-9774-261d257aa239" alt="" width="381"><figcaption></figcaption></figure>

| Setting             | Description                                |
| ------------------- | ------------------------------------------ |
| Name                | Extension Name                             |
| Offset Rotation XYZ | Extension rotation                         |
| Disturbance Type    |                                            |
| Bone Tag            | Linked bone's Bone Tag(Optional?)          |
| Size XYZW           |                                            |
| Flags               |                                            |
| Offset Position XYZ | Extension offset relative to entity origin |

### CExtensionDefSpawnPointOverride

Used For: Spawning / overriding ped spawns<br>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2F2Kqoaipg6z6smVNsTbsQ%2Fimage.png?alt=media&#x26;token=60d9da2b-6e46-4ab6-8ba2-0cd4a3433a99" alt="" width="383"><figcaption></figcaption></figure>

| Setting              | Description                                |
| -------------------- | ------------------------------------------ |
| Name                 | Extension Name                             |
| Scenario Type        | Scenario type from .ymt scenarios          |
| iTime Start Override | When the override should start             |
| iTime End Override   | When the override should end               |
| Group                | Ped Group                                  |
| Model Set            | Ped Model Set                              |
| Radius               | Radius of the Spawn Point Override         |
| Time Till ped Leaves | Time until ped stops task (in minutes?)    |
| Available in MP/SP   | Whether it is SP only or MP                |
| Scenario Flags       |                                            |
| Offset Position XYZ  | Extension offset relative to entity origin |

### CExtensionDefSpawnPoint

Used For: Attaching peds / ped scenarios to objects<br>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FfNNxB9K0YG9QTpuPMidW%2Fimage.png?alt=media&#x26;token=d4b4df93-910c-499b-8cdf-00fd756da6c8" alt="" width="383"><figcaption></figcaption></figure>

| Setting              | Description                                                           |
| -------------------- | --------------------------------------------------------------------- |
| Name                 | Extension Name                                                        |
| Offset Rotation XYZ  | Extension rotation                                                    |
| Spawn Type           |                                                                       |
| Ped Type             |                                                                       |
| Group                | Ped Group                                                             |
| Interior             | Interior Name (if inside one)                                         |
| Required Map         |                                                                       |
| Probability          | Chance for the scenario to spawn                                      |
| Time Till Ped Leaves | Time until ped stops task (in minutes?)                               |
| Radius               | Radius of the Spawn Point                                             |
| Start                | Time the scenario starts                                              |
| End                  | Time the scenario ends                                                |
| High Priority        | Prioritizes spawning of scenario                                      |
| Extended Range       | Extend range at which the scenario can spawn relative to the player   |
| Short Range          | Decrease range at which the scenario can spawn relative to the player |
| Available in MP/SP   | Whether it is SP only or MP                                           |
| Scenario Flags       |                                                                       |
| Offset Position XYZ  | Extension offset relative to entity origin                            |

### CExtensionDefLightShaft

Used For: Light Rays / God Rays

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2FYp1PQCe4f5pF1gITw4Ej%2Fimage.png?alt=media&#x26;token=aa96e9d9-9995-4327-85d1-cb877bea0cad" alt="" width="378"><figcaption></figcaption></figure>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2Fyui1WTUnYp62sBCuvLCP%2Fimage.png?alt=media&#x26;token=fcd1e325-1404-453a-b486-6ff5123c687f" alt="" width="383"><figcaption></figcaption></figure>

<figure><img src="https://4252508569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcRAM9lBHCqq3QodZ420I%2Fuploads%2F9EQiQeajbNViRFcQ55e1%2Fimage.png?alt=media&#x26;token=a1a7bb0b-4975-4c05-a3ec-94bd7e3a67bb" alt="" width="375"><figcaption></figcaption></figure>

| Setting                | Description                                                      |
| ---------------------- | ---------------------------------------------------------------- |
| Density Type           | How dense the light shaft should be                              |
| Volume Type            | Shape of the shaft                                               |
| Scale By Sun Intensity | Use in game sun intensity to effect brightness                   |
| Direction Amount       |                                                                  |
| Length                 | Length of the Light Shaft                                        |
| Color                  | Color of the Light Shaft                                         |
| Intensity              | Intensity of the Light Shaft                                     |
| Flashiness             | Flags for how fast and if the Light Shaft should flash / flicker |
| Flags                  | Only Possible flags are 35, 99, 83, 115, 51                      |
| Fade In Time Start     | When the Light Shaft should begin to appear                      |
| Fade in time End       | when the Light Shaft is fully visible                            |
| Fade Out Time Start    | When the Light Shaft should begin fading away                    |
| Fade Out Time End      | when the Light Shaft Shouldnt be visible                         |
| Fade Distance Start    | Distance at which the Light Shaft begins Fading                  |
| Fade Distance End      | Distance at which the Light Shaft is fully Faded                 |
| Softness               |                                                                  |
| Corner A XYZ           | Top Left Corner Coords                                           |
| Corner B XYZ           | Top Right Corner Coords                                          |
| Corner C XYZ           | Bottom Right Corner Coords                                       |
| Corner D XYZ           | Bottom Left Corner Coords                                        |
| Offset Position XYZ    | Extension offset relative to entity origin                       |
