-
Notifications
You must be signed in to change notification settings - Fork 126
Projectiles & Clips
Arpit Kamboj edited this page Jan 20, 2018
·
8 revisions
A projectile is a bullet that a gun fires. To add new projectiles to a module you need to add a projectile configuration file to your module's configs.
A projectile consists of 2 parts:
- A texture of the projectile in assets/textures/projectiles/
- A clip that is actually attached to the gun to fire the projectile.
The properties of projectile must be defined in /configs/projectilesConfig.json . These include:
- Damage - dmg
- Damage Type - dmgType
- Speed of the projectile - spdLen
- Texture - tex
- Size of the texture (scale) - texSz
- The collision effect settings (the glowing animation for gun fire) collisionEffect
- The effect file - explFire
- Size - size
- Texture for the collision effect - tex
- Tint for the effect - tint
- The sound for the firing effect - collisionSound
An example of the config from the caution module:
{
"rbc": {
"dmg": 3,
"dmgType": "energy",
"spdLen": 6,
"tex": "rbc",
"texSz": 0.15,
"collisionEffect": {
"effectFile": "core:explFire",
"size": 0.1,
"tex": "core:fire",
"tint": "220 0 0"
},
"collisionSound": "core:blastCollision"
}
}TODO