modding:xml:weapon
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
modding:xml:weapon [2017/03/03 03:55] – Add <OnCreateShot>, <OnDamageAbandoned>, and <OnDestroyShot> 0xabcdef | modding:xml:weapon [2017/04/13 16:50] – fixed aarmorseg digdug | ||
---|---|---|---|
Line 293: | Line 293: | ||
* **fragmentInterval=** The number of ticks between each detonation. Sets fragmentation to be periodic and disables proximity detonation. | * **fragmentInterval=** The number of ticks between each detonation. Sets fragmentation to be periodic and disables proximity detonation. | ||
=====Standard Stats===== | =====Standard Stats===== | ||
- | ^ Level | | + | ^ Level | |
^1 | 4 |10 |350 |0.6 | 0 | 0 | | ^1 | 4 |10 |350 |0.6 | 0 | 0 | | ||
^2 | 5 |20 |800 |1.2 | 0 | -20 | | ^2 | 5 |20 |800 |1.2 | 0 | -20 | | ||
Line 435: | Line 435: | ||
* **aDamageHP** is the adjusted damage (in hit points) that reached the armor. | * **aDamageHP** is the adjusted damage (in hit points) that reached the armor. | ||
* **aDamageType** is the type of damage. | * **aDamageType** is the type of damage. | ||
- | * **aArmorSeg** is the armor segment that would be hit if it penetrates overlay and shields. | + | * **aArmorSeg** is the armor segment |
* **aHitDir** is the absolute direction that the projectile came from. | * **aHitDir** is the absolute direction that the projectile came from. | ||
* **aHitPos** is the vector position where the shot hit. | * **aHitPos** is the vector position where the shot hit. | ||
Line 458: | Line 458: | ||
* **aDamageType** is the type of damage. | * **aDamageType** is the type of damage. | ||
* **aDeviceItem** is the shield item. | * **aDeviceItem** is the shield item. | ||
- | * **aArmorSeg** is the armor segment that would be hit if it penetrates shields. | + | * **aArmorSeg** is the armor segment |
* **aHitDir** is the absolute direction that the projectile came from. | * **aHitDir** is the absolute direction that the projectile came from. | ||
* **aHitPos** is the vector position where the shot hit. | * **aHitPos** is the vector position where the shot hit. | ||
Line 471: | Line 471: | ||
This event is called when a projectile from this weapon hits the armor of a ship. If the event returns an integer, the value is interpreted as the amount of damage to do to armor (before adjustments for damage type). If the event returns Nil, the original damage amount is unchanged. | This event is called when a projectile from this weapon hits the armor of a ship. If the event returns an integer, the value is interpreted as the amount of damage to do to armor (before adjustments for damage type). If the event returns Nil, the original damage amount is unchanged. | ||
* **gSource** is the object that was hit by the projectile. | * **gSource** is the object that was hit by the projectile. | ||
- | * **aArmorSeg** is the armor segment on the object that was hit. | + | * **aArmorSeg** is the armor segment |
* **aAttacker** is the object that fired the projectile. | * **aAttacker** is the object that fired the projectile. | ||
* **aCause** is the projectile object. | * **aCause** is the projectile object. |
modding/xml/weapon.txt · Last modified: 2018/07/09 08:39 by assumedpseudonym