-
Notifications
You must be signed in to change notification settings - Fork 3
Beam Extensions
Athena Framework allows modders to create Thing-based beams. (instead of vanilla's mote stream beams)
Your thing's thingClass should be set to BeamRenderer or it's child. It'll also need a BeamExtension mod extension which will hold your beam's parameters.
public class BeamExtension : DefModExtension
{
// Range at which the beam is cut
public float maxRange;
// Delay between beam frames
public int textureChangeDelay;
// Amount of texture frames
public int textureFrameAmount = 1;
// Amount of textures for different beam lengths
public int sizeTextureAmount = 1;
// Duration after which beam will be destroyed. Disabled if set to -1
public int beamDuration = -1;
}AF's beams can cycle through multiple textures based both on current tick(like frames) and on beam's current length. Your beam's textures could be set in multiple ways:
When your beam only has one frame and one size texture:
BeamTexPath
Due to how game loads it's assets, it's important that BeamTexPath.png still exists, even if your beam uses frame/size textures.
When your beam has only one size texture but multiple frames:
BeamTexPath
BeamTexPath1
BeamTexPath2
BeamTexPath3
When your beam has only one frame but multiple size textures
BeamTexPath
BeamTexPathA
BeamTexPathB
BeamTexPathC
When your beam has both multiple frames and size textures
BeamTexPath
BeamTexPathA1
BeamTexPathA2
BeamTexPathB1
BeamTexPathB2
- Stats
- Gene Templates
- Pawn Group Utility
- Under Group Combat Pressure Think Node
- Min Prey Body Size
- Modular Things
- Gene Locked Recipes and Buildings
- Additional Gene Drops
- Angle Based Shotguns
- Following ("Running") Beams
- Pawn Turret Extensions
- Damage Modification
- Advanced Tools
- Shockwave Attacks
- Miniguns
- Elite Shot
- AOE Hediff Explosion Projectiles
- Frag Grenades
- Cooldown Graphics
- Scatter Things Ability
- Abilities on Equipment
- Burst Projectile Abilities
- Reloadable Abilities
- Shockwave Ability
- Projectile Comps
- Projectile Impact Effects
- Projectile Trails
- Bouncy Projectiles
- Spawner Projectiles
- Roof Collapse Projectiles
- Scattershot Projectiles
- Custom Body Graphic For Apparel
- Multi Layered Apparel Graphics
- Advanced Equipment Shields
- Equipment with Prerequisites
- Advanced Armor
- Gene-based Apparel Textures
- Gene Locked Equipment
- Additional Apparel Graphics Comps
- Hediff Giver Extension
- Bomb Hediff Comp
- Remove On Severity Comp
- Renderable Hediffs
- Shield Hediffs
- Armored Hediffs
- Disableable Hediffs
- Modular Hediffs
- Hediffs with Prerequisites
- Singular Hediff Abilities
- Hediff On Damage
- Additional Hediff Graphics Comps
- Caching
- IArmored
- IDamageResponse
- IRenderable
- IStageOverride
- IStatModifier
- IProjectile
- IPreventEquip
- IHediffGraphicGiver and IEquippableGraphicGiver
- IDamageModifier
- IColorSelector
- IBodyModifier